tolga
November 8, 2024, 2:06pm
1
The name
field is missing in response.function_call_arguments.done
. I can see it coming through from the server, but it is not available in the documentation.
Sample response:
{
"type": "response.function_call_arguments.done",
"event_id": "event_ARJUIUf9GiVg7OYdRCLg0",
"response_id": "resp_ARJUGvXD2rkK9wXUBEXTr",
"item_id": "item_ARJUH8Afun6hFgBtJc84p",
"output_index": 1,
"call_id": "call_bGc5WfiMECRqrinG",
"name": "get_weather",
"arguments": "{\"lat\":51.5074,\"lng\":-0.1278,\"location\":\"London\"}"
}
1 Like
_j
November 8, 2024, 6:49pm
2
Looks like you discovered a solution they now offer to the convoluted method to obtaining the function name before…
Congrats on your superpower of reading documentation, rare to find, and the basic secret to presenting expertise.
I can guide you to the documentation available…
Handling Tool Calls
The client can set default functions for the server in a session.update message, or set per-response functions in the response.create message. The server will respond with function_call items, if appropriate. The functions are passed in the format of the Chat Completions API .
When the server calls a function, it…