ResponseContext.GetInputTextAsync(Boolean, CancellationToken) Method

Definition

Resolves input items and extracts all text content as a single string. Filters for ItemMessage items, expands their content, and joins all text values with newline separators.

public virtual System.Threading.Tasks.Task<string> GetInputTextAsync(bool resolveReferences = true, System.Threading.CancellationToken cancellationToken = default);
abstract member GetInputTextAsync : bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetInputTextAsync : bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetInputTextAsync (Optional resolveReferences As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

resolveReferences
Boolean

When true (the default), item references are resolved before extracting text.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

The combined text content, or an empty string if no text content is found.

Applies to