Tools
ToolCall
The ToolCall
object contains details about an external tool called by the agent during processing.
The ID of the call
The type of the call. currently will always be "function"
.
This property provides details about the specific function call made by the agent.
Properties:
- name (
string
): This field specifies the name of the function or tool that was called. - arguments (
string
): This field contains a JSON-encoded string representing the arguments that were passed to the called function. While the field itself is a string, you can leverageJSON.parse
to convert it into a JavaScript object for easier access to the individual arguments.
Was this page helpful?