pub struct AgentSpec {Show 13 fields
pub name: String,
pub command: Vec<CommandPart>,
pub model: Option<String>,
pub effort: Option<String>,
pub output: OutputMode,
pub message_match: BTreeMap<String, String>,
pub message_path: Option<String>,
pub search_paths: Vec<String>,
pub system_via: SystemVia,
pub timeout: u64,
pub models: Vec<String>,
pub efforts: Vec<String>,
pub options_note: Option<String>,
}Expand description
Everything needed to drive one CLI. An agent is data, not a class: supporting a new tool is a preset file.
Fields§
§name: String§command: Vec<CommandPart>§model: Option<String>§effort: Option<String>§output: OutputMode§message_match: BTreeMap<String, String>For jsonl: the event fields that identify the agent’s own message.
message_path: Option<String>For jsonl: the dotted path to the text inside a matching event.
search_paths: Vec<String>Extra places to look for the binary when it is not on PATH.
system_via: SystemVia§timeout: u64§models: Vec<String>Model names this CLI is known to accept.
efforts: Vec<String>Effort levels this CLI is known to accept.
options_note: Option<String>Where to check the current list, when spar cannot enumerate it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentSpec
impl<'de> Deserialize<'de> for AgentSpec
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 AgentSpec
impl RefUnwindSafe for AgentSpec
impl Send for AgentSpec
impl Sync for AgentSpec
impl Unpin for AgentSpec
impl UnsafeUnpin for AgentSpec
impl UnwindSafe for AgentSpec
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