ToolResponseContent
Tool/function execution response returned to the LLM with result data and optional API metadata.Import
Type Definition
Fields
Must be
"tool-response".Zero-based index matching the tool call. Minimum: 0.
Identifier matching the corresponding tool call
id.Name of the function that was called.
JSON-encoded string of the function result.
Optional API response metadata with HTTP status code.
Example
Related
- ToolCallContent — the corresponding request that triggers a tool response
- MessageContent — union type that includes
ToolResponseContent - ToolFunction — defines the tool schema for function calling