Message.with_tools


Description:

public Message.with_tools (ArrayList<ToolCall> tool_calls)

Constructor for assistant messages with tool calls. Used when Ollama requests tool execution (tool call request from Ollama).

Parameters:

tool_calls

The list of tool calls requested by the assistant