pub struct AgentSpec {
pub model: String,
pub instructions: String,
pub tools: Vec<String>,
pub skills: Vec<String>,
pub sandbox: String,
pub thinking: ThinkingLevel,
}Expand description
A declarative, serializable agent specification.
Unlike AgentProfile (which holds trait objects), AgentSpec is plain
data: it can be read from a config file and resolved at startup.
Fields§
§model: StringModel id, e.g. anthropic/claude-sonnet-4-6.
instructions: StringSystem instructions.
tools: Vec<String>Tool names to enable (resolved against the runtime registry).
skills: Vec<String>Skill directories or packaged-skill ids.
sandbox: StringSandbox flavour: local | virtual | container.
thinking: ThinkingLevelReasoning effort.
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