MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / toolPart

Function toolPart

tests/message-priority.test.ts:74–94  ·  view source on GitHub ↗
(
    messageID: string,
    sessionID: string,
    callID: string,
    toolName: string,
    output: string,
)

Source from the content-addressed store, hash-verified

72}
73
74function toolPart(
75 messageID: string,
76 sessionID: string,
77 callID: string,
78 toolName: string,
79 output: string,
80) {
81 return {
82 id: `${callID}-part`,
83 messageID,
84 sessionID,
85 type: "tool" as const,
86 tool: toolName,
87 callID,
88 state: {
89 status: "completed" as const,
90 input: { description: "demo" },
91 output,
92 },
93 }
94}
95
96function buildMessage(
97 id: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected