Response 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.
Represents a response from an AI agent with output messages. Accepts plain strings (backward compat) or structured OutputMessages.
public sealed class Response : IEquatable<Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response>
type Response = class
interface IEquatable<Response>
Public NotInheritable Class Response
Implements IEquatable(Of Response)
- Inheritance
-
Response
- Implements
Constructors
| Name | Description |
|---|---|
| Response(IDictionary<String,Object>) |
Initializes a new instance of the Response class with a tool call result dictionary. Per OTEL spec, tool call results are expected to be objects and are serialized to JSON. |
| Response(IReadOnlyList<String>) |
Initializes a new instance of the Response class with plain string messages. |
| Response(OutputMessages) |
Initializes a new instance of the Response class with structured output messages. |
Properties
| Name | Description |
|---|---|
| Messages |
Gets the output messages from the agent response (backward compat). |
| OutputContent |
Gets the structured output messages, when supplied. Takes precedence over Messages for telemetry recording. |
| ToolResultObject |
Gets the tool call result dictionary, when supplied. Per OTEL spec, tool call results are serialized to JSON directly. |
Methods
| Name | Description |
|---|---|
| Equals(Object) | Determines whether the specified object is equal to the current object. |
| Equals(Response) | Indicates whether the current object is equal to another object of the same type. |
| GetHashCode() | Serves as the default hash function. |