Skip to content

reflect_policy

The reflect_policy operation configures when and how the reflection pipeline runs automatically. Reflection consolidates raw episodes into insights; the policy determines triggers (e.g., memory count threshold, time interval) and scope (entity, global).

ProtocolServiceREST Endpoint
gRPCReflectService (policy config)
RESTNot yet implemented
ParameterTypeDescription
trigger_typeenummemory_count, interval, manual_only.
memory_thresholdintRun reflection when entity has N new episodes since last run.
interval_secondsintRun reflection every N seconds (bounded, e.g., max 24h).
entity_scopestring or nullEntity to scope; null = global.
max_memories_per_runintCap memories processed per run (bounded).
max_clustersintCap clusters formed per run.
  • memory_count: After remember or batch ingest, if entity’s new-episode count >= memory_threshold.
  • interval: Background scheduler fires every interval_seconds.
  • manual_only: No automatic triggers; reflection runs only via explicit reflect call.