pub struct Agent {
pub file_stem: String,
pub name: String,
pub description: Option<String>,
pub tools: Vec<String>,
pub model: Option<String>,
pub file_path: PathBuf,
pub body: String,
pub extra: BTreeMap<String, String>,
}Expand description
Full agent record returned by AgentsRoot::get.
Fields§
§file_stem: StringFilename stem (<stem>.md). The canonical handle for lookup.
name: StringFrontmatter name if present; falls back to file_stem.
description: Option<String>Frontmatter description if present.
tools: Vec<String>Frontmatter tools parsed as a comma-separated list.
model: Option<String>Frontmatter model if present.
file_path: PathBufAbsolute path to the source file.
body: StringMarkdown body after the frontmatter block (trimmed of leading/trailing blank lines).
extra: BTreeMap<String, String>Frontmatter keys other than the typed ones. Preserves unknown future fields verbatim as raw strings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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