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