Skip to main content

Interface: LearningLayerOptions

Defined in: packages/agentos/src/cognition/learning/LearningLayer.ts:29

What a layer is built from: the host's learning config, and what the host says about itself.

Extends​

Properties​

agentKey?​

optional agentKey: string

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

Names the agent its learners belong to. Unset: the id of the registered persona, or of a named gmi() agent.

Inherited from​

LearningConfig.agentKey


anonymousUserIds?​

optional anonymousUserIds: string[]

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

User ids that never name a learner, added to DEFAULT_ANONYMOUS_USER_IDS.

Inherited from​

LearningConfig.anonymousUserIds


hostLoops?​

optional hostLoops: Partial<Record<"memory" | "memory_mechanisms" | "memory_observer_reflector" | "memory_store" | "sentiment" | "metaprompts" | "emergent_tools" | "self_improvement_tools" | "forged_code_executor" | "hitl" | "tool_policy" | "rag", LoopState>>

Defined in: packages/agentos/src/cognition/learning/LearningLayer.ts:35

What the host's own configuration says about the loops it runs, for the manifest.


lessons?​

optional lessons: boolean

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

Asks for lessons. Default: asked for in the full profile. The manifest says whether the loop runs.

Inherited from​

LearningConfig.lessons


mode?​

optional mode: LearningMode

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

Default 'on'.

Inherited from​

LearningConfig.mode


namespace?​

optional namespace: string

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

The organization of a gmi() agent's learners, fixed for the agent. The full runtime takes each turn's resolved organization and refuses this field.

Inherited from​

LearningConfig.namespace


profile?​

optional profile: LearningProfile

Defined in: packages/agentos/src/cognition/learning/LearningLayer.ts:31

The host's cognition profile, which sets the switches the config leaves unset. Default 'custom'.


skills?​

optional skills: boolean

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

Asks for the skill library. Default: asked for in the full profile. The manifest says whether the loop runs.

Inherited from​

LearningConfig.skills


surface?​

optional surface: "custom" | "gmi" | "runtime"

Defined in: packages/agentos/src/cognition/learning/LearningLayer.ts:33

The host that builds the layer. Default 'custom': a product that calls the layer around its own turn loop.


traits?​

optional traits: boolean

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

Asks for trait changes. Default: asked for in the full profile. The manifest says whether the loop runs.

Inherited from​

LearningConfig.traits