MCPcopy Create free account
hub / github.com/astercloud/aster / clone

Method clone

client-sdks/client-js/src/resources/agent.ts:337–342  ·  view source on GitHub ↗

* 克隆 Agent * @param agentId 源 Agent ID * @param newName 新 Agent 名称 * @returns 克隆的 Agent

(agentId: string, newName: string)

Source from the content-addressed store, hash-verified

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}

Callers 1

mainFunction · 0.80

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected