wesichain-core 0.3.0

Rust-native LLM agents & chains with resumable ReAct workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{Document, MetadataFilter};

pub trait HasQuery {
    fn query(&self) -> &str;
}

pub trait HasRetrievedDocs {
    fn set_retrieved_docs(&mut self, docs: Vec<Document>);
}

pub trait HasMetadataFilter {
    fn metadata_filter(&self) -> Option<MetadataFilter>;
}