Completing the Race
You use this skill to wrap up the simulation after the race phase completes. This is the final phase of the simulation lifecycle.
Instructions
- Compile Results: Call
compile_resultsfirst to aggregate all tick snapshots into final race metrics (vitals trends, status counts, notable events, and sampling quality). - Stop Collector: Call
stop_race_collectorto shut down the Redis subscription and clean up the RaceCollector resources. - Report (Optional): Use
call_agentto communicate final results to other agents (e.g., planner, dashboard) as needed for post-race reporting.
Tools
compile_results(tool_context): Read tick_snapshots from state and aggregate into vitals_trend, final_status_counts, notable_events, sampling_quality, and avg_runners_reporting.stop_race_collector(tool_context): Look up the RaceCollector by session_id and stop it to release Redis resources.call_agent(agent_name, message, tool_context): Delegate inter-agent communication via the shared A2A utility.