ProjectsAgentsModelFactory.VoiceAgentSubagent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A sibling Foundry text agent that a voice agent may consult as a background specialist.
public static Azure.AI.Projects.Agents.VoiceAgentSubagent VoiceAgentSubagent(string agentName = default, string agentVersion = default, string agentCapabilities = default, Azure.AI.Projects.Agents.VoiceAgentSubagentResponsePolicy responsePolicy = default, TimeSpan? invokeTimeoutSeconds = default);
static member VoiceAgentSubagent : string * string * string * Azure.AI.Projects.Agents.VoiceAgentSubagentResponsePolicy * Nullable<TimeSpan> -> Azure.AI.Projects.Agents.VoiceAgentSubagent
Public Shared Function VoiceAgentSubagent (Optional agentName As String = Nothing, Optional agentVersion As String = Nothing, Optional agentCapabilities As String = Nothing, Optional responsePolicy As VoiceAgentSubagentResponsePolicy = Nothing, Optional invokeTimeoutSeconds As Nullable(Of TimeSpan) = Nothing) As VoiceAgentSubagent
Parameters
- agentName
- String
The name of the subagent. The subagent must be in the same project as the voice agent.
- agentVersion
- String
The version of the subagent. When omitted, the active version is used.
- agentCapabilities
- String
A description of the subagent's capabilities, used by the voice agent to decide whether to forward a query.
- responsePolicy
- VoiceAgentSubagentResponsePolicy
Policy for acknowledging forwarded requests and filling gaps while waiting for this subagent's response.
The wall-clock timeout, in seconds, for each invocation of this subagent. When omitted, the service timeout is used.
Returns
A new VoiceAgentSubagent instance for mocking.