Skip to content

Lorenze/max retry defaults tools - #3362

Merged
lorenzejay merged 3 commits into
mainfrom
lorenze/max-retry-defaults-tools
Aug 19, 2025
Merged

Lorenze/max retry defaults tools#3362
lorenzejay merged 3 commits into
mainfrom
lorenze/max-retry-defaults-tools

Conversation

@lorenzejay

Copy link
Copy Markdown
Collaborator

No description provided.

This commit introduces a mechanism to track the usage count of tools within the CrewAI framework. The `BaseTool` class now includes a `_increment_usage_count` method that updates the current usage count, which is also reflected in the associated `CrewStructuredTool`. Additionally, a new test has been added to ensure that the maximum usage count is respected when invoking tools, enhancing the overall reliability and functionality of the tool system.
This commit introduces a new section in the tools overview documentation that explains the maximum usage count feature for tools within the CrewAI framework. Users can now set a limit on how many times a tool can be used, enhancing control over tool usage. An example of implementing the `FileReadTool` with a maximum usage count is also provided, improving the clarity and usability of the documentation.
@lorenzejay
lorenzejay merged commit d625491 into main Aug 19, 2025
40 checks passed
@lorenzejay
lorenzejay deleted the lorenze/max-retry-defaults-tools branch August 19, 2025 17:44
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