Skip to content

When tool call includes content, it is not committed or used in the follow up response #1069

Description

@martin-purplefish

OpenAI can return content along side a tool call:

    {
      "role": "assistant",
      "content": [
        {
          "text": "Oh, just a moment while I check that for you... \n\nLet me find out the current weather in NYC by querying our weather service.",
          "type": "text"
        }
      ],
      "tool_calls": [
        {
          "id": "call_Gwqkvbb3r0oRJnj3zzrIEL1R",
          "type": "function",
          "function": {
            "name": "get_weather",
            "arguments": "{\"location\":\"New York, NY\",\"unit\":\"f\"}"
          }
        }
      ]
    }

When this happens, there are a few problems:

  1. The agent's audio plays, BUT the audio is not committed to the log.
  2. There's no agent_speech_committed event.
  3. (I think) the audio gets played AFTER the function call, rather than before it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions