Trait IntoManifest
pub trait IntoManifest {
// Required method
fn into_manifest(self) -> Result<AgentManifest, Error>;
// Provided method
fn skill_files(&self) -> SkillFiles { ... }
}Expand description
Something an AgentDef can be made from: the owned manifest that a directory produces, or
the 'static one that build.rs embeds. Both end up as the same [AgentManifest], so an
agent binds the same way wherever its files came from.
Required Methods§
fn into_manifest(self) -> Result<AgentManifest, Error>
fn into_manifest(self) -> Result<AgentManifest, Error>
The owned manifest.
§Errors
An embedded manifest whose frontmatter cannot be decoded: the generated code and
adam-agent-fs are not the same version.
Provided Methods§
fn skill_files(&self) -> SkillFiles
fn skill_files(&self) -> SkillFiles
The bytes of the files the skills bundle. The default is none, which is right for a
manifest whose skills bundle nothing; a directory’s manifest gets them from
AgentDef::resources_from and an embedded agent brings its own.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".