Share via


ImageGeneratorMetadata(String, Uri, String) Constructor

Definition

Initializes a new instance of the ImageGeneratorMetadata class.

public ImageGeneratorMetadata(string? providerName = default, Uri? providerUri = default, string? defaultModelId = default);
new Microsoft.Extensions.AI.ImageGeneratorMetadata : string * Uri * string -> Microsoft.Extensions.AI.ImageGeneratorMetadata
Public Sub New (Optional providerName As String = Nothing, Optional providerUri As Uri = Nothing, Optional defaultModelId As String = Nothing)

Parameters

providerName
String

The name of the image generation provider, if applicable. Where possible, this should map to the appropriate name defined in the OpenTelemetry Semantic Conventions for Generative AI systems.

providerUri
Uri

The URL for accessing the image generation provider, if applicable.

defaultModelId
String

The ID of the image generation model used by default, if applicable.

Applies to