共用方式為


Agent interface

表示可以呼叫模型並使用工具的代理程式。

屬性

createdAt

Unix 時間戳,以秒為單位,表示建立此對象的時間。

description

代理程式的描述。

id

識別碼,可在 API 端點中參考。

instructions

代理程式要使用的系統指示。

metadata

一組最多可以附加至物件的16個索引鍵/值組,用於以結構化格式儲存該物件的其他資訊。 索引鍵的長度可能最多為64個字元,且值長度最多為512個字元。

model

要使用的模型標識碼。

name

代理程式的名稱。

object

物件類型,一律為小幫手。

responseFormat

這個代理程式所使用之工具呼叫的回應格式。

temperature

要使用的取樣溫度,介於 0 到 2 之間。 0.8 之類的較高值會讓輸出更隨機,而 0.2 之類的較低值會使它更集中且具決定性。

toolResources

代理程式工具所使用的一組資源。 工具的類型專用的資源。 例如,code_interpreter 工具需要檔案識別碼的清單,而 file_search 工具則需要向量存放區識別碼的清單。

tools

為代理程式啟用的工具集合。

topP

核取樣是溫度取樣的替代方法,在此方法中,模型會考慮包含 top_p 機率質量的權杖結果。 因此,0.1 表示只考慮組成前 10% 機率質量的權杖。

一般會建議改變這個值或溫度,但不建議同時改變。

屬性詳細資料

createdAt

Unix 時間戳,以秒為單位,表示建立此對象的時間。

createdAt: Date

屬性值

Date

description

代理程式的描述。

description: null | string

屬性值

null | string

id

識別碼,可在 API 端點中參考。

id: string

屬性值

string

instructions

代理程式要使用的系統指示。

instructions: null | string

屬性值

null | string

metadata

一組最多可以附加至物件的16個索引鍵/值組,用於以結構化格式儲存該物件的其他資訊。 索引鍵的長度可能最多為64個字元,且值長度最多為512個字元。

metadata: null | Record<string, string>

屬性值

null | Record<string, string>

model

要使用的模型標識碼。

model: string

屬性值

string

name

代理程式的名稱。

name: null | string

屬性值

null | string

object

物件類型,一律為小幫手。

object: "assistant"

屬性值

"assistant"

responseFormat

這個代理程式所使用之工具呼叫的回應格式。

responseFormat?: null | AgentsResponseFormatOption

屬性值

temperature

要使用的取樣溫度,介於 0 到 2 之間。 0.8 之類的較高值會讓輸出更隨機,而 0.2 之類的較低值會使它更集中且具決定性。

temperature: null | number

屬性值

null | number

toolResources

代理程式工具所使用的一組資源。 工具的類型專用的資源。 例如,code_interpreter 工具需要檔案識別碼的清單,而 file_search 工具則需要向量存放區識別碼的清單。

toolResources: null | ToolResources

屬性值

null | ToolResources

tools

為代理程式啟用的工具集合。

tools: ToolDefinitionUnion[]

屬性值

topP

核取樣是溫度取樣的替代方法,在此方法中,模型會考慮包含 top_p 機率質量的權杖結果。 因此,0.1 表示只考慮組成前 10% 機率質量的權杖。

一般會建議改變這個值或溫度,但不建議同時改變。

topP: null | number

屬性值

null | number