ItemExtensions.GetInputText(IEnumerable<Item>) 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.
Extracts all text content from a sequence of Item instances as a single string. Filters for ItemMessage items, expands their content via GetContentExpanded(ItemMessage), and joins all Text values with newline separators.
public static string GetInputText(this System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.Item> items);
static member GetInputText : seq<Azure.AI.AgentServer.Responses.Models.Item> -> string
<Extension()>
Public Function GetInputText (items As IEnumerable(Of Item)) As String
Parameters
- items
- IEnumerable<Item>
The input items to extract text from.
Returns
The combined text content, or an empty string if no text content is found.