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 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 continue_cmd(&self) -> Option<&str>
pub fn plan(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for AgentTemplate
impl Clone for AgentTemplate
Source§fn clone(&self) -> AgentTemplate
fn clone(&self) -> AgentTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentTemplate
impl Debug for AgentTemplate
Source§impl<'de> Deserialize<'de> for AgentTemplate
impl<'de> Deserialize<'de> for AgentTemplate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentTemplate
impl RefUnwindSafe for AgentTemplate
impl Send for AgentTemplate
impl Sync for AgentTemplate
impl Unpin for AgentTemplate
impl UnsafeUnpin for AgentTemplate
impl UnwindSafe for AgentTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more