MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / requestRaw

Method requestRaw

projects/runtime-client/src/client.ts:273–279  ·  view source on GitHub ↗
(method: string, params?: unknown)

Source from the content-addressed store, hash-verified

271 }
272
273 private async requestRaw<T>(method: string, params?: unknown): Promise<T> {
274 const request: RuntimeRequest = params === undefined ? { id: this.nextId++, method } : { id: this.nextId++, method, params }
275 const response = validateRuntimeResponse(await this.transport.request(request))
276 if (!response.ok) throw new RuntimeClientError(response.error.code, response.error.message, { path: response.error.path })
277 if (response.value.error) throw new RuntimeClientError(response.value.error.code, response.value.error.message, response.value.error.data)
278 return response.value.result as T
279 }
280
281 async connect(): Promise<void> {
282 if (this.connected) return

Callers 2

requestMethod · 0.95
connectOnceMethod · 0.95

Calls 2

validateRuntimeResponseFunction · 0.90
requestMethod · 0.65

Tested by

no test coverage detected