589c5b06fe
- Auto-fixed 70 lint errors (import sorting, aliased errors, datetime.UTC)
- Fixed 85 remaining errors manually:
- E501: wrapped long lines in queen_profiles, catalog, routes_credentials
- F821: added missing TYPE_CHECKING imports for AgentHost, ToolRegistry,
HookContext, HookResult; added runtime imports where needed
- F811: removed duplicate method definitions in queen_lifecycle_tools
- F841/B007: removed unused variables in discovery.py
- W291: removed trailing whitespace in queen nodes
- E402: moved import to top of queen_memory_v2.py
- Fixed AgentRuntime -> AgentHost in example template type annotations
- Reformatted 343 files with ruff format
27 lines
691 B
Python
27 lines
691 B
Python
"""Queen agent definition.
|
|
|
|
The queen is a single AgentLoop — no orchestrator dependency.
|
|
Loaded by queen_orchestrator.create_queen().
|
|
"""
|
|
|
|
from framework.schemas.goal import Goal
|
|
|
|
from .nodes import queen_node
|
|
|
|
queen_goal = Goal(
|
|
id="queen-manager",
|
|
name="Queen Manager",
|
|
description=("Manage the worker agent lifecycle and serve as the user's primary interactive interface."),
|
|
success_criteria=[],
|
|
constraints=[],
|
|
)
|
|
|
|
# Loop config -- used by queen_orchestrator to build LoopConfig
|
|
queen_loop_config = {
|
|
"max_iterations": 999_999,
|
|
"max_tool_calls_per_turn": 30,
|
|
"max_context_tokens": 180_000,
|
|
}
|
|
|
|
__all__ = ["queen_goal", "queen_loop_config", "queen_node"]
|