* 克隆 Agent * @param agentId 源 Agent ID * @param newName 新 Agent 名称 * @returns 克隆的 Agent
(agentId: string, newName: string)
| 335 | * @returns 克隆的 Agent |
| 336 | */ |
| 337 | async clone(agentId: string, newName: string): Promise<AgentInfo> { |
| 338 | return this.request<AgentInfo>(`/v1/agents/${agentId}/clone`, { |
| 339 | method: "POST", |
| 340 | body: { name: newName }, |
| 341 | }); |
| 342 | } |
| 343 | } |