Skip to content

Fix/12 human readable errors#18

Merged
DavidSeyserGit merged 7 commits into
mainfrom
fix/12-human-readable-errors
Jun 25, 2026
Merged

Fix/12 human readable errors#18
DavidSeyserGit merged 7 commits into
mainfrom
fix/12-human-readable-errors

Conversation

@DavidSeyserGit

Copy link
Copy Markdown
Contributor

No description provided.

DavidSeyserGit and others added 7 commits June 24, 2026 08:31
…ntext builder, reasoning controller, and tool registry

- Added `AgentLoop` for managing multi-turn interactions and tool calls.
- Introduced `ApprovalGate` to handle tool execution policies and user approvals.
- Created `ContextBuilder` for generating prompts and managing conversation context.
- Developed `ReasoningController` to extract and manage reasoning from model responses.
- Established `ToolRegistry` to unify action tools and introspection tools with their policies.
- Defined `ToolPolicy` and `ToolDescriptor` for managing tool behaviors and attributes.
- Added comprehensive tests for harness components, ensuring functionality without a live LLM or FarmBot.
- Added a model picker to allow users to select from available assistant models.
- Improved action execution feedback by displaying results after approval or rejection.
- Updated the planning service to support multiple LLM providers and model configurations.
- Refactored action summaries to include additional parameters like water_pin for move_path actions.
- Removed deprecated send_message action and its associated logic.
- Enhanced safety checks for water_pin parameter in move actions.
- Added tests for LLM provider functionality and API endpoints.
- Catch unhandled action errors in POST /actions and return meaningful
  HTTPExceptions (502 for FarmBot connection issues, 500 with real cause).
- Add ApiResult.error_message() to extract detail/error/raw body text.
- Replace all raw st.error(body) calls in the UI with the new helper.
- Add tests for action endpoint errors and ApiResult message extraction.

Fixes #12
@DavidSeyserGit DavidSeyserGit requested review from a team and Copilot June 25, 2026 07:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@DavidSeyserGit DavidSeyserGit merged commit 399809c into main Jun 25, 2026
2 checks 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