spring-projects / spring-projects/spring-ai
Max tool calls / Max internalCall limit
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.
Expected Behavior
When using multiple tools, the model can sometimes get caught in an infinite loop due to the nature of the prompt. This can be avoided by limiting the max number of tools calls.
Current Behavior
There is no way to put a limit on max recursion depth on internal call or provide a limit on tool calls.
Context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the spring-ai repository for internalCall handling, tool execution, and recursion or loop controls; the issue names no files or tests. Determine where a configurable maximum tool-call limit would belong and identify existing tests around multiple-tool execution. Done should include a defined limit behavior and coverage for calls that exceed it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- ai, backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100