Share via


AIAgentInvocation Class

Definition

Provides an implementation of agent invocation using the Microsoft Agents AI framework.

public class AIAgentInvocation : Azure.AI.AgentServer.Responses.Invocation.AgentInvocationBase
type AIAgentInvocation = class
    inherit AgentInvocationBase
Public Class AIAgentInvocation
Inherits AgentInvocationBase
Inheritance
AIAgentInvocation

Constructors

Name Description
AIAgentInvocation(AIAgent)

Provides an implementation of agent invocation using the Microsoft Agents AI framework.

Methods

Name Description
DoInvokeAsync(CreateResponseRequest, AgentInvocationContext, CancellationToken)

Executes the agent invocation asynchronously.

DoInvokeStreamAsync(CreateResponseRequest, AgentInvocationContext, CancellationToken)

Executes the agent invocation with streaming support.

InvokeAsync(CreateResponseRequest, AgentInvocationContext, CancellationToken)

Invokes the agent asynchronously and returns a complete response.

(Inherited from AgentInvocationBase)
InvokeStreamAsync(CreateResponseRequest, AgentInvocationContext, CancellationToken)

Invokes the agent asynchronously with streaming support.

(Inherited from AgentInvocationBase)

Applies to