Function Call Response
Message containing the result of a function call, sent by client or server
Voice Agent
Built withThe FunctionCallResponse
message contains the result of a function call. It is usually sent by the client in response to a FunctionCallRequest
, but may also be sent by the server if the function was handled internally (When a request contained client_side: false
).
Purpose
This message completes a function call flow. It provides the output of the function to the agent, regardless of where it was executed.
- If the request was marked
client_side: true
, the client sends theFunctionCallResponse
. - If the request had
client_side: false
, the server sends this message after processing the function.
Fields
type
: Always"FunctionCallResponse"
.id
: The ID of the original function call (optional but recommended for traceability).name
: The name of the function that was called.content
: A text summary or result of the function’s output. This is often passed to the next step in the conversation, or parsed if it contains encoded text (i.e. JSON).
Example payload
In this example, the client (or server) returns the result of calling the get_weather
function.
Related messages
FunctionCallRequest
: The message that triggers a function to be called.