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

Method update

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

* 更新 Agent * @param agentId Agent ID * @param updates 更新内容 * @returns 更新后的 Agent

(agentId: string, updates: UpdateAgentRequest)

Source from the content-addressed store, hash-verified

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

Callers 3

updateStatusMethod · 0.95
mainFunction · 0.45

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected