pub trait Callable:
Send
+ Sync
+ 'static {
// Required method
fn call<'life0, 'async_trait>(
&'life0 self,
input: Value,
ctx: CallCtx,
) -> Pin<Box<dyn Future<Output = Result<Value, AgentError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided method
fn label(&self) -> &str { ... }
}Expand description
The shell exposes Callable from atomr-agents-callable.
Anything an agent / workflow / harness can call. Implemented by
every executable unit so they’re interchangeable as workflow
steps, tool invocations, and team routing targets.
Required Methods§
fn call<'life0, 'async_trait>(
&'life0 self,
input: Value,
ctx: CallCtx,
) -> Pin<Box<dyn Future<Output = Result<Value, AgentError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".