Back to Prompt Library
implementation
Gemini 2.5 Pro Integration for Obstacle Assessment
Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.
Linked challenge: Autonomous Robotaxi Decision Agent
Format
Text-first
Lines
1
Sections
1
Linked challenge
Autonomous Robotaxi Decision Agent
Prompt source
Original prompt text with formatting preserved for inspection.
1 lines
1 sections
No variables
0 checklist items
Implement a 'assess_risk' node that uses Gemini 2.5 Pro in Deep Think mode. This node should receive simulated sensor data (distance, type of obstacle, speed) and output a recommended action ('brake', 'swerve', 'proceed_cautiously') along with a rationale. Focus on how to prompt Gemini for robust, safety-conscious reasoning and integrate its output back into the LangGraph state for subsequent actions.Adaptation plan
Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.
Keep stable
Hold the task contract and output shape stable so generated implementations remain comparable.
Tune next
Update libraries, interfaces, and environment assumptions to match the stack you actually run.
Verify after
Test failure handling, edge cases, and any code paths that depend on hidden context or secrets.