Skip to content

AgentRegistry

Methods

add

AgentRegistry:add(spec)

Register a personality from a { name, model, modes, ... } table.

Parameters

  • spec: {name: string, description: string?, spawn_description: string?, model: string, skip_default_prompt: boolean?, prompt: string?, modes: {[integer]: {name: string, description: string?, prompt: string?, tools: {[integer]: string}, tool_options: {[string]: any}?}}}
    • name — The advertised name, unique across the set.
    • description — Human-facing text shown in the /personality picker.
    • spawn_description — The text advertised to a parent model on the spawn tool.
    • model — The ModelRef string the personality activates on, in the same syntax as --model and /model.
    • skip_default_prompt — When true, the personality's prompt fragment replaces the static base prompt rather than following it.
    • prompt — A prompt fragment establishing the personality's identity.
    • modes — The personality's modes, in declaration order; the first is the default.