pub struct WizardInstructionGenerator { /* private fields */ }Expand description
Generator for wizard instructions
Implementations§
Source§impl WizardInstructionGenerator
impl WizardInstructionGenerator
Sourcepub fn new(skills: SkillsExtractor) -> Self
pub fn new(skills: SkillsExtractor) -> Self
Create a new wizard instruction generator
§Arguments
skills- SkillsExtractor instance for accessing Skills content
§Example
use composio_sdk::wizard::{SkillsExtractor, WizardInstructionGenerator};
let skills_path = concat!(env!("CARGO_MANIFEST_DIR"), "/skills");
let skills = SkillsExtractor::new(skills_path);
let generator = WizardInstructionGenerator::new(skills);Sourcepub fn generate_composio_instructions(
&self,
toolkit: Option<&str>,
) -> Result<String, SkillsError>
pub fn generate_composio_instructions( &self, toolkit: Option<&str>, ) -> Result<String, SkillsError>
Generate comprehensive Composio wizard instructions
Generates a complete set of instructions including:
- Overview from AGENTS.md
- Critical Tool Router rules
- Session management patterns
- Authentication patterns
- Correct and incorrect examples
§Arguments
toolkit- Optional toolkit name for context-aware instructions
§Returns
A formatted markdown string with wizard instructions
§Example
use composio_sdk::wizard::{SkillsExtractor, WizardInstructionGenerator};
let skills_path = concat!(env!("CARGO_MANIFEST_DIR"), "/skills");
let skills = SkillsExtractor::new(skills_path);
let generator = WizardInstructionGenerator::new(skills);
let instructions = generator.generate_composio_instructions(Some("github")).unwrap();
println!("{}", instructions);Trait Implementations§
Source§impl Clone for WizardInstructionGenerator
impl Clone for WizardInstructionGenerator
Source§fn clone(&self) -> WizardInstructionGenerator
fn clone(&self) -> WizardInstructionGenerator
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 moreAuto Trait Implementations§
impl Freeze for WizardInstructionGenerator
impl RefUnwindSafe for WizardInstructionGenerator
impl Send for WizardInstructionGenerator
impl Sync for WizardInstructionGenerator
impl Unpin for WizardInstructionGenerator
impl UnsafeUnpin for WizardInstructionGenerator
impl UnwindSafe for WizardInstructionGenerator
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