MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / info

Method info

sdk/js/src/index.ts:295–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

293 }
294
295 async info(): Promise<InfoResponse<T>> {
296 const result = await send_rpc_request<Omit<InfoResponse<TcbInfo>, 'tcb_info'> & { tcb_info: string }>(this.endpoint, '/Info', '{}')
297 return Object.freeze({
298 ...result,
299 tcb_info: JSON.parse(result.tcb_info) as T,
300 })
301 }
302
303 /**
304 * Query the guest-agent version.

Callers 1

index.test.tsFile · 0.45

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected