MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / getSession

Function getSession

scripts/mars-api.mjs:216–221  ·  view source on GitHub ↗

@param {{ signal?: AbortSignal }} [options]

(sessionId, { signal } = {})

Source from the content-addressed store, hash-verified

214
215 /** @param {{ signal?: AbortSignal }} [options] */
216 async getSession(sessionId, { signal } = {}) {
217 const body = await request("GET", `${SESSIONS_PATH}/${sessionId}`, {
218 signal,
219 });
220 return body?.session ?? null;
221 },
222
223 /**
224 * Agent Configs are the durable agent definitions (one config, many

Callers

nothing calls this directly

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected