Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/voicelive/azure-ai-voicelive/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"apiVersion": "2026-07-15",
"apiVersion": "virtual-public-preview",
"apiVersions": {
"VoiceLive": "2026-07-15"
"VoiceLive": "virtual-public-preview"
}
}
214 changes: 91 additions & 123 deletions sdk/voicelive/azure-ai-voicelive/apiview-properties.json

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions sdk/voicelive/azure-ai-voicelive/azure/ai/voicelive/_unions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,24 @@

if TYPE_CHECKING:
from . import models as _models
Voice = Union[
str, "_models.OpenAIVoiceName", "_models.OpenAIVoice", "_models.AzureVoice", "_models.AzureRealtimeNativeVoice"
]
ToolChoice = Union[str, "_models.ToolChoiceLiteral", "_models.ToolChoiceSelection"]
VoiceLiveMcpAuthorization = Union[str, "_models.AssignedManagedIdentity"]
VoiceLiveMcpRequireApproval = Union[str, "_models.VoiceLiveMcpApprovalMode", "_models.VoiceLiveMcpApprovalRules"]
VoiceLiveTool = Union["_models.FunctionTool", "_models.VoiceLiveMcpTool"]
VoiceLiveToolChoice = Union[str, "_models.ToolChoiceOptions", "_models.ToolChoiceFunction", "_models.ToolChoiceMCP"]
InterimResponseConfig = Union["_models.StaticInterimResponseConfig", "_models.LlmInterimResponseConfig"]
ConversationRequestItem = Union[
"_models.MessageItem",
"_models.FunctionCallItem",
"_models.FunctionCallOutputItem",
"_models.RealtimeMCPApprovalResponse",
]
Comment on lines +18 to +23
ResponseItem = Union[
"_models.AzureResponseItem",
"_models.MessageItem",
"_models.FunctionCallItem",
"_models.FunctionCallOutputItem",
"_models.RealtimeMCPToolCall",
"_models.RealtimeMCPListTools",
"_models.RealtimeMCPApprovalRequest",
"_models.RealtimeMCPApprovalResponse",
]
Original file line number Diff line number Diff line change
Expand Up @@ -458,21 +458,21 @@ def __ne__(self, other: typing.Any) -> bool:

def keys(self) -> typing.KeysView[str]:
"""
:returns: a set-like object providing a view on D's keys
:returns: a set-like object providing a view on the mapping's keys
:rtype: ~typing.KeysView
"""
return self._data.keys()

def values(self) -> typing.ValuesView[typing.Any]:
"""
:returns: an object providing a view on D's values
:returns: an object providing a view on the mapping's values
:rtype: ~typing.ValuesView
"""
return self._data.values()

def items(self) -> typing.ItemsView[str, typing.Any]:
"""
:returns: set-like object providing a view on D's items
:returns: a set-like object providing a view on the mapping's items
:rtype: ~typing.ItemsView
"""
return self._data.items()
Expand All @@ -482,7 +482,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
Get the value for key if key is in the dictionary, else default.
:param str key: The key to look up.
:param any default: The value to return if key is not in the dictionary. Defaults to None
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
try:
Expand Down Expand Up @@ -517,19 +517,19 @@ def popitem(self) -> tuple[str, typing.Any]:
Removes and returns some (key, value) pair
:returns: The (key, value) pair.
:rtype: tuple
:raises KeyError: if D is empty.
:raises KeyError: if the dictionary is empty.
"""
return self._data.popitem()

def clear(self) -> None:
"""
Remove all items from D.
Remove all items from the dictionary.
"""
self._data.clear()

def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
"""
Updates D from mapping/iterable E and F.
Update the dictionary from a mapping or an iterable of key-value pairs.
:param any args: Either a mapping object or an iterable of key-value pairs.
"""
self._data.update(*args, **kwargs)
Expand All @@ -542,10 +542,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint

def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
"""
Same as calling D.get(k, d), and setting D[k]=d if k not found
Return the value for key if key is in the dictionary; otherwise set the key to
default and return default.
:param str key: The key to look up.
:param any default: The value to set if key is not in the dictionary
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
if default is _UNSET:
Expand Down
Loading
Loading