Role Enum
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.
Represents different roles that can invoke an agent.
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
public enum Role
[<System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))>]
type Role =
Public Enum Role
- Inheritance
-
Role
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| Human | 0 | Human user invoking the agent. |
| Agent | 1 | Another agent invoking this agent. |
| Event | 2 | Event-driven invocation (e.g., scheduled, webhook, message queue). |
| Unknown | 3 | Unknown or unspecified role. |