Skip to main content

Interface: ILearnerSession

Defined in: packages/agentos/src/cognition/learning/types.ts:133

One session's view of the layer: what a GMI calls around its turns.

Methods​

currentTraits()​

currentTraits(): HexacoTraitValues

Defined in: packages/agentos/src/cognition/learning/types.ts:139

The traits the session renders.

Returns​

HexacoTraitValues


endSession()​

endSession(): Promise<void>

Defined in: packages/agentos/src/cognition/learning/types.ts:137

Ends the session. Safe to call more than once.

Returns​

Promise<void>


prepareTurn()​

prepareTurn(input): Promise<TurnPreparation>

Defined in: packages/agentos/src/cognition/learning/types.ts:135

Called once per user turn, before the tool loop.

Parameters​

input​

TurnInputForLearning

Returns​

Promise<TurnPreparation>