MCPcopy Create free account
hub / github.com/anomalyco/opencode / toolPart

Function toolPart

packages/opencode/test/cli/run/scrollback.surface.test.ts:222–232  ·  view source on GitHub ↗
(tool: string, state: Record<string, unknown>, id: string, messageID: string)

Source from the content-addressed store, hash-verified

220}
221
222function toolPart(tool: string, state: Record<string, unknown>, id: string, messageID: string): ToolPart {
223 return {
224 id,
225 sessionID: "session-1",
226 messageID,
227 type: "tool",
228 callID: `call-${id}`,
229 tool,
230 state,
231 } as ToolPart
232}
233
234function toolCommit(input: {
235 tool: string

Callers 1

toolCommitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected