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