Hello,
I have a question regarding to function calling in Realtime API.
After calling a function, we send the result back to the agent:
event = {
"type": "conversation.item.create",
"item": {"type": "function_call_output", "call_id": call_id, "output": result},
}
await websocket.send(json.dumps(event))
In the above, result
is the result of this function call. For web search for example, this is typically a very long string (containing the content of several websites for example), so I’m wondering if it is stored on the server (in the case of Realtime API) and counts towards the token usage.
Thank you in advance for your replies!