Skip to main content

IntoManifest

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>

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

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".

Implementations on Foreign Types§

§

impl IntoManifest for &AgentManifest

§

fn into_manifest(self) -> Result<AgentManifest, Error>

§

impl IntoManifest for &EmbeddedAgent

§

fn into_manifest(self) -> Result<AgentManifest, Error>

§

fn skill_files(&self) -> SkillFiles

§

impl IntoManifest for AgentManifest

§

fn into_manifest(self) -> Result<AgentManifest, Error>

§

impl IntoManifest for EmbeddedAgent

§

fn into_manifest(self) -> Result<AgentManifest, Error>

§

fn skill_files(&self) -> SkillFiles

Implementors§