Turn-based LLM Agent Orchestration #156
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#156
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Turn-based LLM Agent Orchestration
Infrastructure for managing multiple LLM agents in a shared McRogueFace environment.
Overview
This issue covers the orchestration layer that:
Core Components
1. Turn Orchestrator
2. Perspective Switching
3. Action Parser
LLM responses are parsed into structured actions:
4. Action Executor
5. Movement Execution (Multi-tile Paths)
When an agent says "GO NORTH" to leave a room, we compute the full path:
6. Speech Subsystem
7. Simulation Log Format
Blocking Issues
Benefits From
Parent Issue
Part of #154 - Grounded Multi-Agent Testbed
Initial VLLM Integration Demo Complete
Created
tests/vllm_demo.pyas a proof-of-concept demonstrating the core infrastructure:What's Working
mcrfpy.step()+automation.screenshot()from #153Demo Scene Setup
Example VLLM Response
Next Steps for Full Implementation
This demo unblocks the core rendering loop dependency. The remaining work is Python-side orchestration.
Multi-Agent VLLM Demo Complete
Committed and pushed multi-agent perspective cycling demo (
4713b62,b1b3773).New Files in
tests/vllm_demo/0_basic_vllm_demo.py1_multi_agent_demo.pyFeatures Demonstrated
Per-Agent FOV via
ColorLayer.apply_perspective()Perspective Cycling
Grounded Text Generation
get_visible_entities()checksgrid.is_in_fov(x, y)for each entitySequential VLLM Queries
Sample Output
Remaining Work for Full #156
The blocking dependency (#153) is fully resolved. Core perspective/screenshot infrastructure is production-ready.
Progress Update (2024-12-14)
Core orchestration infrastructure implemented in commits
2890528,de73903:Completed Components
Remaining Work
Files Added
turn_orchestrator.py- Core orchestration classaction_parser.py- LLM response parsingaction_executor.py- Game world action execution2_integrated_demo.py- WorldGraph + action integration3_multi_turn_demo.py- Multi-turn simulation with loggingThe
workflow:blockedlabel was removed as the core infrastructure is now functional.Implementation Update: Error Feedback & Conversation History
New Features
Error Feedback Loop
TAKE Action Implementation
"The brass key is 4 tiles away to the north-west. Move closer to pick it up.""You don't see any 'gold_coin' here.""The wall_button cannot be picked up."Conversation History
llm_exchanges[]with:action_retriescounter for diagnosticsDemo Results
The Wizard agent now correctly adapts to failures:
Log Structure Update
Files Modified
enhanced_executor.py- AddedTakeResult,execute_take()enhanced_orchestrator.py- Error feedback loop, conversation history4_enhanced_action_demo.py- Updated prompts with error/history context