SessionTarget.FromAgent(AgentSessionConfig) Method

Definition

Creates a session target for an agent-centric session.

public static Azure.AI.VoiceLive.SessionTarget FromAgent(Azure.AI.VoiceLive.AgentSessionConfig agentConfig);
static member FromAgent : Azure.AI.VoiceLive.AgentSessionConfig -> Azure.AI.VoiceLive.SessionTarget
Public Shared Function FromAgent (agentConfig As AgentSessionConfig) As SessionTarget

Parameters

agentConfig
AgentSessionConfig

The agent configuration to use for the session.

Returns

A SessionTarget configured for an agent session.

Exceptions

agentConfig is null.

Applies to