ToolResponseContent
Tool/function execution response returned to the LLM.Fields
str
required
Must be
"tool-response".int
required
Zero-based index matching the tool call. Minimum: 0.
str
required
Identifier matching the tool call
id.str
required
Name of the function that was called.
str
required
JSON-encoded string of the function result.
ToolResponseContentApiResponse | None
Optional API response metadata with
status_code. Aliased as apiResponse in JSON.Example
Related
- ToolCallContent — the corresponding tool call request
- MessageContent — union wrapper for all content types
- PromptMessage — chat message containing content arrays