Files
Jason Zhang 322f45591c feat: Add ReflectAndRetryModelPlugin for self-healing model errors
Introduces the `ReflectAndRetryModelPlugin`, which provides error recovery
for model failures (such as malformed function calls). When a configured model
error occurs, the plugin intercepts it, provides reflection guidance to
the model via a reserved tool call, and retries the operation.

Key features:
- Configurable max retries for model errors.
- Customizable list of FinishReasons to treat as errors.
- Support for both invocation-level and global-level tracking scopes.
- Interception of direct calls to the reserved retry tool to prevent misuse.

Co-authored-by: Jason Zhang <jasoncz@google.com>
PiperOrigin-RevId: 954695655
2026-07-27 10:15:36 -07:00
..