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

Function createToolBlock

cli/src/utils/__tests__/block-processor.test.ts:37–47  ·  view source on GitHub ↗
(
  toolName: string,
  toolCallId: string = `tool-${toolName}`,
)

Source from the content-addressed store, hash-verified

35}
36
37function createToolBlock(
38 toolName: string,
39 toolCallId: string = `tool-${toolName}`,
40): ToolContentBlock {
41 return {
42 type: 'tool',
43 toolCallId,
44 toolName: toolName as ToolContentBlock['toolName'],
45 input: {},
46 }
47}
48
49function createImageBlock(
50 mediaType: string = 'image/png',

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected