pub struct AgentTemplate { /* private fields */ }Expand description
A named set of verb templates from voro.toml. dispatch (or its alias
cmd) is required and always contains PROMPT_FILE_PLACEHOLDER; it may
also carry the optional SESSION_NAME_PLACEHOLDER and
TASK_ID_PLACEHOLDER. The rest are optional, with their
{session}/{prompt_file} placeholders validated at parse time.
Implementations§
Source§impl AgentTemplate
impl AgentTemplate
Sourcepub fn dispatch(&self) -> &str
pub fn dispatch(&self) -> &str
The dispatch command — dispatch, or its legacy alias cmd.
Presence of exactly one is enforced at parse time.
pub fn sessions(&self) -> Option<&str>
pub fn attach(&self) -> Option<&str>
pub fn resume(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
pub fn logs(&self) -> Option<&str>
pub fn cap(&self) -> Option<&str>
pub fn stop(&self) -> Option<&str>
pub fn plan(&self) -> Option<&str>
pub fn model(&self) -> Option<&str>
pub fn model_deep(&self) -> Option<&str>
pub fn model_plan(&self) -> Option<&str>
Sourcepub fn model_for(&self, deep: bool) -> Option<&str>
pub fn model_for(&self, deep: bool) -> Option<&str>
The model a launch of this agent at the given depth runs with, by the
same rule ResolvedAgent::launch_command resolves it by — shared so
the two cannot drift, since anything asking about a session has to
name the model that session actually started under.
Sourcepub fn verbs(&self) -> Vec<&'static str>
pub fn verbs(&self) -> Vec<&'static str>
The optional verbs this agent defines, in roster order, as agent list
and the Config screen name them (DESIGN.md §8). A message that carries
NEW_SESSION_PLACEHOLDER reads message(fork), because forking is
what a send into a supervisor-held session needs and it moves the
session reference the row afterwards addresses.
Trait Implementations§
Source§impl Clone for AgentTemplate
impl Clone for AgentTemplate
Source§fn clone(&self) -> AgentTemplate
fn clone(&self) -> AgentTemplate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more