Function createLearningLayer

  • Builds a learning layer.

    gmi() builds one per agent and the full runtime one per AgentOS when their learning option is on. A product that builds its own memory manager and runs its own turn loop calls this itself, with memory and its storageAdapter: forLearner() for each session, prepareTurn() before each turn, and the personality section it returns goes into the system prompt.

    An option set to null reads as unset, as one read from JSON or YAML writes it, and takes its default.

    Parameters

    Returns LearningLayerHandle

    Throws

    Naming the field, when the config is not valid (resolveLearningConfig).