AgentsClient class
屬性
| files | 檔的作組 |
| messages | 消息的作組 |
| pipeline | 此客戶端用來提出要求的管線 |
| runs | 運行的作組 |
| run |
runSteps 的作組 |
| threads | 線程的作組 |
| vector |
vectorStoreFileBatches 的作組 |
| vector |
vectorStoreFiles 的作組 |
| vector |
vectorStores 的作組 |
方法
| create |
建立新的代理程式。 |
| delete |
刪除代理程式。 |
| get |
擷取現有的代理程式。 |
| list |
取得先前建立的代理程序清單。 |
| update |
修改現有的代理程式。 |
建構函式詳細資料
AgentsClient(string, TokenCredential, AgentsClientOptionalParams)
new AgentsClient(endpointParam: string, credential: TokenCredential, options?: AgentsClientOptionalParams)
參數
- endpointParam
-
string
- credential
- TokenCredential
- options
- AgentsClientOptionalParams
屬性詳細資料
files
messages
pipeline
runs
runSteps
threads
vectorStoreFileBatches
vectorStoreFileBatches 的作組
vectorStoreFileBatches: VectorStoreFileBatchesOperations
屬性值
vectorStoreFiles
vectorStores
方法詳細資料
createAgent(string, CreateAgentOptionalParams)
建立新的代理程式。
function createAgent(model: string, options?: CreateAgentOptionalParams): Promise<Agent>
參數
- model
-
string
- options
- CreateAgentOptionalParams
傳回
Promise<Agent>
deleteAgent(string, DeleteAgentOptionalParams)
刪除代理程式。
function deleteAgent(assistantId: string, options?: DeleteAgentOptionalParams): Promise<AgentDeletionStatus>
參數
- assistantId
-
string
- options
- DeleteAgentOptionalParams
傳回
Promise<AgentDeletionStatus>
getAgent(string, GetAgentOptionalParams)
擷取現有的代理程式。
function getAgent(assistantId: string, options?: GetAgentOptionalParams): Promise<Agent>
參數
- assistantId
-
string
- options
- GetAgentOptionalParams
傳回
Promise<Agent>
listAgents(ListAgentsOptionalParams)
取得先前建立的代理程序清單。
function listAgents(options?: ListAgentsOptionalParams): PagedAsyncIterableIterator<Agent, Agent[], PageSettings>
參數
- options
- ListAgentsOptionalParams
傳回
updateAgent(string, UpdateAgentOptionalParams)
修改現有的代理程式。
function updateAgent(assistantId: string, options?: UpdateAgentOptionalParams): Promise<Agent>
參數
- assistantId
-
string
- options
- UpdateAgentOptionalParams
傳回
Promise<Agent>