Skip to content

ImportError: cannot import name 'AgentSessionConfig' from 'azure.ai.voicelive.aio' #48501

Description

@otfung

Is your feature request related to a problem? Please describe.
I run the sample python voice-live-with-agent-v2.py but experience the following error:

Traceback (most recent call last):
File "C:\temp\Projects\azure-ai-foundry\voicelive-samples\python\voice-live-quickstarts\AgentsNewQuickstart\voice-live-with-agent-v2.py", line 17, in < module > from azure.ai.voicelive.aio import connect, AgentSessionConfig
ImportError: cannot import name 'AgentSessionConfig' from 'azure.ai.voicelive.aio' (C:\Users\andyfung\AppData\Local\miniconda3\envs\myenv\lib\site-packages\azure\ai\voicelive\aio_init_.py)

Demo source: https://github.com/microsoft-foundry/voicelive-samples/blob/main/python/voice-live-quickstarts/AgentsNewQuickstart/voice-live-with-agent-v2.py

Describe the solution you'd like
I found "AgentSessionConfig" is missing in Azure SDK for Python, but this is available in other Azure SDKs, such as dotNet and Java. I hope Azure SDK for Python can support the sample for the VoiceLive demo.

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.Voice Livecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions