calls

inline fun <Input> calls(tool: String, input: Input, text: String = "", usage: TokenUsage? = null)

The model answers with one call of the tool named tool. See call for what input may be.

Parameters

text

what the model writes next to the call, such as "Let me check."

usage

the tokens the provider reports for this answer.


fun calls(vararg calls: ToolCall, text: String = "", usage: TokenUsage? = null)

The model answers with calls, several tool calls in one answer. Build each with call.

Parameters

text

what the model writes next to the calls.

usage

the tokens the provider reports for this answer.