halo-agent 0.1.0

Halo Agent and Workflow execution kernel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Cancellation;
use crate::components::message::Messages;

pub type Error = crate::Error;

/// Optional reasoning component. Callers or Harness decide when to invoke it;
/// runtime::agent owns any surrounding graph and execution state.
pub trait Reasoner: Send + Sync {
    fn reason(
        &self,
        input: Messages,
        cancellation: &Cancellation,
    ) -> impl std::future::Future<Output = Result<Messages, Error>>;
}