Skip to main content

Primitive types

All fields in the API use these core primitive types:
Timestamps are nanoseconds since Unix epoch. In JavaScript: Date.now() * 1_000_000.

Event structure

The Event object is the core data structure. Every interaction enters Minns Memory Layer as an event.

EventContext structure

Every event carries a context object describing the environment at the time of the event.

EnvironmentState

TemporalContext

Goal

ComputationalResources


MetadataValue

Metadata values are typed wrappers:
Store fields you need to filter by (like user_id) in the metadata object. This makes them searchable in the graph layer.

Value constraints

Numeric ranges:
  • priority, progress, confidence: 0.0 to 1.0
  • cpu_percent: 0.0 to 100.0
  • hour: 0 to 23
  • minute: 0 to 59
ID fields:
  • EventId is a u128 (128-bit integer)
  • All other IDs are u64 (64-bit integers)
String fields:
  • Cannot be empty unless explicitly noted
  • agent_type, action_name, description must be non-empty
Array fields:
  • Can be empty [] unless explicitly required to have elements