19 references to CreateUpdate
Microsoft.Extensions.AI.OpenAI (19)
OpenAIResponsesChatClient.cs (19)
381
var update =
CreateUpdate
(ToUsageDetails(completedUpdate.Response) is { } usage ? new UsageContent(usage) : null);
407
yield return
CreateUpdate
(new TextContent(outputTextDeltaUpdate.Delta));
411
yield return
CreateUpdate
(new TextReasoningContent(reasoningSummaryTextDeltaUpdate.Delta));
415
yield return
CreateUpdate
(new TextReasoningContent(reasoningTextDeltaUpdate.Delta));
419
yield return
CreateUpdate
(new ImageGenerationToolCallContent
427
yield return
CreateUpdate
(GetImageGenerationResult(streamingImageGenUpdate, options));
431
yield return
CreateUpdate
(new CodeInterpreterToolCallContent
444
yield return
CreateUpdate
(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.ToString(), fcri.CallId, fcri.FunctionName));
448
var mcpUpdate =
CreateUpdate
();
454
yield return
CreateUpdate
(new McpServerToolApprovalRequestContent(mtcari.Id, new(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
466
yield return
CreateUpdate
(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) { RawRepresentation = functionCallOutputItem });
472
yield return
CreateUpdate
(CreateCodeInterpreterResultContent(cicri));
483
yield return
CreateUpdate
(annotatedContent);
492
yield return
CreateUpdate
(new TextReasoningContent(null) { ProtectedData = encryptedContent });
501
yield return
CreateUpdate
();
506
yield return
CreateUpdate
(new AIContent { RawRepresentation = outputItemDoneUpdate.Item });
540
yield return
CreateUpdate
(new ErrorContent(errorMessage)
548
yield return
CreateUpdate
(new ErrorContent(refusalDone.Refusal)
555
yield return
CreateUpdate
();