[kimi] Add /api/matrix/agents endpoint for Matrix visualization (#673) #735
Reference in New Issue
Block a user
Delete Branch "kimi/issue-673"
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?
Fixes #673
Summary
Adds a new REST endpoint
GET /api/matrix/agentsthat returns the agent registry in Matrix-compatible format. Currently agent-defs.js hardcodes 5 agents. This endpoint makes it dynamic — agents from agents.yaml are served to the Matrix frontend.Changes
src/dashboard/routes/world.py: Add
matrix_routerwith/api/matrix/agentsendpoint_build_matrix_agents_response()to transform agent config from agents.yaml_compute_circular_positions()for default 3D layoutsrc/dashboard/app.py: Register
matrix_routerin the FastAPI apptests/dashboard/test_world_api.py: Add comprehensive tests
API Response Format
Acceptance Criteria