wesichain-agent 0.2.1

Rust-native LLM agents & chains with resumable ReAct workflows
Documentation
1
2
3
4
5
6
7
8
9
use async_trait::async_trait;

#[async_trait]
pub trait LlmAdapter: Send + Sync {
    async fn complete(
        &self,
        request: wesichain_core::LlmRequest,
    ) -> Result<wesichain_core::LlmResponse, wesichain_core::WesichainError>;
}