11 references to CreateUpdate
Microsoft.Extensions.AI.OpenAI (11)
OpenAIResponsesChatClient.cs (11)
332
var update =
CreateUpdate
(ToUsageDetails(completedUpdate.Response) is { } usage ? new UsageContent(usage) : null);
358
yield return
CreateUpdate
(new TextContent(outputTextDeltaUpdate.Delta));
362
yield return
CreateUpdate
(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.ToString(), fcri.CallId, fcri.FunctionName));
366
var mcpUpdate =
CreateUpdate
();
372
yield return
CreateUpdate
(new AIContent { RawRepresentation = mtdli });
376
yield return
CreateUpdate
(new McpServerToolApprovalRequestContent(mtcari.Id, new(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
396
yield return
CreateUpdate
(annotatedContent);
400
yield return
CreateUpdate
(new ErrorContent(errorUpdate.Message)
408
yield return
CreateUpdate
(new ErrorContent(refusalDone.Refusal)
418
yield return
CreateUpdate
(new TextReasoningContent(delta));
422
yield return
CreateUpdate
();