Skip to content

fix: catch llm exceptions in ros2 agents - #36

Merged
knicked merged 3 commits into
developmentfrom
kd/catch_llm_errors
Jul 10, 2026
Merged

knicked merged 3 commits into
developmentfrom
kd/catch_llm_errors

Conversation

@knicked

@knicked knicked commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

When a moveit2 or nav2 tool fails, and the llm call also fails, then the exception is unhandled and the tool service does not respond. This PR catches those exceptions and makes the tool respond with the raw error code.

knicked added 2 commits July 10, 2026 13:42
Signed-off-by: Kacper Dąbrowski <kacper.dabrowski@robotec.ai>
Signed-off-by: Kacper Dąbrowski <kacper.dabrowski@robotec.ai>
@knicked
knicked force-pushed the kd/catch_llm_errors branch from 3d7b65f to bdb545b Compare July 10, 2026 11:42

@boczekbartek boczekbartek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check my comment, otherwise LGTM!

Comment thread rai_app/agents/moveit2_agent.py
Signed-off-by: Kacper Dąbrowski <kacper.dabrowski@robotec.ai>
@knicked
knicked merged commit 12fc9fa into development Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants