chore: remove deprecated RuntimeTool (#3443)

This commit is contained in:
Xingyao Wang 2024-08-18 09:45:45 +08:00 committed by GitHub
parent ac80f20473
commit a2ea17909d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 0 additions and 15 deletions

View File

@ -22,7 +22,6 @@ from opendevin.llm.llm import LLM
from opendevin.runtime.plugins import (
PluginRequirement,
)
from opendevin.runtime.tools import RuntimeTool
USE_NAV = (
os.environ.get('USE_NAV', 'true') == 'true'
@ -94,7 +93,6 @@ class BrowsingAgent(Agent):
"""
sandbox_plugins: list[PluginRequirement] = []
runtime_tools: list[RuntimeTool] = [RuntimeTool.BROWSER]
response_parser = BrowsingResponseParser()
def __init__(

View File

@ -32,7 +32,6 @@ from opendevin.runtime.plugins import (
JupyterRequirement,
PluginRequirement,
)
from opendevin.runtime.tools import RuntimeTool
ENABLE_GITHUB = True
@ -94,7 +93,6 @@ class CodeActAgent(Agent):
AgentSkillsRequirement(),
JupyterRequirement(),
]
runtime_tools: list[RuntimeTool] = [RuntimeTool.BROWSER]
system_message: str = get_system_message()
in_context_example: str = f"Here is an example of how you can interact with the environment for task solving:\n{get_in_context_example()}\n\nNOW, LET'S START!"

View File

@ -29,7 +29,6 @@ from opendevin.runtime.plugins import (
JupyterRequirement,
PluginRequirement,
)
from opendevin.runtime.tools import RuntimeTool
def get_system_message() -> str:
@ -57,7 +56,6 @@ class CodeActSWEAgent(Agent):
AgentSkillsRequirement(),
JupyterRequirement(),
]
runtime_tools: list[RuntimeTool] = []
system_message: str = get_system_message()
in_context_example: str = f"Here is an example of how you can interact with the environment for task solving:\n{get_in_context_example()}\n\nNOW, LET'S START!"

View File

@ -5,7 +5,6 @@ from opendevin.core.config import AgentConfig
from opendevin.core.message import ImageContent, Message, TextContent
from opendevin.events.action import Action, AgentFinishAction
from opendevin.llm.llm import LLM
from opendevin.runtime.tools import RuntimeTool
from .prompt import get_prompt_and_images
@ -16,7 +15,6 @@ class PlannerAgent(Agent):
The planner agent utilizes a special prompting strategy to create long term plans for solving problems.
The agent is given its previous action-observation pairs, current task, and hint based on last action taken at every step.
"""
runtime_tools: list[RuntimeTool] = [RuntimeTool.BROWSER]
response_parser = PlannerResponseParser()
def __init__(self, llm: LLM, config: AgentConfig):

View File

@ -11,7 +11,6 @@ from opendevin.core.exceptions import (
)
from opendevin.llm.llm import LLM
from opendevin.runtime.plugins import PluginRequirement
from opendevin.runtime.tools import RuntimeTool
class Agent(ABC):
@ -25,7 +24,6 @@ class Agent(ABC):
_registry: dict[str, Type['Agent']] = {}
sandbox_plugins: list[PluginRequirement] = []
runtime_tools: list[RuntimeTool] = []
def __init__(
self,

View File

@ -1,5 +0,0 @@
from enum import Enum
class RuntimeTool(Enum):
BROWSER = 'browser'