types.ContentToolResult
self, id, value=None, error=None) types.ContentToolResult(
The result of calling a tool/function
This content type isn’t meant to be used directly. Instead, it’s automatically generated by Chat
when a tool/function is called (in response to a ContentToolRequest
).
Parameters
Name | Type | Description | Default |
---|---|---|---|
id | str | The unique identifier of the tool request. | required |
value | Any | The value returned by the tool/function. | None |
error | Optional[str] | An error message if the tool/function call failed. | None |