added Tokens, openrouter, memory system
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
// crates/nazarick/src/config.rs
|
||||
|
||||
use std::collections::HashMap;
|
||||
use serde::Deserialize;
|
||||
use crate::chat::types::AgentChatConfig;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct NazarickConfig {
|
||||
pub chat: ChatConfig,
|
||||
pub models: HashMap<String, ModelConfig>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct ModelConfig {
|
||||
pub provider: String,
|
||||
pub url: String,
|
||||
pub model: String,
|
||||
pub api_key: Option<String>,
|
||||
pub max_summary_tokens: Option<usize>,
|
||||
/// "tool_use" | "xml" — default xml wenn nicht gesetzt
|
||||
pub skill_format: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user