Brandon Hancock
bebf8e9eb1
resolve conflicts
2024-12-23 13:10:29 -05:00
Brandon Hancock (bhancock_ai)
abdc7133d5
Merge branch 'main' into feat/docling
2024-12-23 13:07:26 -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
Brandon Hancock (bhancock_ai)
9dda698b66
Merge branch 'main' into feat/docling
2024-12-23 10:13:48 -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
Lorenze Jay
6faa0317b2
added docs
2024-12-18 10:02:50 -08:00
Lorenze Jay
bc230b4edf
Merge branch 'main' of github.com:crewAIInc/crewAI into feat/docling
2024-12-18 09:56:43 -08:00
Lorenze Jay
f380f8ee23
linted
2024-12-18 09:56:32 -08:00
Lorenze Jay
c3d31deff6
renamed to CrewDoclingSource
2024-12-18 07:22:14 -08:00
Vini Brasil
627b9f1abb
Remove relative import in flow main.py template ( #1782 )
2024-12-18 10:47:44 -03:00
Lorenze Jay
aedaf01d19
Merge branch 'main' of github.com:crewAIInc/crewAI into feat/docling
2024-12-17 13:44:33 -08: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
Lorenze Jay
436a458072
fix types
2024-12-17 10:18:48 -08:00
Lorenze Jay
7885c5f906
fixed run types
2024-12-17 10:05:36 -08:00
Lorenze Jay
ef7a101631
Merge branch 'main' of github.com:crewAIInc/crewAI into feat/docling
2024-12-16 21:55:33 -08:00
Lorenze Jay
e14a49f82c
fix test and types
2024-12-16 21:52:36 -08:00
Lorenze Jay
0921f71fd2
linted
2024-12-16 20:23:42 -08:00
Lorenze Jay
10c04d54a9
enabling local files to work and type cleanup
2024-12-16 20:21:47 -08:00
Lorenze Jay
356eb07d5f
fix run-types
2024-12-16 20:09:54 -08:00
Lorenze Jay
c2ed1f2355
added test for multiple sources for file_paths
2024-12-16 19:44:29 -08:00
Lorenze Jay
76c640b985
use file_paths instead of file_path 2
2024-12-16 19:41:10 -08:00
Lorenze Jay
054bc266b9
logged but file_path is backwards compatible
2024-12-16 16:30:47 -08:00
Karan Vaidya
94eaa6740e
Fix bool and null handling ( #1771 )
2024-12-16 16:23:53 -05:00
Lorenze Jay
f1c9caa8ec
fixed logic
2024-12-15 22:48:45 -08:00
Lorenze Jay
610ea40c2d
needs to be list
2024-12-15 22:34:41 -08:00
Lorenze Jay
b14f6ffa59
run_type docs
2024-12-15 22:32:08 -08:00
Lorenze Jay
56172ecf1d
organized imports
2024-12-15 22:25:40 -08:00
Lorenze Jay
ee74ad0d6d
fix import
2024-12-15 22:23:17 -08:00
Lorenze Jay
a67ec7e37a
use file_paths instead of file_path
2024-12-15 22:21:19 -08:00
Lorenze Jay
625c21da5b
docling support installation
2024-12-15 22:16:07 -08:00
Lorenze Jay
04cb9afae5
added tool for docling support
2024-12-15 22:15:49 -08: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