MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createToolResultMessage

Function createToolResultMessage

agents/e2e/context-pruner.e2e.test.ts:75–84  ·  view source on GitHub ↗
(
    toolCallId: string,
    toolName: string,
    value: JSONValue,
  )

Source from the content-addressed store, hash-verified

73
74 // Helper to create a tool result message
75 const createToolResultMessage = (
76 toolCallId: string,
77 toolName: string,
78 value: JSONValue,
79 ): ToolMessage => ({
80 role: 'tool',
81 toolCallId,
82 toolName,
83 content: [{ type: 'json', value }],
84 })
85
86 it(
87 'should prune large message history and maintain tool-call/tool-result pairs',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected