AgentRunMode 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.
Specifies how the A2A hosting layer determines whether to run AIAgent in background or not.
public sealed class AgentRunMode : IEquatable<Microsoft.Agents.AI.Hosting.A2A.AgentRunMode>
type AgentRunMode = class
interface IEquatable<AgentRunMode>
Public NotInheritable Class AgentRunMode
Implements IEquatable(Of AgentRunMode)
- Inheritance
-
AgentRunMode
- Implements
Properties
| Name | Description |
|---|---|
| AllowBackgroundIfSupported |
Allows the background responses from the agent. Is equivalent to configuring AllowBackgroundResponses as |
| DisallowBackground |
Dissallows the background responses from the agent. Is equivalent to configuring AllowBackgroundResponses as |
Methods
| Name | Description |
|---|---|
| AllowBackgroundWhen(Func<A2ARunDecisionContext,CancellationToken,ValueTask<Boolean>>) |
The agent run mode is decided by the supplied |
| Equals(AgentRunMode) | Indicates whether the current object is equal to another object of the same type. |
| Equals(Object) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns a string that represents the current object. |
Operators
| Name | Description |
|---|---|
| Equality(AgentRunMode, AgentRunMode) |
Determines whether two AgentRunMode instances are equal. |
| Inequality(AgentRunMode, AgentRunMode) |
Determines whether two AgentRunMode instances are not equal. |