Skip to content

Commit 0890ff6

Browse files
author
Xiting Zhang
committed
[VoiceLive] Release 1.1.0b1
1 parent 5063358 commit 0890ff6

File tree

7 files changed

+36
-8
lines changed

7 files changed

+36
-8
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Release History
22

3-
## 1.0.1 (Unreleased)
3+
## 1.1.0b1 (2025-10-06)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- **AgentConfig Support**: Re-introduced `AgentConfig` functionality with enhanced capabilities:
8+
- `AgentConfig` model added back to public API with full import and export support
9+
- `agent` field re-added to `ResponseSession` model for session-level agent configuration
10+
- Updated cross-language package mappings to include `AgentConfig` support
11+
- Provides foundation for advanced agent configuration scenarios
1212

1313
## 1.0.0 (2025-10-01)
1414

sdk/ai/azure-ai-voicelive/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"CrossLanguagePackageId": "VoiceLive",
33
"CrossLanguageDefinitionId": {
4+
"azure.ai.voicelive.models.AgentConfig": "VoiceLive.AgentConfig",
45
"azure.ai.voicelive.models.Animation": "VoiceLive.Animation",
56
"azure.ai.voicelive.models.ConversationRequestItem": "VoiceLive.ConversationRequestItem",
67
"azure.ai.voicelive.models.MessageItem": "VoiceLive.MessageItem",

sdk/ai/azure-ai-voicelive/azure/ai/voicelive/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.1"
9+
VERSION = "1.1.0b1"

sdk/ai/azure-ai-voicelive/azure/ai/voicelive/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
from ._models import ( # type: ignore
17+
AgentConfig,
1718
Animation,
1819
AssistantMessageItem,
1920
AudioEchoCancellation,
@@ -162,6 +163,7 @@
162163
from ._patch import patch_sdk as _patch_sdk
163164

164165
__all__ = [
166+
"AgentConfig",
165167
"Animation",
166168
"AssistantMessageItem",
167169
"AudioEchoCancellation",

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3301,6 +3301,8 @@ class ResponseSession(_Model):
33013301
:ivar max_response_output_tokens: Maximum number of tokens to generate in the response. Default
33023302
is unlimited. Is either a int type or a Literal["inf"] type.
33033303
:vartype max_response_output_tokens: int or str
3304+
:ivar agent: The agent configuration for the session, if applicable.
3305+
:vartype agent: ~azure.ai.voicelive.models.AgentConfig
33043306
:ivar id: The unique identifier for the session.
33053307
:vartype id: str
33063308
"""
@@ -3370,6 +3372,8 @@ class ResponseSession(_Model):
33703372
)
33713373
"""Maximum number of tokens to generate in the response. Default is unlimited. Is either a int
33723374
type or a Literal[\"inf\"] type."""
3375+
agent: Optional["_models.AgentConfig"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
3376+
"""The agent configuration for the session, if applicable."""
33733377
id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
33743378
"""The unique identifier for the session."""
33753379

@@ -3395,6 +3399,7 @@ def __init__(
33953399
tool_choice: Optional["_types.ToolChoice"] = None,
33963400
temperature: Optional[float] = None,
33973401
max_response_output_tokens: Optional[Union[int, Literal["inf"]]] = None,
3402+
agent: Optional["_models.AgentConfig"] = None,
33983403
id: Optional[str] = None, # pylint: disable=redefined-builtin
33993404
) -> None: ...
34003405

sdk/ai/azure-ai-voicelive/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ authors = [
1717
description = "Microsoft Corporation Azure Ai Voicelive Client Library for Python"
1818
license = "MIT"
1919
classifiers = [
20-
"Development Status :: 5 - Production/Stable",
20+
"Development Status :: 4 - Beta",
2121
"Programming Language :: Python",
2222
"Programming Language :: Python :: 3 :: Only",
2323
"Programming Language :: Python :: 3",

sdk/ai/azure-ai-voicelive/tests/test_unit_models.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# --------------------------------------------------------------------------
66

77
from azure.ai.voicelive.models import (
8+
AgentConfig,
89
AssistantMessageItem,
910
AzureCustomVoice,
1011
AzurePersonalVoice,
@@ -26,6 +27,25 @@
2627
OpenAIVoiceName,
2728
)
2829

30+
class TestAgentConfig:
31+
"""Test AgentConfig model."""
32+
33+
def test_create_agent_config(self):
34+
"""Test creating an agent configuration."""
35+
config = AgentConfig(
36+
name="Test Agent", agent_id="agent-123", thread_id="thread-456", description="Test description"
37+
)
38+
39+
assert config.name == "Test Agent"
40+
assert config.agent_id == "agent-123"
41+
assert config.thread_id == "thread-456"
42+
assert config.description == "Test description"
43+
assert config.type == "agent"
44+
45+
def test_agent_config_basic_creation(self):
46+
"""Test basic agent config creation."""
47+
config = AgentConfig(name="Basic Agent", agent_id="basic-123", thread_id="thread-123")
48+
assert config.name == "Basic Agent"
2949

3050
class TestAzureVoiceModels:
3151
"""Test Azure voice model classes."""

0 commit comments

Comments
 (0)