Skip to main content

Module hooks

Module hooks 

Source
Expand description

Knowledge bookkeeping the Hive connector keeps: how often its facts reached an agent (M1, M5) and the session learnings it queues for review at a session’s end. The connector registers KnowledgeHooks at start-up (register_knowledge_hooks); without them (library use, tests) nothing is counted or queued. Neither hook decides what an agent is shown.

Structs§

KnowledgeHooks
The registered knowledge bookkeeping.

Functions§

record_delivery
A delivery to an agent in project_root handed it hive_facts facts pulled from a Hive vault. asked: the agent asked for knowledge (a recall).
register_knowledge_hooks
Register the knowledge hooks. The first registration wins.
session_ended
A host session in project_root ended. Enqueues only, never network, never an error for the caller.

Type Aliases§

DeliveryHook
(project_root, session (id, started_at), hive_facts, asked).
SessionEndHook
(project_root, session_id).