feat: tagged queen memory
This commit is contained in:
@@ -5,7 +5,8 @@ from framework.agents.queen.nodes import (
|
||||
_appendices,
|
||||
_queen_behavior_always,
|
||||
_queen_behavior_running,
|
||||
_queen_identity_running,
|
||||
_queen_character_core,
|
||||
_queen_role_running,
|
||||
_queen_style,
|
||||
_queen_tools_running,
|
||||
)
|
||||
@@ -23,14 +24,15 @@ def print_planning_prompt(worker_identity: str | None = None) -> None:
|
||||
from framework.agents.queen.nodes import (
|
||||
_planning_knowledge,
|
||||
_queen_behavior_planning,
|
||||
_queen_identity_planning,
|
||||
_queen_role_planning,
|
||||
_queen_tools_planning,
|
||||
)
|
||||
|
||||
wi = worker_identity or _DEFAULT_WORKER_IDENTITY
|
||||
|
||||
prompt = (
|
||||
_queen_identity_planning
|
||||
_queen_character_core
|
||||
+ _queen_role_planning
|
||||
+ _queen_style
|
||||
+ _queen_tools_planning
|
||||
+ _queen_behavior_always
|
||||
@@ -53,15 +55,16 @@ def print_building_prompt(worker_identity: str | None = None) -> None:
|
||||
_building_knowledge,
|
||||
_gcu_building_section,
|
||||
_queen_behavior_building,
|
||||
_queen_identity_building,
|
||||
_queen_phase_7,
|
||||
_queen_role_building,
|
||||
_queen_tools_building,
|
||||
)
|
||||
|
||||
wi = worker_identity or _DEFAULT_WORKER_IDENTITY
|
||||
|
||||
prompt = (
|
||||
_queen_identity_building
|
||||
_queen_character_core
|
||||
+ _queen_role_building
|
||||
+ _queen_style
|
||||
+ _queen_tools_building
|
||||
+ _queen_behavior_always
|
||||
@@ -85,14 +88,15 @@ def print_staging_prompt(worker_identity: str | None = None) -> None:
|
||||
"""Print the composed staging phase prompt."""
|
||||
from framework.agents.queen.nodes import (
|
||||
_queen_behavior_staging,
|
||||
_queen_identity_staging,
|
||||
_queen_role_staging,
|
||||
_queen_tools_staging,
|
||||
)
|
||||
|
||||
wi = worker_identity or _DEFAULT_WORKER_IDENTITY
|
||||
|
||||
prompt = (
|
||||
_queen_identity_staging
|
||||
_queen_character_core
|
||||
+ _queen_role_staging
|
||||
+ _queen_style
|
||||
+ _queen_tools_staging
|
||||
+ _queen_behavior_always
|
||||
@@ -118,7 +122,8 @@ def print_running_prompt(worker_identity: str | None = None) -> None:
|
||||
wi = worker_identity or _DEFAULT_WORKER_IDENTITY
|
||||
|
||||
prompt = (
|
||||
_queen_identity_running
|
||||
_queen_character_core
|
||||
+ _queen_role_running
|
||||
+ _queen_style
|
||||
+ _queen_tools_running
|
||||
+ _queen_behavior_always
|
||||
@@ -158,6 +163,7 @@ if __name__ == "__main__":
|
||||
else:
|
||||
print(f"Unknown phase: {phase}")
|
||||
print(
|
||||
"Usage: uv run scripts/debug_queen_prompt.py [planning|building|staging|running|all]"
|
||||
"Usage: uv run scripts/debug_queen_prompt.py "
|
||||
"[planning|building|staging|running|all]"
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user