pub struct AgentWriteInput {
pub name: Option<String>,
pub description: Option<String>,
pub tools: Vec<String>,
pub model: Option<String>,
pub skills: Vec<String>,
pub body: String,
pub extra: BTreeMap<String, String>,
}Expand description
Input to AgentsRoot::write / AgentsRoot::write_new.
Mirrors the parsed Agent minus the derived bits
(file_stem and file_path are determined by where the agent
is being written). body is required; everything else is
optional and omitted from the rendered frontmatter when empty.
Fields§
§name: Option<String>Frontmatter name. Defaults to the file_stem argument
when absent.
description: Option<String>Frontmatter description. Omitted when None.
tools: Vec<String>Frontmatter tools as a list; rendered comma-joined.
Empty list omits the key entirely.
model: Option<String>Frontmatter model. Omitted when None.
skills: Vec<String>Frontmatter skills as a list; rendered as a YAML block
sequence. Empty list omits the key entirely.
body: StringBody of the agent prompt. Trimmed of surrounding whitespace before write.
extra: BTreeMap<String, String>Additional frontmatter key/value pairs preserved verbatim. Iterated in sorted order for deterministic output.
Trait Implementations§
Source§impl Clone for AgentWriteInput
impl Clone for AgentWriteInput
Source§fn clone(&self) -> AgentWriteInput
fn clone(&self) -> AgentWriteInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more