Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tool Call Results are not Appearing in Realtime API and Tool Calls are Not Showing Up in Tracing #1156

@sibblegp

Description

@sibblegp

Describe the bug

When connecting voice with the below code, I can see the tool being called, but the agent never responds with its text. It says, "One moment while I look that up" and then nothing happens.

It also outputs a lot of unnecessary logging and some exceptions that seem unrelated.

Furthermore, the tracing does not show that a tool was called or tool output which to me shows the tool was not fed into the AI.

@function_tool
def get_password() -> str:
    """
    Get the password for the user.
    """
    return "Your Password is Not Set"

AUDIO_AGENT = RealtimeAgent(
    name="ODAI-Voice",
    instructions='You are a helpful assistant. You are able to answer questions and help with tasks.',
    tools=[get_password]
)

Debug information

  • Agents SDK version: v0.2
  • Python version: 3.13

Repro steps

Set up a runner with the following agent. The password is never said by the agent when you ask for it even though you can see the tool being called.

@function_tool
def get_password() -> str:
    """
    Get the password for the user.
    """
    return "Your Password is Not Set"

AUDIO_AGENT = RealtimeAgent(
    name="ODAI-Voice",
    instructions='You are a helpful assistant. You are able to answer questions and help with tasks.',
    tools=[get_password]
)

Expected behavior

The tool's answer should be given back to the user, the tool call and results should be visible in tracing.

@rm-openai

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions