次の方法で共有


Response Constructors

Definition

Overloads

Name Description
Response(OutputMessages)

Initializes a new instance of the Response class with structured output messages.

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)

Source:
Response.cs

Initializes a new instance of the Response class with structured output messages.

public Response(Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.OutputMessages outputContent);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response : Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.OutputMessages -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response
Public Sub New (outputContent As OutputMessages)

Parameters

outputContent
OutputMessages

The structured output messages.

Applies to

Response(IDictionary<String,Object>)

Source:
Response.cs

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.

public Response(System.Collections.Generic.IDictionary<string,object> toolResultObject);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response : System.Collections.Generic.IDictionary<string, obj> -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response
Public Sub New (toolResultObject As IDictionary(Of String, Object))

Parameters

toolResultObject
IDictionary<String,Object>

The tool call result as a structured dictionary.

Applies to

Response(IReadOnlyList<String>)

Source:
Response.cs

Initializes a new instance of the Response class with plain string messages.

public Response(System.Collections.Generic.IReadOnlyList<string>? messages = default);
new Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response : System.Collections.Generic.IReadOnlyList<string> -> Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Response
Public Sub New (Optional messages As IReadOnlyList(Of String) = Nothing)

Parameters

messages
IReadOnlyList<String>

The output messages from the agent.

Applies to