Skip to main content

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

JSON: