mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
docs(agent): align _build_system_prompt layer comments with implementation
This commit is contained in:
parent
519faa6e76
commit
e08c05c163
1 changed files with 8 additions and 6 deletions
14
run_agent.py
14
run_agent.py
|
|
@ -3706,12 +3706,14 @@ class AIAgent:
|
|||
"""
|
||||
# Layers (in order):
|
||||
# 1. Agent identity — SOUL.md when available, else DEFAULT_AGENT_IDENTITY
|
||||
# 2. User / gateway system prompt (if provided)
|
||||
# 3. Persistent memory (frozen snapshot)
|
||||
# 4. Skills guidance (if skills tools are loaded)
|
||||
# 5. Context files (AGENTS.md, .cursorrules — SOUL.md excluded here when used as identity)
|
||||
# 6. Current date & time (frozen at build time)
|
||||
# 7. Platform-specific formatting hint
|
||||
# 2. Tool-aware guidance (memory/session_search/skills behavior)
|
||||
# 3. Optional model/tool guidance (tool-use enforcement, model-specific ops prompts)
|
||||
# 4. User / gateway system prompt (if provided)
|
||||
# 5. Persistent snapshots (memory + user profile) and external memory-provider block
|
||||
# 6. Skills index prompt (if skills tools are loaded)
|
||||
# 7. Context files (AGENTS.md, .cursorrules — SOUL.md excluded here when used as identity)
|
||||
# 8. Conversation metadata (time, optional session/model/provider)
|
||||
# 9. Environment and platform hints
|
||||
|
||||
# Try SOUL.md as primary identity (unless context files are skipped)
|
||||
_soul_loaded = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue