AIAgentInvocation Class
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.
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
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) |