你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AgentsClient class

构造函数

AgentsClient(string, KeyCredential | 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, KeyCredential | TokenCredential, AgentsClientOptionalParams)

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

参数

endpointParam

string

属性详细信息

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>