Devin AI
bdb32dd3e6
fix: improve output_file validation and error messages
...
Co-Authored-By: Joe Moura <joao@crewai.com >
2024-12-29 03:38:33 +00:00
Devin AI
83b4e0b4c0
fix: update interpolate_only to handle None inputs and remove duplicate attribute
...
Co-Authored-By: Joe Moura <joao@crewai.com >
2024-12-29 03:32:21 +00:00
Devin AI
7c2b307217
fix: add _original_output_file private attribute to fix type-checker error
...
Co-Authored-By: Joe Moura <joao@crewai.com >
2024-12-29 03:27:56 +00:00
Devin AI
ce4a730f76
fix: add security validation for output_file paths
...
Co-Authored-By: Joe Moura <joao@crewai.com >
2024-12-29 03:23:29 +00:00
Devin AI
8871d9a6cd
fix: interpolate output_file attribute from YAML
...
Co-Authored-By: Joe Moura <joao@crewai.com >
2024-12-29 02:40:37 +00:00
João Moura
a0c322a535
fixing file paths for knowledge source
2024-12-28 02:05:19 -03:00
devin-ai-integration[bot]
86f58c95de
docs: add agent-specific knowledge documentation and examples ( #1811 )
...
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com >
2024-12-28 01:48:51 -03:00
João Moura
99fe91586d
Update README.md
2024-12-28 01:03:33 -03:00
devin-ai-integration[bot]
0c2d23dfe0
docs: update README to highlight Flows ( #1809 )
...
* docs: highlight Flows feature in README
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: enhance README with LangGraph comparison and flows-crews synergy
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: replace initial Flow example with advanced Flow+Crew example; enhance LangGraph comparison
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: incorporate key terms and enhance feature descriptions
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: refine technical language, enhance feature descriptions, fix string interpolation
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: update README with performance metrics, feature enhancements, and course links
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: update LangGraph comparison with paragraph and P.S. section
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 >
2024-12-28 01:00:58 -03:00
devin-ai-integration[bot]
2433819c4f
fix: handle optional storage with null checks ( #1808 )
...
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-27 21:30:39 -03:00
Erick Amorim
97fc44c930
fix: Change storage initialization to None for KnowledgeStorage ( #1804 )
...
* fix: Change storage initialization to None for KnowledgeStorage
* refactor: Change storage field to optional and improve error handling when saving documents
---------
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-27 21:18:25 -03:00
siddharth Sambharia
409892d65f
Portkey Integration with CrewAI ( #1233 )
...
* Create Portkey-Observability-and-Guardrails.md
* crewAI update with new changes
* small change
---------
Co-authored-by: siddharthsambharia-portkey <siddhath.s@portkey.ai >
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-27 18:16:47 -03:00
devin-ai-integration[bot]
62f3df7ed5
docs: add guide for multimodal agents ( #1807 )
...
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com >
2024-12-27 18:16:02 -03:00
João Igor
4cf8913d31
chore: removing crewai-tools from dev-dependencies ( #1760 )
...
As mentioned in issue #1759 , listing crewai-tools as dev-dependencies makes pip install it a required dependency, and not an optional
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-27 17:45:06 -03:00
João Moura
82647358b2
Adding Multimodal Abilities to Crew ( #1805 )
...
* initial fix on delegation tools
* fixing tests for delegations and coding
* Refactor prepare tool and adding initial add images logic
* supporting image tool
* fixing linter
* fix linter
* Making sure multimodal feature support i18n
* fix linter and types
* mixxing translations
* fix types and linter
* Revert "fixing linter"
This reverts commit 2eda5fdeed .
* fix linters
* test
* fix
* fix
* fix linter
* fix
* ignore
* type improvements
2024-12-27 17:03:35 -03:00
Brandon Hancock (bhancock_ai)
6cc2f510bf
Feat/joao flow improvement requests ( #1795 )
...
* Add in or and and in router
* In the middle of improving plotting
* final plot changes
---------
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-24 18:55:44 -03:00
Lorenze Jay
9a65abf6b8
removed some redundancies ( #1796 )
...
* removed some redundancies
* cleanup
2024-12-23 13:54:16 -05:00
Lorenze Jay
b3185ad90c
Feat/docling-support ( #1763 )
...
* added tool for docling support
* docling support installation
* use file_paths instead of file_path
* fix import
* organized imports
* run_type docs
* needs to be list
* fixed logic
* logged but file_path is backwards compatible
* use file_paths instead of file_path 2
* added test for multiple sources for file_paths
* fix run-types
* enabling local files to work and type cleanup
* linted
* fix test and types
* fixed run types
* fix types
* renamed to CrewDoclingSource
* linted
* added docs
* resolve conflicts
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
Co-authored-by: Brandon Hancock <brandon@brandonhancock.io >
2024-12-23 13:19:58 -05:00
devin-ai-integration[bot]
c887ff1f47
feat: Add interpolate_only method and improve error handling ( #1791 )
...
* Fixed output_file not respecting system path
* Fixed yaml config is not escaped properly for output requirements
* feat: Add interpolate_only method and improve error handling
- Add interpolate_only method for string interpolation while preserving JSON structure
- Add comprehensive test coverage for interpolate_only
- Add proper type annotation for logger using ClassVar
- Improve error handling and documentation for _save_file method
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Sort imports to fix lint issues
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Reorganize imports using ruff --fix
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Consolidate imports and fix formatting
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Apply ruff automatic import sorting
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Sort imports using ruff --fix
Co-Authored-By: Joe Moura <joao@crewai.com >
---------
Co-authored-by: Frieda (Jingying) Huang <jingyingfhuang@gmail.com >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
Co-authored-by: Frieda Huang <124417784+frieda-huang@users.noreply.github.com >
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Joe Moura <joao@crewai.com >
2024-12-23 13:05:29 -05:00
devin-ai-integration[bot]
22e5d39884
feat: Add task guardrails feature ( #1742 )
...
* feat: Add task guardrails feature
Add support for custom code guardrails in tasks that validate outputs
before proceeding to the next task. Features include:
- Optional task-level guardrail function
- Pre-next-task execution timing
- Tuple return format (success, data)
- Automatic result/error routing
- Configurable retry mechanism
- Comprehensive documentation and tests
Link to Devin run: https://app.devin.ai/sessions/39f6cfd6c5a24d25a7bd70ce070ed29a
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Add type check for guardrail result and remove unused import
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Remove unnecessary f-string prefix
Co-Authored-By: Joe Moura <joao@crewai.com >
* feat: Add guardrail validation improvements
- Add result/error exclusivity validation in GuardrailResult
- Make return type annotations optional in Task guardrail validator
- Improve error messages for validation failures
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: Add comprehensive guardrails documentation
- Add type hints and examples
- Add error handling best practices
- Add structured error response patterns
- Document retry mechanisms
- Improve documentation organization
Co-Authored-By: Joe Moura <joao@crewai.com >
* refactor: Update guardrail functions to handle TaskOutput objects
Co-Authored-By: Joe Moura <joao@crewai.com >
* feat: Add task guardrails feature
Add support for custom code guardrails in tasks that validate outputs
before proceeding to the next task. Features include:
- Optional task-level guardrail function
- Pre-next-task execution timing
- Tuple return format (success, data)
- Automatic result/error routing
- Configurable retry mechanism
- Comprehensive documentation and tests
Link to Devin run: https://app.devin.ai/sessions/39f6cfd6c5a24d25a7bd70ce070ed29a
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Add type check for guardrail result and remove unused import
Co-Authored-By: Joe Moura <joao@crewai.com >
* fix: Remove unnecessary f-string prefix
Co-Authored-By: Joe Moura <joao@crewai.com >
* feat: Add guardrail validation improvements
- Add result/error exclusivity validation in GuardrailResult
- Make return type annotations optional in Task guardrail validator
- Improve error messages for validation failures
Co-Authored-By: Joe Moura <joao@crewai.com >
* docs: Add comprehensive guardrails documentation
- Add type hints and examples
- Add error handling best practices
- Add structured error response patterns
- Document retry mechanisms
- Improve documentation organization
Co-Authored-By: Joe Moura <joao@crewai.com >
* refactor: Update guardrail functions to handle TaskOutput objects
Co-Authored-By: Joe Moura <joao@crewai.com >
* style: Fix import sorting in task guardrails files
Co-Authored-By: Joe Moura <joao@crewai.com >
* fixing docs
* Fixing guardarils implementation
* docs: Enhance guardrail validator docstring with runtime validation rationale
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 >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
Co-authored-by: João Moura <joaomdmoura@gmail.com >
2024-12-22 00:52:02 -03:00
PJ
9ee6824ccd
Correcting a small grammatical issue that was bugging me: from _satisfy the expect criteria_ to _satisfies the expected criteria_ ( #1783 )
...
Signed-off-by: PJ Hagerty <pjhagerty@gmail.com >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-20 10:17:34 -05:00
Vini Brasil
da73865f25
Add tool.crewai.type pyproject attribute in templates ( #1789 )
2024-12-20 10:36:18 -03:00
Vini Brasil
627b9f1abb
Remove relative import in flow main.py template ( #1782 )
2024-12-18 10:47:44 -03:00
alan blount
1b8001bf98
Gemini 2.0 ( #1773 )
...
* Update llms.mdx (Gemini 2.0)
- Add Gemini 2.0 flash to Gemini table.
- Add link to 2 hosting paths for Gemini in Tip.
- Change to lower case model slugs vs names, user convenience.
- Add https://artificialanalysis.ai/ as alternate leaderboard.
- Move Gemma to "other" tab.
* Update llm.py (gemini 2.0)
Add setting for Gemini 2.0 context window to llm.py
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-17 16:44:10 -05:00
Tony Kipkemboi
e59e07e4f7
Merge pull request #1777 from crewAIInc/fix/python-max-version
...
Fix/python max version
2024-12-17 16:09:44 -05:00
Brandon Hancock
ee239b1c06
change to <13 instead of <=12
2024-12-17 16:00:15 -05:00
Brandon Hancock
bf459bf983
include 12 but not 13
2024-12-17 15:29:11 -05:00
Karan Vaidya
94eaa6740e
Fix bool and null handling ( #1771 )
2024-12-16 16:23:53 -05:00
Shahar Yair
6d7c1b0743
Fix: CrewJSONEncoder now accepts enums ( #1752 )
...
* bugfix: CrewJSONEncoder now accepts enums
* sort imports
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-12 15:13:10 -05:00
Brandon Hancock (bhancock_ai)
6b864ee21d
drop print ( #1755 )
2024-12-12 15:08:37 -05:00
Brandon Hancock (bhancock_ai)
1ffa8904db
apply agent ops changes and resolve merge conflicts ( #1748 )
...
* apply agent ops changes and resolve merge conflicts
* Trying to fix tests
* add back in vcr
* update tools
* remove pkg_resources which was causing issues
* Fix tests
* experimenting to see if unique content is an issue with knowledge
* experimenting to see if unique content is an issue with knowledge
* update chromadb which seems to have issues with upsert
* generate new yaml for failing test
* Investigating upsert
* Drop patch
* Update casettes
* Fix duplicate document issue
* more fixes
* add back in vcr
* new cassette for test
---------
Co-authored-by: Lorenze Jay <lorenzejaytech@gmail.com >
2024-12-12 15:04:32 -05:00
Brandon Hancock (bhancock_ai)
ad916abd76
remove pkg_resources which was causing issues ( #1751 )
2024-12-12 12:41:13 -05:00
Rip&Tear
9702711094
Feature/add workflow permissions ( #1749 )
...
* fix: Call ChromaDB reset before removing storage directory to fix disk I/O errors
* feat: add workflow permissions to stale.yml
* revert rag_storage.py changes
* revert rag_storage.py changes
---------
Co-authored-by: Matt B <mattb@Matts-MacBook-Pro.local >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-12 12:31:43 -05:00
André Lago
8094754239
Fix small typo in sample tool ( #1747 )
...
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-12 10:11:47 -05:00
Rashmi Pawar
bc5e303d5f
NVIDIA Provider : UI changes ( #1746 )
...
* docs: add nvidia as provider
* nvidia ui docs changes
* add note for updated list
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-12 10:01:53 -05:00
Anmol Deep
ec89e003c8
Added is_auto_end flag in agentops.end session in crew.py ( #1320 )
...
When using agentops, we have the option to pass the `skip_auto_end_session` parameter, which is supposed to not end the session if the `end_session` function is called by Crew.
Now the way it works is, the `agentops.end_session` accepts `is_auto_end` flag and crewai should have passed it as `True` (its `False` by default).
I have changed the code to pass is_auto_end=True
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-11 11:34:17 -05:00
Bowen Liang
0b0f2d30ab
sort imports with isort rules by ruff linter ( #1730 )
...
* sort imports
* update
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
Co-authored-by: Eduardo Chiarotti <dudumelgaco@hotmail.com >
2024-12-11 10:46:53 -05:00
Brandon Hancock (bhancock_ai)
1df61aba4c
include event emitter in flows ( #1740 )
...
* include event emitter in flows
* Clean up
* Fix linter
2024-12-11 10:16:05 -05:00
Paul Cowgill
da9220fa81
Remove manager_callbacks reference ( #1741 )
2024-12-11 10:13:57 -05:00
Archkon
da4f356fab
fix:typo error ( #1738 )
...
* Update base_agent_tools.py
typo error
* Update main.py
typo error
* Update base_file_knowledge_source.py
typo error
* Update test_main.py
typo error
* Update en.json
* Update prompts.json
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-10 11:18:45 -05:00
Brandon Hancock (bhancock_ai)
d932b20c6e
copy googles changes. Fix tests. Improve LLM file ( #1737 )
...
* copy googles changes. Fix tests. Improve LLM file
* Fix type issue
2024-12-10 11:14:37 -05:00
Brandon Hancock (bhancock_ai)
2f9a2afd9e
Update pyproject.toml and uv.lock to drop crewai-tools as a default requirement ( #1711 )
2024-12-09 14:17:46 -05:00
Brandon Hancock (bhancock_ai)
c1df7c410e
Bugfix/restrict python version compatibility ( #1736 )
...
* drop 3.13
* revert
* Drop test cassette that was causing error
* trying to fix failing test
* adding thiago changes
* resolve final tests
* Drop skip
* drop pipeline
2024-12-09 14:07:57 -05:00
Brandon Hancock (bhancock_ai)
54ebd6cf90
restrict python version compatibility ( #1731 )
...
* drop 3.13
* revert
* Drop test cassette that was causing error
* trying to fix failing test
* adding thiago changes
* resolve final tests
* Drop skip
2024-12-09 14:00:18 -05:00
Carlos Souza
6b87d22a70
Fix disk I/O error when resetting short-term memory. ( #1724 )
...
* Fix disk I/O error when resetting short-term memory.
Reset chromadb client and nullifies references before
removing directory.
* Nit for clarity
* did the same for knowledge_storage
* cleanup
* cleanup order
* Cleanup after the rm of the directories
---------
Co-authored-by: Lorenze Jay <lorenzejaytech@gmail.com >
Co-authored-by: Lorenze Jay <63378463+lorenzejay@users.noreply.github.com >
2024-12-09 10:30:51 -08:00
Piotr Mardziel
c4f7eaf259
Add missing @functools.wraps when wrapping functions and preserve wrapped class name in @CrewBase. ( #1560 )
...
* Update annotations.py
* Update utils.py
* Update crew_base.py
* Update utils.py
* Update crew_base.py
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-09 11:51:12 -05:00
Tony Kipkemboi
236e42d0bc
format bullet points ( #1734 )
...
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-09 11:40:01 -05:00
fuckqqcom
8c90db04b5
_execute_tool_and_check_finality 结果给回调参数,这样就可以提前拿到结果信息,去做数据解析判断做预判 ( #1716 )
...
Co-authored-by: xiaohan <fuck@qq.com >
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-09 11:37:54 -05:00
lgesuellip
1261ce513f
Add doc structured tool ( #1713 )
...
* Add doc structured tool
* Fix example
---------
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com >
2024-12-09 11:34:07 -05:00
Tony Kipkemboi
b07c51532c
Merge pull request #1733 from rokbenko/main
...
[DOCS] Fix Spaceflight News API docs link on Knowledge docs page
2024-12-09 11:27:01 -05:00