toolCall

public abstract Part.Builder toolCall(ToolCall toolCall)

Setter for toolCall.

toolCall: Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.


@CanIgnoreReturnValue()
public Part.Builder toolCall(ToolCall.Builder toolCallBuilder)

Setter for toolCall builder.

toolCall: Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.