Skip to main content

otherone_context/
types.rs

1use otherone_storage::types::{DatabaseConfig, RuntimeContext};
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub enum ContextLoadType {
5    Database,
6    LocalFile,
7}
8
9#[derive(Debug, Clone)]
10pub struct CombineContextOptions {
11    pub session_id: String,
12    pub load_type: ContextLoadType,
13    pub provider: otherone_ai::types::ProviderType,
14    pub context_window: u32,
15    pub threshold_percentage: Option<f32>,
16    pub ai: Option<serde_json::Value>,
17    pub system_prompt: Option<String>,
18    pub tools: Option<Vec<otherone_ai::types::Tool>>,
19    pub database_config: Option<DatabaseConfig>,
20    pub runtime_context: Option<RuntimeContext>,
21}