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

Function createToolCallMessage

agents/e2e/context-pruner.e2e.test.ts:58–72  ·  view source on GitHub ↗
(
    toolCallId: string,
    toolName: string,
    input: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

56
57 // Helper to create a tool call message
58 const createToolCallMessage = (
59 toolCallId: string,
60 toolName: string,
61 input: Record<string, unknown>,
62 ): Message => ({
63 role: 'assistant',
64 content: [
65 {
66 type: 'tool-call',
67 toolCallId,
68 toolName,
69 input,
70 },
71 ],
72 })
73
74 // Helper to create a tool result message
75 const createToolResultMessage = (

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected