ImageGenTool Class
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.
A tool that generates images using a model like gpt-image-1.
public class ImageGenTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ImageGenTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ImageGenTool>
type ImageGenTool = class
inherit Tool
interface IUtf8JsonSerializable
interface IJsonModel<ImageGenTool>
interface IPersistableModel<ImageGenTool>
Public Class ImageGenTool
Inherits Tool
Implements IJsonModel(Of ImageGenTool), IPersistableModel(Of ImageGenTool)
- Inheritance
- Implements
Constructors
Properties
| Name | Description |
|---|---|
| Background |
Background type for the generated image. One of |
| InputImageMask |
Optional mask for inpainting. Contains |
| Model |
The image generation model to use. Default: |
| Moderation |
Moderation level for the generated image. Default: |
| OutputCompression |
Compression level for the output image. Default: 100. |
| OutputFormat |
The output format of the generated image. One of |
| PartialImages |
Number of partial images to generate in streaming mode, from 0 (default value) to 3. |
| Quality |
The quality of the generated image. One of |
| Size |
The size of the generated image. One of |
| Type |
Gets or sets the type. (Inherited from Tool) |
Methods
| Name | Description |
|---|---|
| DeserializeImageGenTool(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |