MCPcopy Index your code
hub / github.com/TanStack/ai / stringifyToolResultContent

Function stringifyToolResultContent

packages/ai-claude-code/src/stream/translate.ts:50–58  ·  view source on GitHub ↗
(
  content: SdkToolResultContent | undefined,
)

Source from the content-addressed store, hash-verified

48}
49
50function stringifyToolResultContent(
51 content: SdkToolResultContent | undefined,
52): string {
53 if (content === undefined) return ''
54 if (typeof content === 'string') return content
55 return content
56 .map((block) => (typeof block.text === 'string' ? block.text : ''))
57 .join('')
58}
59
60function buildUsage(
61 usage: SdkUsage | undefined,

Callers 1

handleUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected