Initial commit : agent2 basé sur agent1

- agent2.py : bot XMPP agent2@xmpp.ovh
- skills/ : web_search, web_read, memory, prompt_memory (ChromaDB), mqtt
- Chemins mis à jour vers /opt/agent2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 11:10:47 +00:00
parent 3ab9ecc155
commit 47f88f7cde
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -8,13 +8,13 @@ import json
from pathlib import Path from pathlib import Path
from slixmpp import ClientXMPP from slixmpp import ClientXMPP
# Ajouter /opt/agent au path pour importer les skills # Ajouter /opt/agent2 au path pour importer les skills
sys.path.insert(0, "/opt/agent") sys.path.insert(0, "/opt/agent2")
from skills.loader import load_skills, run_skills from skills.loader import load_skills, run_skills
# ── CONFIG ─────────────────────────────────────────────────────────────── # ── CONFIG ───────────────────────────────────────────────────────────────
CONFIG_DIR = Path("/opt/agent/config") CONFIG_DIR = Path("/opt/agent2/config")
CONFIG_FILE = CONFIG_DIR / "config.json" CONFIG_FILE = CONFIG_DIR / "config.json"
PROMPT_FILE = CONFIG_DIR / "system_prompt.txt" PROMPT_FILE = CONFIG_DIR / "system_prompt.txt"
+1 -1
View File
@@ -9,7 +9,7 @@ SKILL_NAME = "memory"
TRIGGER = None TRIGGER = None
TRIGGERS = {"REMEMBER:": "remember", "RECALL:": "recall"} TRIGGERS = {"REMEMBER:": "remember", "RECALL:": "recall"}
DB_PATH = Path("/opt/agent/memory.db") DB_PATH = Path("/opt/agent2/memory.db")
def _get_conn(): def _get_conn():
conn = sqlite3.connect(DB_PATH) conn = sqlite3.connect(DB_PATH)
+1 -1
View File
@@ -23,7 +23,7 @@ TRIGGERS = {
"PROMPT_DEL:": "prompt_del", "PROMPT_DEL:": "prompt_del",
} }
DB_PATH = Path("/opt/agent/chroma_db") DB_PATH = Path("/opt/agent2/chroma_db")
# Phase 1 : embedding factice (hash MD5 → vecteur 16 dims) # Phase 1 : embedding factice (hash MD5 → vecteur 16 dims)
# Phase 2 : remplacer par un vrai modèle (ex: sentence-transformers) # Phase 2 : remplacer par un vrai modèle (ex: sentence-transformers)