pub struct AgentWriteInput {
pub name: Option<String>,
pub description: Option<String>,
pub tools: Vec<String>,
pub model: Option<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.
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
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 AgentWriteInput
impl Debug for AgentWriteInput
Source§impl Default for AgentWriteInput
impl Default for AgentWriteInput
Source§fn default() -> AgentWriteInput
fn default() -> AgentWriteInput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentWriteInput
impl RefUnwindSafe for AgentWriteInput
impl Send for AgentWriteInput
impl Sync for AgentWriteInput
impl Unpin for AgentWriteInput
impl UnsafeUnpin for AgentWriteInput
impl UnwindSafe for AgentWriteInput
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