chatWithToolsCatching
Sends a chat request with tool support and wraps the result in a Result.
Return
A Result with either a ChatResponse or the captured exception.
Parameters
A fully configured ChatRequest with tools.
If true, automatically executes tools and continues the conversation. Defaults to true.
Maximum number of tool execution steps. null means unlimited.
Current step counter (used internally for recursion).
Callback invoked when a tool is called (name, argumentsJson).
Callback invoked when tool execution fails.
See also
Sends a chat request with tool support using the request DSL and wraps the result in a Result.
Return
A Result with either a ChatResponse or the captured exception.
Parameters
If true, automatically executes tools and continues the conversation. Defaults to true.
Maximum number of tool execution steps. null means unlimited.
Current step counter (used internally for recursion).
Callback invoked when a tool is called (name, argumentsJson).
Callback invoked when tool execution fails.
DSL builder for configuring messages, temperature, maxTokens, tools, etc.