Lyra Agent hinzugefügt, Multi-Agent Routing, BaseAgent refactoring
This commit is contained in:
@@ -15,6 +15,7 @@ use tracing::info;
|
||||
|
||||
use api::llm::lmstudio::LmStudioProvider;
|
||||
use sebas_tian::Sebas;
|
||||
use lyra::Lyra;
|
||||
use chat::synology::{handle_incoming, AppState};
|
||||
|
||||
#[tokio::main]
|
||||
@@ -30,17 +31,24 @@ async fn main() -> anyhow::Result<()> {
|
||||
let cfg = config::load()?;
|
||||
let port = cfg.chat.listen_port;
|
||||
|
||||
// LM Studio Provider initialisieren
|
||||
let llm = Box::new(LmStudioProvider::new(
|
||||
"http://localhost:1234",
|
||||
"dolphin3.0-llama3.1-8b-abliterated",
|
||||
));
|
||||
|
||||
// Sebas Tian initialisieren
|
||||
// Sebas Tian — Butler Agent
|
||||
let sebas = Sebas::new(
|
||||
"crates/sebas-tian/config/soul_core.md",
|
||||
"crates/sebas-tian/config/soul_personality.md",
|
||||
llm,
|
||||
Box::new(LmStudioProvider::new(
|
||||
"http://localhost:1234",
|
||||
"dolphin3.0-llama3.1-8b-abliterated",
|
||||
)),
|
||||
);
|
||||
|
||||
// Lyra — Companion Agent (eigenes Modell)
|
||||
let lyra = Lyra::new(
|
||||
"crates/lyra/config/soul_core.md",
|
||||
"crates/lyra/config/soul_personality.md",
|
||||
Box::new(LmStudioProvider::new(
|
||||
"http://localhost:1234",
|
||||
"dolphin3.0-llama3.1-8b-abliterated", // ← später durch Lyras Modell ersetzen
|
||||
)),
|
||||
);
|
||||
|
||||
// Shared State aufbauen
|
||||
@@ -50,6 +58,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
admin_webhook_url: cfg.chat.admin_webhook_url,
|
||||
http: Client::new(),
|
||||
sebas: Mutex::new(sebas),
|
||||
lyra: Mutex::new(lyra),
|
||||
});
|
||||
|
||||
// Routes registrieren
|
||||
|
||||
Reference in New Issue
Block a user