Skip to main content

WorkflowAgentExt

Trait WorkflowAgentExt 

Source
pub trait WorkflowAgentExt {
    // Required method
    fn as_agent(&self, name: impl Into<String>) -> WorkflowAgent;
}
Expand description

Extension trait adding Workflow::as_agent so a built workflow can be exposed as an SupportsAgentRun fluently.

Required Methods§

Source

fn as_agent(&self, name: impl Into<String>) -> WorkflowAgent

Wrap this workflow as a WorkflowAgent named name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§