MicrosoftExtensionsAIResponsesExtensions.AsOpenAIResponseResult 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.
Creates an OpenAI ResponseResult from a ChatResponse.
public static OpenAI.Responses.ResponseResult AsOpenAIResponseResult(this Microsoft.Extensions.AI.ChatResponse response, Microsoft.Extensions.AI.ChatOptions? options = default);
static member AsOpenAIResponseResult : Microsoft.Extensions.AI.ChatResponse * Microsoft.Extensions.AI.ChatOptions -> OpenAI.Responses.ResponseResult
<Extension()>
Public Function AsOpenAIResponseResult (response As ChatResponse, Optional options As ChatOptions = Nothing) As ResponseResult
Parameters
- response
- ChatResponse
The response to convert.
- options
- ChatOptions
The options employed in the creation of the response.
Returns
The created ResponseResult.