smartcrab 0.1.2

Core library for SmartCrab workflow orchestration engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub mod claudecode;

use async_trait::async_trait;

use crate::error::Result;

/// Trait for AI agent executors.
#[async_trait]
pub trait AgentExecutor: Send + Sync + 'static {
    /// Execute the agent with the given prompt and return the response.
    async fn execute(&self, prompt: &str) -> Result<String>;
}