mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
* 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>
22 lines
689 B
Python
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 []
|