AgentRegistry¶
Methods¶
add¶
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}?}}, watchdog: {max_consecutive_errors: number?, max_rounds_without_success: number?, refractory_rounds: number?, refractory_seconds: number?, repeat_sentence_window: number?, repeat_sentence_threshold: number?, repeat_sentence_threshold_loose: number?, min_sentence_chars: number?, min_armed_sentences: number?, repeat_call_window: number?, repeat_call_threshold: number?, repeat_call_max_len: number?, max_think_nudges: number?, interrupt_on_cap: boolean?, nudge_text: string?, break_loop_text: string?}?}name— The advertised name, unique across the set.description— Human-facing text shown in the/personalitypicker.spawn_description— The text advertised to a parent model on thespawntool.model— TheModelRefstring the personality activates on, in the same syntax as--modeland/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.watchdog— The harness watchdog policy. Its presence opts the personality in.