AzureAIProjectsModelFactory.AgentResponsesApiRoutineAction Method

Definition

Dispatches a routine through the responses API. Exactly one of agent_name or agent_endpoint_id must be provided.

public static Azure.AI.Projects.AgentResponsesApiRoutineAction AgentResponsesApiRoutineAction(string agentName = default, string agentEndpointId = default, BinaryData input = default, string conversation = default);
static member AgentResponsesApiRoutineAction : string * string * BinaryData * string -> Azure.AI.Projects.AgentResponsesApiRoutineAction
Public Shared Function AgentResponsesApiRoutineAction (Optional agentName As String = Nothing, Optional agentEndpointId As String = Nothing, Optional input As BinaryData = Nothing, Optional conversation As String = Nothing) As AgentResponsesApiRoutineAction

Parameters

agentName
String

The project-scoped agent name for routine dispatch.

agentEndpointId
String

Legacy endpoint-scoped agent identifier for routine dispatch.

input
BinaryData

Static JSON value sent as the complete downstream input when the routine fires. The value is passed through as-is; no templating is applied.

conversation
String

An optional existing conversation identifier to continue during the downstream dispatch.

Returns

A new AgentResponsesApiRoutineAction instance for mocking.

Applies to