toolsReply


Description:

public async Chat toolsReply (Chat response) throws Error

Executes tool calls from a response and continues the conversation automatically.

This method: 1. Adds the assistant message with tool_calls to the conversation 2. Executes all tool calls from the response 3. Adds tool result messages to the conversation 4. Continues the conversation automatically until a final response is received

Parameters:

response

The Response containing tool calls

Returns:

The final Response after tool execution and auto-reply