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 std::collections::HashMap;

use serde::{Deserialize, Serialize};

use crate::Value;

#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub struct Document {
    pub id: String,
    pub content: String,
    pub metadata: HashMap<String, Value>,
    pub embedding: Option<Vec<f32>>,
}