Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / trajectoryFromRunState
Function: trajectoryFromRunState()
ts
function trajectoryFromRunState(run): Trajectory;Defined in: packages/memory/src/consolidator/phases/induce.ts:276
Distil a RunState into the minimal Trajectory the inducer needs. Pure — consumes the agent's already-emitted run state, so capturing a trajectory + its success signal needs no agent-loop change. The success signal is status === 'completed'.
Parameters
| Parameter | Type |
|---|---|
run | RunState |