ResponseEventStream.OutputItemImageGenCall(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience generator that yields the complete image generation call output-item lifecycle from a final base64-encoded image result.
public System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> OutputItemImageGenCall(string resultBase64);
member this.OutputItemImageGenCall : string -> seq<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Iterator Function OutputItemImageGenCall (resultBase64 As String) As IEnumerable(Of ResponseStreamEvent)
Parameters
- resultBase64
- String
The base64-encoded image data (PNG, JPEG, or WebP). For example:
Convert.ToBase64String(imageBytes).
Returns
An enumerable of events: output_item.added → image_gen_call.in_progress →
image_gen_call.generating → image_gen_call.completed → output_item.done.
Remarks
For streaming partial images (progressive rendering), use AddOutputItemImageGenCall() to get a builder and call EmitPartialImage(String) between EmitGenerating() and EmitCompleted().