Skip to content

Conversation

@franzejr
Copy link
Contributor

No description provided.

@joaomdmoura joaomdmoura merged commit 27c1e76 into crewAIInc:main Nov 16, 2023
@joaomdmoura
Copy link
Collaborator

Thanks Franze you're the best!

bhancockio added a commit that referenced this pull request Mar 16, 2025
* add docs for ApifyActorsTool

* improve readme, add link to template

* format

* improve tool docs

* improve readme

* Update apifyactorstool.mdx (#1)

* Update apifyactorstool.mdx

* Update apifyactorstool.mdx

* dans suggestions

* custom apify icon

* update descripton

* Update apifyactorstool.mdx

---------

Co-authored-by: Jan Čurn <jan.curn@gmail.com>
Co-authored-by: Brandon Hancock (bhancock_ai) <109994880+bhancockio@users.noreply.github.com>
Vidit-Ostwal added a commit to Vidit-Ostwal/crewAI that referenced this pull request Mar 21, 2025
EajksEajks pushed a commit to Agent-EAjks-AI/crewai that referenced this pull request Jul 7, 2025
greysonlalonde pushed a commit that referenced this pull request Sep 26, 2025
greysonlalonde pushed a commit that referenced this pull request Sep 26, 2025
…as-answer

fix: fix pydantic validation error
greysonlalonde pushed a commit that referenced this pull request Sep 26, 2025
Update Patronus AI evaluator tool and example
devin-ai-integration bot added a commit that referenced this pull request Nov 14, 2025
- Fix issue #3: Make similarity_threshold and limit optional with defaults
  - Updated BaseTool._default_args_schema to extract default values from function signatures
  - Updated BaseTool._set_args_schema for consistency
  - Now uses inspect.signature() and pydantic.create_model() to properly handle defaults

- Fix issue #1: Make qdrant_client import conditional
  - Moved qdrant_client imports to TYPE_CHECKING block
  - Added runtime imports only when QdrantConfig is actually used
  - Prevents import errors when using ChromaDB without qdrant_client installed

- Added comprehensive tests:
  - test_rag_tool_default_parameters_are_optional: Verifies schema has correct required fields
  - test_rag_tool_chromadb_no_qdrant_import: Ensures ChromaDB usage doesn't import qdrant_client

All existing tests pass. Fixes reported issues where LLM calls would fail with ValidationError
on first attempt due to required fields that should have been optional.

Co-Authored-By: João <joao@crewai.com>
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