operations Package

Classes

AgentInsightMonitorsOperations

Custom operations for Agent Insights monitors.

AgentsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:agents> attribute.

BetaEvaluationTaxonomiesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:evaluation_taxonomies> attribute.

BetaInsightsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:insights> attribute.

BetaLive

Connect to GPT Live through client.beta.voice_agents.live.

Foundry starts the session from the saved agent settings. Wait for session.started before sending commands; do not send session.start.

BetaLiveConnection

Send and receive events on a GPT Live connection.

Service errors arrive as error events. Use the context manager to close the connection. Send session.close to end the session; Live has no response.cancel command.

BetaLiveConnectionManager

Context manager for one Live session using the project's credential.

BetaMemoryStoresOperations
BetaModelsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

models attribute.

BetaOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:beta> attribute.

BetaRedTeamsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:red_teams> attribute.

BetaRoutinesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:routines> attribute.

BetaSchedulesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:schedules> attribute.

BetaSkillsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:skills> attribute.

BetaVoiceAgentsLiveConversationsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:live_conversations> attribute.

BetaVoiceAgentsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's <xref:beta> attribute's

voice_agents attribute.

BetaVoiceAgentsTelephonyOperations

Warning

DO NOT instantiate this class directly.

Instead, access these operations through

AIProjectClient's beta.voice_agents.telephony attribute.

ConnectionsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:connections> attribute.

DatasetsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:datasets> attribute.

DeploymentsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:deployments> attribute.

EvaluationRulesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:evaluation_rules> attribute.

EvaluatorsOperations

Custom operations for evaluator generation jobs.

IndexesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:indexes> attribute.

Realtime

Connect to a voice agent through client.voice_agents.realtime.

Open a connection with connect:


   from azure.ai.projects import AIProjectClient
   from azure.identity import DefaultAzureCredential

   client = AIProjectClient(endpoint, DefaultAzureCredential())
   with client.voice_agents.realtime.connect(agent_name="my-agent") as conn:
       conn.input_audio_buffer.append(audio=chunk)
       conn.input_audio_buffer.commit()
       conn.response.create()
       for event in conn:
           if event.type == RealtimeServerEventType.RESPONSE_DONE:
               break
RealtimeConnection

An open realtime WebSocket connection to a voice agent.

Iterate to receive events. Use conversation, response, and the audio buffers to send messages and control replies:


   with client.voice_agents.realtime.connect(agent_name="my-agent") as conn:
       for event in conn:
           if event.type == RealtimeServerEventType.RESPONSE_DONE:
               break
RealtimeConnectionManager

Context manager for a synchronous Realtime connection.

TelemetryOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:telemetry> attribute.

ToolboxesOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:toolboxes> attribute.

VoiceAgentsConversationsOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:conversations> attribute.

VoiceAgentsOperations

Generally available voice-agent operations.

Access these operations through AIProjectClient's voice_agents attribute.

VoiceAgentsTelephonyOperations

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<xref:telephony> attribute.