devin-ai-integration[bot]
22db4aae81
Add usage limit feature to BaseTool class ( #2904 )
...
Notify Downstream / notify-downstream (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
* Add usage limit feature to BaseTool class
- Add max_usage_count and current_usage_count attributes to BaseTool
- Implement usage limit checking in ToolUsage._use method
- Add comprehensive tests for usage limit functionality
- Maintain backward compatibility with None default for unlimited usage
Co-Authored-By: Joe Moura <joao@crewai.com >
* Fix CI failures and address code review feedback
- Add max_usage_count/current_usage_count to CrewStructuredTool
- Add input validation for positive max_usage_count
- Add reset_usage_count method to BaseTool
- Extract usage limit check into separate method
- Add comprehensive edge case tests
- Add proper type hints throughout
- Fix linting issues
Co-Authored-By: Joe Moura <joao@crewai.com >
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com >
2025-05-26 08:53:10 -07:00
Vidit Ostwal
ea5ae9086a
added condition to check whether _run function returns a coroutine ob… ( #2570 )
...
* added condition to check whether _run function returns a coroutine object
* Cleaned the code
* Fixed the test modules, Class -> Functions
2025-04-11 12:56:37 -04:00
devin-ai-integration[bot]
c9f47e6a37
Add result_as_answer parameter to @tool decorator ( Fixes #2561 ) ( #2562 )
...
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com >
2025-04-10 09:01:26 -04:00
Lucas Gomide
63ef3918dd
feat: cleanup Pydantic warning ( #2507 )
...
A several warnings were addressed following by https://docs.pydantic.dev/2.10/migration
2025-04-01 08:45:45 -07:00
João Moura
7272fd15ac
Preparing new version ( #1845 )
...
Mark stale issues and pull requests / stale (push) Has been cancelled
* Preparing new version
2025-01-03 21:49:55 -03:00
Brandon Hancock (bhancock_ai)
3285c1b196
Fixes issues with result as answer not properly exiting LLM loop ( #1689 )
...
* v1 of fix implemented. Need to confirm with tokens.
* remove print statements
2024-12-02 13:38:17 -05:00
Brandon Hancock (bhancock_ai)
366bbbbea3
Feat/remove langchain ( #1668 )
...
* feat: add initial changes from langchain
* feat: remove kwargs of being processed
* feat: remove langchain, update uv.lock and fix type_hint
* feat: change docs
* feat: remove forced requirements for parameter
* feat add tests for new structure tool
* feat: fix tests and adapt code for args
* fix tool calling for langchain tools
* doc strings
---------
Co-authored-by: Eduardo Chiarotti <dudumelgaco@hotmail.com >
2024-11-27 11:22:49 -05:00
Eduardo Chiarotti
293305790d
Feat/remove langchain ( #1654 )
...
* feat: add initial changes from langchain
* feat: remove kwargs of being processed
* feat: remove langchain, update uv.lock and fix type_hint
* feat: change docs
* feat: remove forced requirements for parameter
* feat add tests for new structure tool
* feat: fix tests and adapt code for args
2024-11-26 16:59:52 -03:00
C0deZ
e66a135d5d
refactor: Move BaseTool to main package and centralize tool description generation ( #1514 )
...
* move base_tool to main package and consolidate tool desscription generation
* update import path
* update tests
* update doc
* add base_tool test
* migrate agent delegation tools to use BaseTool
* update tests
* update import path for tool
* fix lint
* update param signature
* add from_langchain to BaseTool for backwards support of langchain tools
* fix the case where StructuredTool doesn't have func
---------
Co-authored-by: c0dez <li@vitablehealth.com >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-11-01 12:30:48 -04:00