Files
OpenHands/agenthub/dummy_agent/agent.py
Graham Neubig a5f61caae9 Add actions for github push and send PR (#1415)
* Added a push action

* Tests

* Add tests

* Fix capitalization

* Update

* Fix typo

* Fix integration tests

* Added poetry.lock

* Set lock

* Fix action parsing

* Update integration test output

* Updated prompt

* Update integration test

* Add github token to default config

---------

Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
2024-04-29 00:56:23 +00:00

22 lines
689 B
Python

"""Module for a Dummy agent."""
from opendevin.action.base import NullAction
from opendevin.state import State
from opendevin.action import Action
from typing import List
from opendevin.agent import Agent
from opendevin.controller.agent_controller import AgentController
from opendevin.observation.base import NullObservation, Observation
class DummyAgent(Agent):
"""A dummy agent that does nothing but can be used in testing."""
async def run(self, controller: AgentController) -> Observation:
return NullObservation('')
def step(self, state: State) -> Action:
return NullAction('')
def search_memory(self, query: str) -> List[str]:
return []