MCPcopy Create free account
hub / github.com/OperationT00/T-Code / prependSkillBodies

Method prependSkillBodies

src/main/java/com/tcode/agent/Agent.java:331–338  ·  view source on GitHub ↗
(String userInput)

Source from the content-addressed store, hash-verified

329 }
330
331 private String prependSkillBodies(String userInput) {
332 if (skillContextBuffer == null || skillContextBuffer.isEmpty()) {
333 return userInput;
334 }
335 String drained = skillContextBuffer.drain();
336 if (drained.isEmpty()) return userInput;
337 return drained + "\n用户输入:\n" + userInput;
338 }
339
340 private String buildExternalContext() {
341 if (!memoryManager.getContextProfile().mcpResourceIndexEnabled()) {

Callers 1

runMethod · 0.95

Calls 2

drainMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected