BetaVoiceAgentsLiveConversationsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:live_conversations> attribute.

Constructor

BetaVoiceAgentsLiveConversationsOperations(*args, **kwargs)

Methods

delete

Delete a Live voice agent conversation.

Deletes the stored conversation and its items/audio, without closing the Live session.

download_audio

Stream a Live conversation's merged recording.

Streams the merged stereo WAV. BYOS returns 409; use blob_uri. Returns 404 for no audio, or 409 recording_not_ready/recording_unavailable for pending/failed finalization.

download_audio_item

Stream a Live conversation item's audio.

Streams captured speech as WAV. BYOS returns 409; use blob_uri. Returns 404 for missing audio, conversations not stored, or delegation items.

get

Get a Live voice agent conversation.

Gets a stored Live conversation; fetch items separately. Returns 404 if absent or not stored.

get_audio

Get a Live conversation's merged recording metadata.

Gets merged stereo recording metadata (user left, assistant right). BYOS uses unsigned blob_uri. Returns 404 for no audio, or 409 recording_not_ready/recording_unavailable for pending/failed finalization; pending responses may include Retry-After.

get_audio_item

Get a Live conversation item's audio metadata.

Gets captured speech-audio metadata. BYOS uses unsigned blob_uri. Returns 404 for missing audio, conversations not stored, or delegation items.

get_item

Get a Live voice agent conversation item.

Gets a stored item by ID. Returns 404 if the item or conversation is absent.

list

List Live voice agent conversations.

Lists stored Live conversations for this agent, including sessions stored via an override.

list_items

List items in a Live voice agent conversation.

Lists stored speech and delegation items in order; cursors use item IDs. Returns 404 if the conversation is absent or not stored.

delete

Delete a Live voice agent conversation.

Deletes the stored conversation and its items/audio, without closing the Live session.

delete(agent_name: str, conversation_id: str, **kwargs: Any) -> None

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

Returns

Type Description

None

Exceptions

Type Description

download_audio

Stream a Live conversation's merged recording.

Streams the merged stereo WAV. BYOS returns 409; use blob_uri. Returns 404 for no audio, or 409 recording_not_ready/recording_unavailable for pending/failed finalization.

download_audio(agent_name: str, conversation_id: str, **kwargs: Any) -> Iterator[bytes]

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

Returns

Type Description

Iterator[bytes]

Exceptions

Type Description

download_audio_item

Stream a Live conversation item's audio.

Streams captured speech as WAV. BYOS returns 409; use blob_uri. Returns 404 for missing audio, conversations not stored, or delegation items.

download_audio_item(agent_name: str, conversation_id: str, item_id: str, **kwargs: Any) -> Iterator[bytes]

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

item_id
Required
str

The id returned on the persisted item. Required.

Returns

Type Description

Iterator[bytes]

Exceptions

Type Description

get

Get a Live voice agent conversation.

Gets a stored Live conversation; fetch items separately. Returns 404 if absent or not stored.

get(agent_name: str, conversation_id: str, **kwargs: Any) -> VoiceAgentLiveConversation

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

Returns

Type Description

VoiceAgentLiveConversation. The VoiceAgentLiveConversation is compatible with MutableMapping

Exceptions

Type Description

get_audio

Get a Live conversation's merged recording metadata.

Gets merged stereo recording metadata (user left, assistant right). BYOS uses unsigned blob_uri. Returns 404 for no audio, or 409 recording_not_ready/recording_unavailable for pending/failed finalization; pending responses may include Retry-After.

get_audio(agent_name: str, conversation_id: str, **kwargs: Any) -> VoiceRecording

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

Returns

Type Description

VoiceRecording. The VoiceRecording is compatible with MutableMapping

Exceptions

Type Description

get_audio_item

Get a Live conversation item's audio metadata.

Gets captured speech-audio metadata. BYOS uses unsigned blob_uri. Returns 404 for missing audio, conversations not stored, or delegation items.

get_audio_item(agent_name: str, conversation_id: str, item_id: str, **kwargs: Any) -> VoiceAudioItem

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

item_id
Required
str

The id returned on the persisted item. Required.

Returns

Type Description

VoiceAudioItem. The VoiceAudioItem is compatible with MutableMapping

Exceptions

Type Description

get_item

Get a Live voice agent conversation item.

Gets a stored item by ID. Returns 404 if the item or conversation is absent.

get_item(agent_name: str, conversation_id: str, item_id: str, **kwargs: Any) -> VoiceAgentLiveConversationItem

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

item_id
Required
str

The id returned on the persisted item. Required.

Returns

Type Description

VoiceAgentLiveConversationItem. The VoiceAgentLiveConversationItem is compatible with MutableMapping

Exceptions

Type Description

list

List Live voice agent conversations.

Lists stored Live conversations for this agent, including sessions stored via an override.

list(agent_name: str, *, limit: int | None = None, order: str | PageOrder | None = None, before: str | None = None, **kwargs: Any) -> ItemPaged[VoiceAgentLiveConversation]

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

Keyword-Only Parameters

Name Description
limit
int

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None.

Default value: None
order

Sort order by the created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". Default value is None.

Default value: None
before
str

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of VoiceAgentLiveConversation

Exceptions

Type Description

list_items

List items in a Live voice agent conversation.

Lists stored speech and delegation items in order; cursors use item IDs. Returns 404 if the conversation is absent or not stored.

list_items(agent_name: str, conversation_id: str, *, limit: int | None = None, order: str | PageOrder | None = None, before: str | None = None, **kwargs: Any) -> ItemPaged[VoiceAgentLiveConversationItem]

Parameters

Name Description
agent_name
Required
str

The name of the Live voice agent. Required.

conversation_id
Required
str

The Foundry conversation ID returned in session.started.conversation_id. Required.

Keyword-Only Parameters

Name Description
limit
int

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None.

Default value: None
order

Sort order by the created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". Default value is None.

Default value: None
before
str

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of VoiceAgentLiveConversationItem

Exceptions

Type Description