pub struct AgentManifest {
pub name: String,
pub version: String,
pub description: String,
pub author: String,
pub license: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub tags: Vec<String>,
pub files: Vec<String>,
pub main: Option<String>,
pub dependencies: Option<HashMap<String, String>>,
}Expand description
Agent manifest structure
Fields§
§name: StringAgent name
version: StringAgent version (semver)
description: StringShort description
Author information
license: Option<String>License identifier
homepage: Option<String>Homepage URL
repository: Option<String>Repository URL
Tags for categorization
files: Vec<String>List of files to include in the package
main: Option<String>Entry point script or configuration
dependencies: Option<HashMap<String, String>>Dependencies on other agents
Implementations§
Source§impl AgentManifest
impl AgentManifest
Sourcepub fn load<P: AsRef<Path>>(path: P) -> CarpResult<Self>
pub fn load<P: AsRef<Path>>(path: P) -> CarpResult<Self>
Load manifest from a TOML file
Sourcepub fn validate(&self) -> CarpResult<()>
pub fn validate(&self) -> CarpResult<()>
Validate the manifest
Trait Implementations§
Source§impl Clone for AgentManifest
impl Clone for AgentManifest
Source§fn clone(&self) -> AgentManifest
fn clone(&self) -> AgentManifest
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentManifest
impl Debug for AgentManifest
Source§impl<'de> Deserialize<'de> for AgentManifest
impl<'de> Deserialize<'de> for AgentManifest
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 AgentManifest
impl RefUnwindSafe for AgentManifest
impl Send for AgentManifest
impl Sync for AgentManifest
impl Unpin for AgentManifest
impl UnwindSafe for AgentManifest
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