19 references to CreateUpdate
Microsoft.Extensions.AI.OpenAI (19)
OpenAIResponsesChatClient.cs (19)
381var update = CreateUpdate(ToUsageDetails(completedUpdate.Response) is { } usage ? new UsageContent(usage) : null); 407yield return CreateUpdate(new TextContent(outputTextDeltaUpdate.Delta)); 411yield return CreateUpdate(new TextReasoningContent(reasoningSummaryTextDeltaUpdate.Delta)); 415yield return CreateUpdate(new TextReasoningContent(reasoningTextDeltaUpdate.Delta)); 419yield return CreateUpdate(new ImageGenerationToolCallContent 427yield return CreateUpdate(GetImageGenerationResult(streamingImageGenUpdate, options)); 431yield return CreateUpdate(new CodeInterpreterToolCallContent 444yield return CreateUpdate(OpenAIClientExtensions.ParseCallContent(fcri.FunctionArguments.ToString(), fcri.CallId, fcri.FunctionName)); 448var mcpUpdate = CreateUpdate(); 454yield return CreateUpdate(new McpServerToolApprovalRequestContent(mtcari.Id, new(mtcari.Id, mtcari.ToolName, mtcari.ServerLabel) 466yield return CreateUpdate(new FunctionResultContent(functionCallOutputItem.CallId, functionCallOutputItem.FunctionOutput) { RawRepresentation = functionCallOutputItem }); 472yield return CreateUpdate(CreateCodeInterpreterResultContent(cicri)); 483yield return CreateUpdate(annotatedContent); 492yield return CreateUpdate(new TextReasoningContent(null) { ProtectedData = encryptedContent }); 501yield return CreateUpdate(); 506yield return CreateUpdate(new AIContent { RawRepresentation = outputItemDoneUpdate.Item }); 540yield return CreateUpdate(new ErrorContent(errorMessage) 548yield return CreateUpdate(new ErrorContent(refusalDone.Refusal) 555yield return CreateUpdate();