Skip to content

Documentation / @agentick/ai-sdk / ToolResultOutput

Type Alias: ToolResultOutput ​

ToolResultOutput = { type: "text"; value: string; } | { type: "json"; value: unknown; } | { type: "error-text"; value: string; } | { type: "error-json"; value: unknown; } | { type: "content"; value: ({ text: string; type: "text"; } | { data: string; mediaType: string; type: "media"; })[]; }

Defined in: adapter.ts:73

AI SDK LanguageModelV2ToolResultOutput type. Matches the expected output format for tool results.

Released under the ISC License.