mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
@@ -1,4 +1,4 @@
|
|||||||
from .agent import Agent
|
from crewai.agent import Agent
|
||||||
from .crew import Crew
|
from crewai.crew import Crew
|
||||||
from .process import Process
|
from crewai.process import Process
|
||||||
from .task import Task
|
from crewai.task import Task
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ from langchain.tools.render import render_text_description
|
|||||||
from langchain_core.runnables.config import RunnableConfig
|
from langchain_core.runnables.config import RunnableConfig
|
||||||
from pydantic import BaseModel, Field, InstanceOf, model_validator
|
from pydantic import BaseModel, Field, InstanceOf, model_validator
|
||||||
|
|
||||||
from .agents import CacheHandler, CrewAgentOutputParser, ToolsHandler
|
from crewai.agents import CacheHandler, CrewAgentOutputParser, ToolsHandler
|
||||||
from .prompts import Prompts
|
from crewai.prompts import Prompts
|
||||||
|
|
||||||
|
|
||||||
class Agent(BaseModel):
|
class Agent(BaseModel):
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ from pydantic import (
|
|||||||
)
|
)
|
||||||
from pydantic_core import PydanticCustomError
|
from pydantic_core import PydanticCustomError
|
||||||
|
|
||||||
from .agent import Agent
|
from crewai.agent import Agent
|
||||||
from .agents import CacheHandler
|
from crewai.process import Process
|
||||||
from .process import Process
|
from crewai.task import Task
|
||||||
from .task import Task
|
from crewai.tools.agent_tools import AgentTools
|
||||||
from .tools.agent_tools import AgentTools
|
from crewai.agents import CacheHandler
|
||||||
|
|
||||||
|
|
||||||
class Crew(BaseModel):
|
class Crew(BaseModel):
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from typing import Any, List, Optional
|
|||||||
|
|
||||||
from pydantic import BaseModel, Field, model_validator
|
from pydantic import BaseModel, Field, model_validator
|
||||||
|
|
||||||
from .agent import Agent
|
from crewai.agent import Agent
|
||||||
|
|
||||||
|
|
||||||
class Task(BaseModel):
|
class Task(BaseModel):
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from typing import List
|
|||||||
from langchain.tools import Tool
|
from langchain.tools import Tool
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
from ..agent import Agent
|
from crewai.agent import Agent
|
||||||
|
|
||||||
|
|
||||||
class AgentTools(BaseModel):
|
class AgentTools(BaseModel):
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ pre-commit = "^3.6.0"
|
|||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
|
known_first_party = ["crewai"]
|
||||||
|
|
||||||
[tool.poetry.group.test.dependencies]
|
[tool.poetry.group.test.dependencies]
|
||||||
pytest = "^7.4"
|
pytest = "^7.4"
|
||||||
|
|||||||
Reference in New Issue
Block a user