Skip to content

How to use RunContextWrapper with VoiceWorkflow #819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
T-Zaid opened this issue Jun 7, 2025 · 0 comments
Open

How to use RunContextWrapper with VoiceWorkflow #819

T-Zaid opened this issue Jun 7, 2025 · 0 comments
Labels
question Question about using the SDK

Comments

@T-Zaid
Copy link

T-Zaid commented Jun 7, 2025

Please read this first

  • Have you read the docs?Agents SDK docs
    Yes, I have read the docs and also gone through the examples in repo.
  • Have you searched for related issues? Others may have had similar requests
    Yes, I have but couldn't find anything informational.

Question

Describe your question. Provide details if available.
I am building an agentic system for a store, I have already created the tools, context and all the agents that are required for the use case.

For text based agentic conversation, sending the context is straightforward, that is to pass the context as an argument in Runner.run function. It’s working correctly as well:

context = UserContext(user_id="zaid", email="[email protected]")
result = await Runner.run(current_agent, input_items, context=context)

The place where I’m stuck at is, how to send the context when doing voice-based conversions. I can’t send the context object to voicepipeline.run method, I have thoroughly read the documentation and issue sections in github repository, but I cant find a possible way to use this.

result = await voice_pipeline.run(audio_input=audio_input) // no parameter to send context

Let me know if you require any other additional details.

@T-Zaid T-Zaid added the question Question about using the SDK label Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about using the SDK
Projects
None yet
Development

No branches or pull requests

1 participant