* 更新 Agent * @param agentId Agent ID * @param updates 更新内容 * @returns 更新后的 Agent
(agentId: string, updates: UpdateAgentRequest)
| 57 | * @returns 更新后的 Agent |
| 58 | */ |
| 59 | async update(agentId: string, updates: UpdateAgentRequest): Promise<AgentInfo> { |
| 60 | return this.request<AgentInfo>(`/v1/agents/${agentId}`, { |
| 61 | method: "PATCH", |
| 62 | body: updates, |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * 删除 Agent |
no test coverage detected