Compare commits

..

1 Commits

Author SHA1 Message Date
Thiago Moretto
56b6594669 fix(tools): correct mongdb typo to pymongo in package_dependencies (#5891)
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Check Documentation Broken Links / Check broken links (push) Waiting to run
Vulnerability Scan / pip-audit (push) Waiting to run
* fix(tools): correct mongdb typo to pymongo in package_dependencies

The `package_dependencies` field in `MongoDBVectorSearchTool` referenced
the non-existent package `mongdb` instead of the actual PyPI package
`pymongo`, which is the driver imported and used throughout the file.

* chore: update tool specifications

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-21 10:57:17 -04:00
3 changed files with 4 additions and 42 deletions

View File

@@ -4,7 +4,7 @@ import os
import time
from typing import TYPE_CHECKING, Any, TypeGuard, TypedDict
from crewai.tools import BaseTool, EnvVar
from crewai.tools import BaseTool
from pydantic import BaseModel, Field, model_validator
@@ -99,25 +99,6 @@ class DatabricksQueryTool(BaseTool):
_workspace_client: WorkspaceClient | None = None
package_dependencies: list[str] = Field(default_factory=lambda: ["databricks-sdk"])
env_vars: list[EnvVar] = Field(
default_factory=lambda: [
EnvVar(
name="DATABRICKS_HOST",
description="Databricks workspace URL (use with DATABRICKS_TOKEN, or set DATABRICKS_CONFIG_PROFILE instead).",
required=False,
),
EnvVar(
name="DATABRICKS_TOKEN",
description="Databricks personal access token (pair with DATABRICKS_HOST).",
required=False,
),
EnvVar(
name="DATABRICKS_CONFIG_PROFILE",
description="Databricks CLI profile name (alternative to DATABRICKS_HOST/TOKEN).",
required=False,
),
]
)
def __init__(
self,

View File

@@ -103,7 +103,7 @@ class MongoDBVectorSearchTool(BaseTool):
),
]
)
package_dependencies: list[str] = Field(default_factory=lambda: ["mongdb"])
package_dependencies: list[str] = Field(default_factory=lambda: ["pymongo"])
def __init__(self, **kwargs: Any) -> None:
super().__init__(**kwargs)

View File

@@ -6821,26 +6821,7 @@
},
{
"description": "Execute SQL queries against Databricks workspace tables and return the results. Provide a 'query' parameter with the SQL query to execute.",
"env_vars": [
{
"default": null,
"description": "Databricks workspace URL (use with DATABRICKS_TOKEN, or set DATABRICKS_CONFIG_PROFILE instead).",
"name": "DATABRICKS_HOST",
"required": false
},
{
"default": null,
"description": "Databricks personal access token (pair with DATABRICKS_HOST).",
"name": "DATABRICKS_TOKEN",
"required": false
},
{
"default": null,
"description": "Databricks CLI profile name (alternative to DATABRICKS_HOST/TOKEN).",
"name": "DATABRICKS_CONFIG_PROFILE",
"required": false
}
],
"env_vars": [],
"humanized_name": "Databricks SQL Query",
"init_params_schema": {
"$defs": {
@@ -14652,7 +14633,7 @@
},
"name": "MongoDBVectorSearchTool",
"package_dependencies": [
"mongdb"
"pymongo"
],
"run_params_schema": {
"description": "Input for MongoDBTool.",