共用方式為


StructuredOutputDefinition interface

一個由代理人能產生的結構化輸出。

屬性

description

要發出的輸出描述。 模型用來判斷何時發出輸出。

name

結構化輸出的名稱。

schema

結構化輸出的 JSON 結構描述。

strict

是否強制執行嚴格驗證。 預設 true

屬性詳細資料

description

要發出的輸出描述。 模型用來判斷何時發出輸出。

description: string

屬性值

string

name

結構化輸出的名稱。

name: string

屬性值

string

schema

結構化輸出的 JSON 結構描述。

schema: Record<string, any>

屬性值

Record<string, any>

strict

是否強制執行嚴格驗證。 預設 true

strict: boolean

屬性值

boolean