Hello OpenAI team,
I am using Assistants API V2 in Swift/iOS, and my goal is to have a Function Call + Message response.
Ex:
User prompt: What is the weather like in SF?
Assistant function arguments response:
“required_action”: {
“type”: “submit_tool_outputs”,
“submit_tool_outputs”: {
“tool_calls”: [
{
“id”: “call_GGGbIAq7c38uquY1Y8MGjpKw”,
“type”: “function”,
“function”: {
“name”: “check_weather”,
“arguments”: “{"temperature":"10 degrees”,"chanceOfRain":"70%", etc…
Assistant message: Here is the weather, if you need anything else just let me know!
I managed to get JSON funcions arguments parsed correctly into Swift, but I don’t know if its possible to also get a message…