Jido.Character.Schema (Jido Character v1.0.0)

Copy Markdown View Source

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 validation
  • new/1, new!/1 - Creates a validated struct with defaults applied
  • Type specs for documentation and Dialyzer

Nested Components

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

character()

Complete character schema

identity()

Identity schema - who the character is

knowledge_item()

Knowledge item schema - permanent facts the character knows

memory()

Memory schema - what the character remembers

memory_entry()

Memory entry schema - individual memory item

personality()

Personality schema - how the character behaves

trait()

Trait schema - either a simple string or a Trait struct with name and intensity

trait_struct()

Trait struct schema

voice()

Voice schema - how the character communicates