Core Zoi schemas for character definitions.
Provides schema definitions for validating character data structures.
All fields except id are optional to support minimal character definitions.
Each component module provides:
schema/0- Returns the Zoi schema for validationnew/1,new!/1- Creates a validated struct with defaults applied- Type specs for documentation and Dialyzer
Nested Components
Jido.Character.Schema.Trait- personality trait with optional intensityJido.Character.Schema.KnowledgeItem- permanent facts the character knowsJido.Character.Schema.MemoryEntry- individual memory item with decayJido.Character.Schema.Memory- memory container with capacityJido.Character.Schema.Identity- who the character isJido.Character.Schema.Personality- how the character behavesJido.Character.Schema.Voice- how the character communicates
Summary
Functions
Complete character schema
Identity schema - who the character is
Knowledge item schema - permanent facts the character knows
Memory schema - what the character remembers
Memory entry schema - individual memory item
Personality schema - how the character behaves
Trait schema - either a simple string or a Trait struct with name and intensity
Trait struct schema
Voice schema - how the character communicates
Functions
Complete character schema
Identity schema - who the character is
Knowledge item schema - permanent facts the character knows
Memory schema - what the character remembers
Memory entry schema - individual memory item
Personality schema - how the character behaves
Trait schema - either a simple string or a Trait struct with name and intensity
Trait struct schema
Voice schema - how the character communicates