Documentation / @agentick/ai-sdk / mapToolResultContent
Function: mapToolResultContent() ​
mapToolResultContent(
content,isError?):ToolResultOutput
Defined in: adapter.ts:642
Convert tool result content blocks to AI SDK LanguageModelV2ToolResultOutput format.
The output must be one of:
- { type: 'content', value: Array<{ type: 'text', text: string } | { type: 'media', data: string, mediaType: string }> }
Parameters ​
content ​
isError? ​
boolean