types.ContentToolResult

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 The unique identifier of the tool request. required
value The value returned by the tool/function. required
name The name of the tool/function that was called. required
error An error message if the tool/function call failed. required