Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only count assistant messages when limiting consecutive tool calls
Before this change, the number of consecutive tool calls was counted by looking at all messages since the last time a message with role "user" was sent. This was bad logic because the LLM could ask for many parallel tool calls. This change addresses this problem by only considering messages with role "assistant" with tool calls since the last user message. Signed-off-by: Donnie Adams <[email protected]>
- Loading branch information