Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/memory / / trajectoryFromRunState

Function: trajectoryFromRunState()

ts
function trajectoryFromRunState(run): Trajectory;

Defined in: packages/memory/src/consolidator/phases/induce.ts:298

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

ParameterType
runRunState

Returns

Trajectory