spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Max tool calls / Max internalCall limit

Open aichemzee opened this issue 5 months ago • 3 comments
trafficstars

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

aichemzee avatar May 26 '25 17:05 aichemzee