Skip to content

Conversation

@xitzhang
Copy link
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Xiting Zhang and others added 30 commits September 11, 2025 15:58
…e.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…e.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@xitzhang xitzhang requested a review from rhurey as a code owner October 28, 2025 20:27
Copilot AI review requested due to automatic review settings October 28, 2025 20:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for agent configuration in the Azure AI VoiceLive SDK. The changes introduce a new AgentConfig model and integrate it with the ResponseSession model to enable agent-based conversations.

  • Introduced AgentConfig model with properties for agent type, name, description, agent_id, and thread_id
  • Added agent field to ResponseSession to support agent configuration in session responses
  • Cleaned up documentation formatting by removing extraneous blank lines in docstrings

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
sdk/ai/azure-ai-voicelive/azure/ai/voicelive/models/_models.py Added AgentConfig model, integrated agent field into ResponseSession, and cleaned up docstring formatting
sdk/ai/azure-ai-voicelive/azure/ai/voicelive/models/init.py Exported AgentConfig in the public API
sdk/ai/azure-ai-voicelive/apiview-properties.json Added cross-language mapping for AgentConfig
sdk/ai/azure-ai-voicelive/CHANGELOG.md Documented the new agent configuration feature
Comments suppressed due to low confidence (2)

sdk/ai/azure-ai-voicelive/azure/ai/voicelive/models/_models.py:1

  • The test test_response_session_with_agent doesn't actually test the new agent field. It should create and verify an AgentConfig instance with the ResponseSession to properly test the new functionality. Consider adding assertions like: from azure.ai.voicelive.models import AgentConfig; agent = AgentConfig(name='test-agent', agent_id='agent-123', thread_id='thread-456'); session = ResponseSession(model='gpt-4o-realtime-preview', agent=agent, id='session-789'); assert session.agent == agent; assert session.agent.name == 'test-agent'
# pylint: disable=line-too-long,useless-suppression,too-many-lines

sdk/ai/azure-ai-voicelive/CHANGELOG.md:1

  • The release date appears to be in the future. The current date in October 2025 hasn't occurred yet. Please verify the intended release date format is correct.
# Release History

@xitzhang xitzhang enabled auto-merge (squash) October 30, 2025 22:52
@xitzhang xitzhang merged commit 59a24b3 into Azure:main Oct 31, 2025
20 checks passed
JennyPng pushed a commit to JennyPng/azure-sdk-for-python that referenced this pull request Nov 3, 2025
…zure#43671)

* [VoiceLive] Add async function-calling agent sample

* add phrase list

* fix typo

* Update sdk/ai/azure-ai-voicelive/samples/async_function_calling_sample.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update sdk/ai/azure-ai-voicelive/samples/async_function_calling_sample.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* update

* fix typo

* update changelog

* update

* remove breaking change section

* update changelog

* fix change log

* revert changelog I lost

* update version and change log

* enable type verification

* update

* [VoiceLive] Relase 1.0.0b4

* [VoiceLive] Add AgentConfig model and agent field to ResponseSession

* add release date

* update change log

---------

Co-authored-by: Xiting Zhang <xitzhang@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants