OutputItemImageGenCallBuilder.EmitDone(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.
Produces a response.output_item.done event with a completed image generation item
containing the final image result.
public virtual Azure.AI.AgentServer.Responses.Models.ResponseOutputItemDoneEvent EmitDone(string result);
override this.EmitDone : string -> Azure.AI.AgentServer.Responses.Models.ResponseOutputItemDoneEvent
Public Overridable Function EmitDone (result As String) As ResponseOutputItemDoneEvent
Parameters
- result
- String
The base64-encoded image data (PNG, JPEG, or WebP). Clients decode this value with
Convert.FromBase64String(result) to obtain the raw image bytes.
To produce the value from a byte array:
Convert.ToBase64String(imageBytes).
To produce the value from a file:
Convert.ToBase64String(File.ReadAllBytes("image.png")).
Returns
A ResponseOutputItemDoneEvent for this image generation call.