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

Method chat

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

* 与 Agent 对话(同步) * @param agentId Agent ID * @param request Chat 请求 * @returns Chat 响应

(agentId: string, request: ChatRequest)

Source from the content-addressed store, hash-verified

125 * @returns Chat 响应
126 */
127 async chat(agentId: string, request: ChatRequest): Promise<ChatResponse> {
128 return this.request<ChatResponse>(`/v1/agents/${agentId}/chat`, {
129 method: "POST",
130 body: request,
131 });
132 }
133
134 /**
135 * 与 Agent 对话(流式)

Callers 1

mainFunction · 0.80

Calls 1

requestMethod · 0.80

Tested by

no test coverage detected