MCPcopy Index your code
hub / github.com/TanStack/ai / get

Method get

packages/ai-code-mode/src/agent-store.ts:19–21  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

17 private readonly sessions = new Map<string, AgentSession>()
18
19 get(name: string): Promise<AgentSession | null> {
20 return Promise.resolve(this.sessions.get(name) ?? null)
21 }
22
23 set(name: string, session: AgentSession): Promise<void> {
24 this.sessions.set(name, session)

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected