diff --git a/examples/single_openai_tools_react.py b/examples/single_openai_tools_react.py index 7b2cac40..7be621b3 100644 --- a/examples/single_openai_tools_react.py +++ b/examples/single_openai_tools_react.py @@ -1,7 +1,7 @@ from dotenv import load_dotenv from langchain_community.tools import DuckDuckGoSearchRun -from motleycrew import MotleyCrew, Task, MotleyTool +from motleycrew import MotleyCrew, Task from motleycrew.agent.langchain.openai_tools_react import ReactOpenAIToolsAgent from motleycrew.agent.langchain.react import ReactMotleyAgent diff --git a/motleycrew/agent/crewai/crewai.py b/motleycrew/agent/crewai/crewai.py index 07e264f9..d99fd533 100644 --- a/motleycrew/agent/crewai/crewai.py +++ b/motleycrew/agent/crewai/crewai.py @@ -1,5 +1,4 @@ -import logging -from typing import Any, Optional, Sequence, Callable +from typing import Any, Optional, Sequence from crewai import Agent from langchain_core.runnables import RunnableConfig diff --git a/motleycrew/agent/langchain/react.py b/motleycrew/agent/langchain/react.py index f43f07f4..73889899 100644 --- a/motleycrew/agent/langchain/react.py +++ b/motleycrew/agent/langchain/react.py @@ -1,11 +1,9 @@ from typing import Sequence - from langchain import hub from langchain_core.language_models import BaseLanguageModel from langchain.agents import create_react_agent - from motleycrew.agent.parent import MotleyAgentAbstractParent from motleycrew.agent.langchain.langchain import LangchainMotleyAgentParent from motleycrew.common import MotleySupportedTool diff --git a/motleycrew/agent/llama_index/llama_index.py b/motleycrew/agent/llama_index/llama_index.py index 7bc50a9b..5c9ca564 100644 --- a/motleycrew/agent/llama_index/llama_index.py +++ b/motleycrew/agent/llama_index/llama_index.py @@ -1,4 +1,4 @@ -from typing import Any, Optional, Sequence, Callable +from typing import Any, Optional, Sequence from llama_index.core.agent import AgentRunner from langchain_core.runnables import RunnableConfig diff --git a/motleycrew/tool/image_generation.py b/motleycrew/tool/image_generation.py index 1a13a1df..165e89f1 100644 --- a/motleycrew/tool/image_generation.py +++ b/motleycrew/tool/image_generation.py @@ -1,5 +1,4 @@ from langchain.agents import Tool -from langchain.agents import load_tools from langchain_core.pydantic_v1 import BaseModel, Field from langchain_community.utilities.dalle_image_generator import DallEAPIWrapper