Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / ScopeResolver

Type Alias: ScopeResolver

ts
type ScopeResolver = (ctx) => 
  | SessionScope
| Promise<SessionScope>;

Defined in: packages/memory/src/tools/types.ts:17

Resolver that produces the live SessionScope for the tool call from the surrounding agent run context. The agent runtime (Phase 12) supplies a closure that reads RunContext directly; standalone callers can pass a fixed scope.

Parameters

ParameterType
ctxToolExecutionContext

Returns

| SessionScope | Promise&lt;SessionScope&gt;

Stable