Skip to content

fix(aionrs): classify engine errors structurally#494

Merged
TCP404 merged 1 commit into
mainfrom
boii/fix/aionrs-structured-error-mapping
Jun 19, 2026
Merged

fix(aionrs): classify engine errors structurally#494
TCP404 merged 1 commit into
mainfrom
boii/fix/aionrs-structured-error-mapping

Conversation

@TCP404

@TCP404 TCP404 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Map Aionrs engine failures from typed AgentError / ProviderError variants instead of string matching flattened error text.
  • Move Aionrs send-error classification into manager/aionrs/error.rs so agent.rs only calls the mapper.
  • Add structured coverage for provider connection/status, context-too-long, and malformed tool-call errors.

Test Plan

  • cargo fmt --check
  • cargo test -p aionui-ai-agent

- Map Aionrs engine errors from typed AgentError variants instead of string matching
- Move Aionrs error classification into manager/aionrs/error.rs
- Add structured mapping coverage for provider, status, context, and malformed tool-call errors
@TCP404 TCP404 enabled auto-merge (squash) June 19, 2026 03:06
@TCP404 TCP404 merged commit 8552b0a into main Jun 19, 2026
6 checks passed
@TCP404 TCP404 deleted the boii/fix/aionrs-structured-error-mapping branch June 19, 2026 03:16
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.

1 participant