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