wesichain-agent 0.2.1

Rust-native LLM agents & chains with resumable ReAct workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait AgentState {
    type FinalOutput;
    type ScratchpadEntry;
    type StepId: Copy + Eq + std::fmt::Debug;

    fn user_input(&self) -> &str;
    fn append_scratchpad(&mut self, entry: Self::ScratchpadEntry);
    fn set_final_output(&mut self, out: Self::FinalOutput);
    fn step_count(&self) -> u32;
    fn correlation_id(&self) -> &str;
}