chatStreamWithTools
Streams a chat with automatic tool execution.
Tool call deltas are accumulated across chunks. Once a complete tool call is collected, onFullToolCollected is invoked. If autoExecute is true, the tool is executed and the conversation continues with a new stream.
Return
A Flow of ChatChunk streaming responses.
Parameters
The chat request with tools attached.
Whether to automatically execute tool calls (default: true).
Callback invoked when a complete tool call is accumulated.
Callback invoked before each tool execution.
Streams a chat with tools using full DSL configuration.
Return
A Flow of ChatChunk streaming responses.
Parameters
Whether to automatically execute tool calls (default: true).
Callback invoked when a complete tool call is accumulated.
Callback invoked before each tool execution.
A ChatRequestBuilder lambda for configuring the request.