toolResponse

public abstract Part.Builder toolResponse(ToolResponse toolResponse)

Setter for toolResponse.

toolResponse: The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall.


@CanIgnoreReturnValue()
public Part.Builder toolResponse(ToolResponse.Builder toolResponseBuilder)

Setter for toolResponse builder.

toolResponse: The output from a server-side ToolCall execution. This field is populated by the client with the results of executing the corresponding ToolCall.