Skip to main content

AgentsWriter

Trait AgentsWriter 

Source
pub trait AgentsWriter {
    // Required methods
    fn name(&self) -> AgentName;
    fn write_agent(&self, root: &Path, agent: &Agent) -> Result<PathBuf>;
}

Required Methods§

Source

fn name(&self) -> AgentName

Source

fn write_agent(&self, root: &Path, agent: &Agent) -> Result<PathBuf>

Write a single agent to <root>/<agent-dir>/agents/<agent.name>.agent.md. Returns the path of the written file.

Implementors§