AgentRequestMessageSourceAttribution Struct
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 attribution information for the source of an agent request message for a specific run, including the component type and identifier.
public readonly struct AgentRequestMessageSourceAttribution : IEquatable<Microsoft.Agents.AI.AgentRequestMessageSourceAttribution>
type AgentRequestMessageSourceAttribution = struct
Public Structure AgentRequestMessageSourceAttribution
Implements IEquatable(Of AgentRequestMessageSourceAttribution)
- Inheritance
-
AgentRequestMessageSourceAttribution
- Implements
Remarks
Use this struct to identify which component provided a message during an agent run. This is useful to allow filtering of messages based on their source, such as distinguishing between user input, middleware-generated messages, and chat history.
Constructors
| Name | Description |
|---|---|
| AgentRequestMessageSourceAttribution(AgentRequestMessageSourceType, String) |
Initializes a new instance of the AgentRequestMessageSourceAttribution struct with the specified source type and identifier. |
Fields
| Name | Description |
|---|---|
| AdditionalPropertiesKey |
Provides the key used in AdditionalProperties to store the AgentRequestMessageSourceAttribution associated with the agent request message. |
Properties
| Name | Description |
|---|---|
| SourceId |
Gets the unique identifier of the component that provided the message for the current agent run. |
| SourceType |
Gets the type of component that provided the message for the current agent run. |
Methods
| Name | Description |
|---|---|
| Equals(AgentRequestMessageSourceAttribution) |
Determines whether the specified AgentRequestMessageSourceAttribution is equal to the current instance. |
| Equals(Object) |
Determines whether the specified object is equal to the current instance. |
| GetHashCode() |
Returns a hash code for the current instance. |
| ToString() |
Returns a string representation of the current instance. |
Operators
| Name | Description |
|---|---|
| Equality(AgentRequestMessageSourceAttribution, AgentRequestMessageSourceAttribution) |
Determines whether two AgentRequestMessageSourceAttribution instances are equal. |
| Inequality(AgentRequestMessageSourceAttribution, AgentRequestMessageSourceAttribution) |
Determines whether two AgentRequestMessageSourceAttribution instances are not equal. |