mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-07 02:51:50 +00:00
logging work
This commit is contained in:
parent
6313c9879f
commit
bb5eab2645
1 changed files with 3 additions and 3 deletions
|
|
@ -46,8 +46,8 @@ LOGS_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
# Initialize FastAPI app
|
# Initialize FastAPI app
|
||||||
app = FastAPI(
|
app = FastAPI(
|
||||||
title="Hermes Agent Logging Server",
|
title="Hermes Agent API Endpoint",
|
||||||
description="Real-time WebSocket server for agent execution logging",
|
description="Manage interface between agent and user",
|
||||||
version="1.0.0"
|
version="1.0.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -76,7 +76,7 @@ class SessionLogger:
|
||||||
self.session_id = session_id
|
self.session_id = session_id
|
||||||
self.start_time = datetime.now()
|
self.start_time = datetime.now()
|
||||||
self.events: List[Dict[str, Any]] = [] # In-memory list of all events
|
self.events: List[Dict[str, Any]] = [] # In-memory list of all events
|
||||||
self.log_file = LOGS_DIR / f"session_{session_id}.json" # Where to save on disk
|
self.log_file = LOGS_DIR / f"session_{session_id}.json" # Where to save on disk
|
||||||
|
|
||||||
# Initialize session data structure
|
# Initialize session data structure
|
||||||
# This is what gets saved to the JSON file
|
# This is what gets saved to the JSON file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue