Skip to content

Commit

Permalink
fix: update imports to use BaseTool from crewai.tools
Browse files Browse the repository at this point in the history
Updated imports to reflect the recent change in crewai where BaseTool is now imported from crewai.tools instead of crewai_tools. This ensures compatibility with the latest version of the library.

Refs: #44
  • Loading branch information
strnad committed Jan 5, 2025
1 parent 154c347 commit 69558be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/tools/CustomApiTool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Optional, Dict, Any
from crewai_tools import BaseTool
from crewai.tools import BaseTool
import requests
from pydantic.v1 import BaseModel, Field

Expand Down
2 changes: 1 addition & 1 deletion app/tools/CustomCodeInterpreterTool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from typing import Optional, Type
from crewai_tools import BaseTool
from crewai.tools import BaseTool
import importlib.util
from pydantic.v1 import BaseModel, Field,root_validator
import docker
Expand Down
2 changes: 1 addition & 1 deletion app/tools/CustomFileWriteTool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from typing import Optional, Dict, Any
from crewai_tools import BaseTool
from crewai.tools import BaseTool
from pydantic.v1 import BaseModel, Field


Expand Down

0 comments on commit 69558be

Please sign in to comment.