OutputScope.RecordOutputMessages Method
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.
Overloads
| Name | Description |
|---|---|
| RecordOutputMessages(OutputMessages) |
Records structured output messages for telemetry tracking. Overwrites any previously set output messages. |
| RecordOutputMessages(IDictionary<String,Object>) |
Records a tool call result dictionary for telemetry tracking. Per OTEL spec, tool call results are expected to be objects and are serialized to JSON. Overwrites any previously set output messages. |
| RecordOutputMessages(IEnumerable<String>) |
Records the output messages for telemetry tracking. Overwrites any previously set output messages. Plain strings are auto-wrapped as OTEL OutputMessage with role "assistant". |
RecordOutputMessages(OutputMessages)
- Source:
- OutputScope.cs
Records structured output messages for telemetry tracking. Overwrites any previously set output messages.
public void RecordOutputMessages(Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.OutputMessages messages);
member this.RecordOutputMessages : Microsoft.Agents.A365.Observability.Runtime.Tracing.Contracts.Messages.OutputMessages -> unit
Public Sub RecordOutputMessages (messages As OutputMessages)
Parameters
- messages
- OutputMessages
The versioned output messages wrapper.
Applies to
RecordOutputMessages(IDictionary<String,Object>)
- Source:
- OutputScope.cs
Records a tool call result dictionary for telemetry tracking. Per OTEL spec, tool call results are expected to be objects and are serialized to JSON. Overwrites any previously set output messages.
public void RecordOutputMessages(System.Collections.Generic.IDictionary<string,object> toolResult);
member this.RecordOutputMessages : System.Collections.Generic.IDictionary<string, obj> -> unit
Public Sub RecordOutputMessages (toolResult As IDictionary(Of String, Object))
Parameters
- toolResult
- IDictionary<String,Object>
The tool call result as a structured dictionary.
Applies to
RecordOutputMessages(IEnumerable<String>)
- Source:
- OutputScope.cs
Records the output messages for telemetry tracking. Overwrites any previously set output messages. Plain strings are auto-wrapped as OTEL OutputMessage with role "assistant".
public void RecordOutputMessages(System.Collections.Generic.IEnumerable<string> messages);
member this.RecordOutputMessages : seq<string> -> unit
Public Sub RecordOutputMessages (messages As IEnumerable(Of String))
Parameters
- messages
- IEnumerable<String>
The messages to set as output.