共用方式為


AgentsClient class

建構函式

AgentsClient(string, TokenCredential, AgentsClientOptionalParams)

屬性

files

檔的作組

messages

消息的作組

pipeline

此客戶端用來提出要求的管線

runs

運行的作組

runSteps

runSteps 的作組

threads

線程的作組

vectorStoreFileBatches

vectorStoreFileBatches 的作組

vectorStoreFiles

vectorStoreFiles 的作組

vectorStores

vectorStores 的作組

方法

createAgent(string, CreateAgentOptionalParams)

建立新的代理程式。

deleteAgent(string, DeleteAgentOptionalParams)

刪除代理程式。

getAgent(string, GetAgentOptionalParams)

擷取現有的代理程式。

listAgents(ListAgentsOptionalParams)

取得先前建立的代理程序清單。

updateAgent(string, UpdateAgentOptionalParams)

修改現有的代理程式。

建構函式詳細資料

AgentsClient(string, TokenCredential, AgentsClientOptionalParams)

new AgentsClient(endpointParam: string, credential: TokenCredential, options?: AgentsClientOptionalParams)

參數

endpointParam

string

credential
TokenCredential

屬性詳細資料

files

檔的作組

files: FilesOperations

屬性值

messages

消息的作組

messages: MessagesOperations

屬性值

pipeline

此客戶端用來提出要求的管線

pipeline: Pipeline

屬性值

runs

運行的作組

runs: RunsOperations

屬性值

runSteps

runSteps 的作組

runSteps: RunStepsOperations

屬性值

threads

線程的作組

threads: ThreadsOperations

屬性值

vectorStoreFileBatches

vectorStoreFileBatches 的作組

vectorStoreFileBatches: VectorStoreFileBatchesOperations

屬性值

vectorStoreFiles

vectorStoreFiles 的作組

vectorStoreFiles: VectorStoreFilesOperations

屬性值

vectorStores

vectorStores 的作組

vectorStores: VectorStoresOperations

屬性值

方法詳細資料

createAgent(string, CreateAgentOptionalParams)

建立新的代理程式。

function createAgent(model: string, options?: CreateAgentOptionalParams): Promise<Agent>

參數

model

string

傳回

Promise<Agent>

deleteAgent(string, DeleteAgentOptionalParams)

刪除代理程式。

function deleteAgent(assistantId: string, options?: DeleteAgentOptionalParams): Promise<AgentDeletionStatus>

參數

assistantId

string

傳回

getAgent(string, GetAgentOptionalParams)

擷取現有的代理程式。

function getAgent(assistantId: string, options?: GetAgentOptionalParams): Promise<Agent>

參數

assistantId

string

傳回

Promise<Agent>

listAgents(ListAgentsOptionalParams)

取得先前建立的代理程序清單。

function listAgents(options?: ListAgentsOptionalParams): PagedAsyncIterableIterator<Agent, Agent[], PageSettings>

參數

傳回

updateAgent(string, UpdateAgentOptionalParams)

修改現有的代理程式。

function updateAgent(assistantId: string, options?: UpdateAgentOptionalParams): Promise<Agent>

參數

assistantId

string

傳回

Promise<Agent>