Share via


AgentRunResponse.Text Property

Definition

Gets the concatenated text content of all messages in this response.

[System.Text.Json.Serialization.JsonIgnore]
public string Text { get; }
[<System.Text.Json.Serialization.JsonIgnore>]
member this.Text : string
Public ReadOnly Property Text As String

Property Value

A string containing the combined text from all TextContent instances across all messages in Messages, or an empty string if no text content is present.

Attributes

Remarks

This property provides a convenient way to access the textual response without needing to iterate through individual messages and content items. Non-text content is ignored.

Applies to