Lyra Agent hinzugefügt, Multi-Agent Routing, BaseAgent refactoring
This commit is contained in:
+17
-6
@@ -3,7 +3,8 @@
|
||||
// Lyra — Persönlicher Begleit-Agent von Nazarick.
|
||||
// Dünner Wrapper um BaseAgent — nur name() ist Lyra-spezifisch.
|
||||
|
||||
use nazarick_core::agent::BaseAgent;
|
||||
use std::sync::Arc;
|
||||
use nazarick_core::agent::{BaseAgent, PersonalityWriter};
|
||||
use nazarick_core::traits::Agent;
|
||||
use nazarick_core::types::AgentId;
|
||||
use nazarick_core::llm::LlmProvider;
|
||||
@@ -13,17 +14,27 @@ pub struct Lyra {
|
||||
}
|
||||
|
||||
impl Lyra {
|
||||
/// Erstellt eine neue Lyra-Instanz.
|
||||
/// `soul_core_path` → Pfad zu soul_core.md
|
||||
/// `soul_personality_path` → Pfad zu soul_personality.md
|
||||
/// `llm` → LLM-Provider (z.B. LmStudioProvider)
|
||||
/// Erstellt eine neue Sebas-Instanz.
|
||||
/// `shared_core_path` → Pfad zu shared_core.md (systemweit)
|
||||
/// `soul_core_path` → Pfad zu soul_core.md (Sebas-spezifisch)
|
||||
/// `soul_personality_path` → Pfad zu soul_personality.md (veränderlich)
|
||||
/// `llm` → LLM-Provider
|
||||
/// `personality_writer` → Skill-Implementierung für Persönlichkeits-Updates
|
||||
pub fn new(
|
||||
shared_core_path: impl Into<String>,
|
||||
soul_core_path: impl Into<String>,
|
||||
soul_personality_path: impl Into<String>,
|
||||
llm: Box<dyn LlmProvider>,
|
||||
personality_writer: Arc<dyn PersonalityWriter>,
|
||||
) -> Self {
|
||||
Self {
|
||||
base: BaseAgent::new(soul_core_path, soul_personality_path, llm),
|
||||
base: BaseAgent::new(
|
||||
shared_core_path,
|
||||
soul_core_path,
|
||||
soul_personality_path,
|
||||
llm,
|
||||
personality_writer,
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user