Skip to content

Commit

Permalink
imports cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
whimo committed Apr 18, 2024
1 parent a54aa16 commit 0e0064c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/single_openai_tools_react.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions motleycrew/agent/crewai/crewai.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions motleycrew/agent/langchain/react.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion motleycrew/agent/llama_index/llama_index.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion motleycrew/tool/image_generation.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 0e0064c

Please sign in to comment.