11 references to CreateUpdate
Microsoft.Extensions.AI.OpenAI (11)
OpenAIResponsesChatClient.cs (11)
266
var update =
CreateUpdate
(ToUsageDetails(completedUpdate.Response) is { } usage ? new UsageContent(usage) : null);
292
yield return
CreateUpdate
(new TextContent(outputTextDeltaUpdate.Delta));
296
yield return
CreateUpdate
(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.ToString(), fcri.CallId, fcri.FunctionName));
300
var mcpUpdate =
CreateUpdate
();
306
yield return
CreateUpdate
(new AIContent { RawRepresentation = mtdli });
310
yield return
CreateUpdate
(new McpServerToolApprovalRequestContent(mtcari.Id, new(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
330
yield return
CreateUpdate
(annotatedContent);
334
yield return
CreateUpdate
(new ErrorContent(errorUpdate.Message)
342
yield return
CreateUpdate
(new ErrorContent(refusalDone.Refusal)
352
yield return
CreateUpdate
(new TextReasoningContent(delta));
356
yield return
CreateUpdate
();