V0.7.1
Release 0.7.1
This patch release refactors exception handling in agent strategies, providing better control over error propagation and simplifying the built-in agent's internal flow.
Changes
- New exception
NoExceptionHandler: Raised byAgentStrategy.on_exceptionwhen a strategy intentionally does not handle an exception (replacing the previous default behavior of appending an error message to the context). - Base strategy:
AgentStrategy.on_exceptionnow raisesNoExceptionHandlerinstead of mutating the context. - Built-in agent (
AmritaAgentStrategy):- Overrides
on_exceptionto do nothing (exceptions are already handled within the strategy). - Removed the internal
Continueexception; the reasoning tool now returns directly. - Improved tool execution error logging (no longer re‑raises
ProcEXC).
- Overrides
- Chat manager: Suppresses
NoExceptionHandlerwhen callingon_exception, preventing unnecessary propagation. - Tests: Updated
test_agent_strategy_on_exceptionto expect the new exception.
These changes make exception handling more predictable and reduce redundant error messages during agent execution. No breaking changes are introduced.
What's Changed
- Refine agent exception handling and reasoning tool flow by @JohnRichard4096 in #39
Full Changelog: 0.7.0...0.7.1