11 references to CreateUpdate
Microsoft.Extensions.AI.OpenAI (11)
OpenAIResponsesChatClient.cs (11)
247
var update =
CreateUpdate
(ToUsageDetails(completedUpdate.Response) is { } usage ? new UsageContent(usage) : null);
273
yield return
CreateUpdate
(new TextContent(outputTextDeltaUpdate.Delta));
277
yield return
CreateUpdate
(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.ToString(), fcri.CallId, fcri.FunctionName));
281
var mcpUpdate =
CreateUpdate
();
287
yield return
CreateUpdate
(new AIContent { RawRepresentation = mtdli });
291
yield return
CreateUpdate
(new McpServerToolApprovalRequestContent(mtcari.Id, new(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel)
311
yield return
CreateUpdate
(annotatedContent);
315
yield return
CreateUpdate
(new ErrorContent(errorUpdate.Message)
323
yield return
CreateUpdate
(new ErrorContent(refusalDone.Refusal)
333
yield return
CreateUpdate
(new TextReasoningContent(delta));
337
yield return
CreateUpdate
();