RequestConverterExtensions.GetInputMessages(CreateResponseRequest) 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.
Converts a create response request to a collection of chat messages.
public static System.Collections.Generic.IReadOnlyCollection<Microsoft.Extensions.AI.ChatMessage> GetInputMessages(this Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest request);
static member GetInputMessages : Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest -> System.Collections.Generic.IReadOnlyCollection<Microsoft.Extensions.AI.ChatMessage>
<Extension()>
Public Function GetInputMessages (request As CreateResponseRequest) As IReadOnlyCollection(Of ChatMessage)
Parameters
- request
- CreateResponseRequest
The create response request to convert.
Returns
A read-only collection of chat messages extracted from the request input.