Spaces:
Running
Running
File size: 502 Bytes
37f9abc 0450a06 37f9abc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from multi_agent_sdlc.state import DevState
from typing import Any
def build_coder_context(state: DevState) -> dict[str, Any]:
plan = state["plan"]
coder_tasks = [
task.model_dump(mode="json") for task in plan.tasks if task.owner == "coder"
]
return {
"request": state.get("request"),
"project_directory": state.get("project_directory"),
"assumptions": plan.assumptions,
"out_of_scope": plan.out_of_scope,
"tasks": coder_tasks,
}
|