pub struct NLWorkflowGenerator { /* private fields */ }Expand description
Generates workflow YAML from natural language descriptions.
Implementations§
Source§impl NLWorkflowGenerator
impl NLWorkflowGenerator
pub fn new(router: Arc<ModelRouter>) -> Self
Sourcepub async fn generate(&self, description: &str) -> Result<GeneratedWorkflow>
pub async fn generate(&self, description: &str) -> Result<GeneratedWorkflow>
Generate a workflow from a natural language description.
Sourcepub async fn save(&self, generated: &GeneratedWorkflow) -> Result<PathBuf>
pub async fn save(&self, generated: &GeneratedWorkflow) -> Result<PathBuf>
Save a generated workflow to the workflows directory.
Auto Trait Implementations§
impl Freeze for NLWorkflowGenerator
impl !RefUnwindSafe for NLWorkflowGenerator
impl Send for NLWorkflowGenerator
impl Sync for NLWorkflowGenerator
impl Unpin for NLWorkflowGenerator
impl UnsafeUnpin for NLWorkflowGenerator
impl !UnwindSafe for NLWorkflowGenerator
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