語言

HostedImageGenerationTool 類別

定義

代表一個託管工具,可指定給 AI 服務,使其能執行影像生成。

public ref class HostedImageGenerationTool : Microsoft::Extensions::AI::AITool
public class HostedImageGenerationTool : Microsoft.Extensions.AI.AITool
type HostedImageGenerationTool = class
    inherit AITool
Public Class HostedImageGenerationTool
Inherits AITool
繼承
HostedImageGenerationTool

備註

此工具本身並不實作影像生成。 它是一個標記,可以用來通知服務若有能力,該服務被允許執行影像產生。

建構函式

名稱 Description
HostedImageGenerationTool()

初始化一個新的類別實例 HostedImageGenerationTool ,並使用指定的選項。

HostedImageGenerationTool(IReadOnlyDictionary<String,Object>)

初始化 HostedImageGenerationTool 類別的新執行個體。

屬性

名稱 Description
AdditionalProperties

取得與該工具相關的額外屬性。

Description

取得工具的描述,適合用來向模型說明其用途。

(繼承來源 AITool)
Name

會拿到工具名稱。

Options

取得或設定用於設定影像生成的選項。

方法

名稱 Description
GetService(Type, Object)

請求 給 AITool 指定類型的 serviceType物件。

(繼承來源 AITool)
GetService<TService>(Object)

請求 一個 AITool 類型的 TService物件。

(繼承來源 AITool)
ToString()

傳回表示目前 物件的字串。

(繼承來源 AITool)

擴充方法

名稱 Description
AsOpenAIResponseTool(AITool)

從 ResponseTool. 建立一個 OpenAI AITool

適用於