pub struct MuragentWriter { /* private fields */ }Implementations§
Source§impl MuragentWriter
impl MuragentWriter
pub fn new( manifest: MuragentManifest, profile_yaml: String, identity: AgentIdentity, ) -> Self
pub fn add_icon(&mut self, name: &str, data: Vec<u8>)
pub fn set_voice_yaml(&mut self, yaml: String)
Sourcepub fn set_sys_prompt(&mut self, md: String)
pub fn set_sys_prompt(&mut self, md: String)
Bundle the agent’s system prompt so the recipient runs with the same persona/instructions (without this the loaded agent has no prompt).
Sourcepub fn add_skill(&mut self, name: &str, data: Vec<u8>)
pub fn add_skill(&mut self, name: &str, data: Vec<u8>)
Bundle a skill markdown file under skills/<name> so skill
registrations in the profile keep their backing file after load.
pub fn add_commander_asset(&mut self, path: &str, data: Vec<u8>)
pub fn add_hub_asset(&mut self, path: &str, data: Vec<u8>)
Auto Trait Implementations§
impl Freeze for MuragentWriter
impl RefUnwindSafe for MuragentWriter
impl Send for MuragentWriter
impl Sync for MuragentWriter
impl Unpin for MuragentWriter
impl UnsafeUnpin for MuragentWriter
impl UnwindSafe for MuragentWriter
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