Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/agent / run-state / createInitialRunState

Function: createInitialRunState()

ts
function createInitialRunState(args): RunState;

Defined in: packages/agent/src/run-state/index.ts:302

Build a fresh, minimal RunState for a new run. Helper used by createAgent({...}) so consumers can construct deterministic run state in tests.

Parameters

ParameterType
args{ agentId: string; id: string; sessionId: string; startedAt?: string; userId?: string; }
args.agentIdstring
args.idstring
args.sessionIdstring
args.startedAt?string
args.userId?string

Returns

RunState

Stable