Tool response from the client in Live API sessions.
Client-generated response to a ToolCall received from the server. Individual FunctionResponse objects are matched to their respective FunctionCall objects by the ID field.
Fields
function_responses- List of function responses
Example
%ToolResponse{
function_responses: [
%{
id: "call_123",
name: "get_weather",
response: %{content: %{temperature: 72, conditions: "sunny"}}
}
]
}
Summary
Types
@type t() :: %Gemini.Types.Live.ToolResponse{ function_responses: [function_response()] | nil }