Skip to content

feat(core): add custom error message for max tool calling round trips - #725

Merged
haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
hiennguyen142:feature/add-custom-error-message-for-max-tools-call
Sep 20, 2026
Merged

haiphucnguyen merged 1 commit into
askimo-ai:mainfrom
hiennguyen142:feature/add-custom-error-message-for-max-tools-call

Conversation

@hiennguyen142

Copy link
Copy Markdown
Contributor

Summary

In my use case, when AI call that reach the limit of max tools call, it throws error without instructing user how to fix it

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

  • Add MaxToolCallingRoundTripsExceededException for tool limit cases
  • Map round-trip limit exceptions in ExceptionMapper

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

- Introduce MaxToolCallingRoundTripsExceededException for better error handling
- Add localized i18n messages with troubleshooting steps for users
- Increase default max tool-calling round trips configuration value to 50
@hiennguyen142
hiennguyen142 force-pushed the feature/add-custom-error-message-for-max-tools-call branch from 3de4d47 to dca67b6 Compare September 20, 2026 01:58

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @hiennguyen142 !

@haiphucnguyen
haiphucnguyen merged commit 27544b5 into askimo-ai:main Sep 20, 2026
10 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