Update to use absolute imports (#17)

Update to use absolute imports
This commit is contained in:
Greyson LaLonde
2023-12-29 20:39:59 -05:00
committed by GitHub
parent d3ecd1d490
commit ed61f467b1
6 changed files with 14 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
from .agent import Agent
from .crew import Crew
from .process import Process
from .task import Task
from crewai.agent import Agent
from crewai.crew import Crew
from crewai.process import Process
from crewai.task import Task

View File

@@ -8,8 +8,8 @@ from langchain.tools.render import render_text_description
from langchain_core.runnables.config import RunnableConfig
from pydantic import BaseModel, Field, InstanceOf, model_validator
from .agents import CacheHandler, CrewAgentOutputParser, ToolsHandler
from .prompts import Prompts
from crewai.agents import CacheHandler, CrewAgentOutputParser, ToolsHandler
from crewai.prompts import Prompts
class Agent(BaseModel):

View File

@@ -11,11 +11,11 @@ from pydantic import (
)
from pydantic_core import PydanticCustomError
from .agent import Agent
from .agents import CacheHandler
from .process import Process
from .task import Task
from .tools.agent_tools import AgentTools
from crewai.agent import Agent
from crewai.process import Process
from crewai.task import Task
from crewai.tools.agent_tools import AgentTools
from crewai.agents import CacheHandler
class Crew(BaseModel):

View File

@@ -2,7 +2,7 @@ from typing import Any, List, Optional
from pydantic import BaseModel, Field, model_validator
from .agent import Agent
from crewai.agent import Agent
class Task(BaseModel):

View File

@@ -4,7 +4,7 @@ from typing import List
from langchain.tools import Tool
from pydantic import BaseModel, Field
from ..agent import Agent
from crewai.agent import Agent
class AgentTools(BaseModel):

View File

@@ -25,6 +25,7 @@ pre-commit = "^3.6.0"
[tool.isort]
profile = "black"
known_first_party = ["crewai"]
[tool.poetry.group.test.dependencies]
pytest = "^7.4"