Skip to content

Commit 5c54fd5

Browse files
Port over BashSession and tests (#7)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 2955716 commit 5c54fd5

File tree

19 files changed

+2140
-7
lines changed

19 files changed

+2140
-7
lines changed

.openhands/microagents/repo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ This project contains my tasks of completely refactor [OpenHands](https://github
136136
- read [openhands/core/runtime/tools/str_replace_editor/impl.py](openhands/core/runtime/tools/str_replace_editor/impl.py) for tool execute_fn
137137
- read [openhands/core/runtime/tools/str_replace_editor/definition.py](openhands/core/runtime/tools/str_replace_editor/definition.py) for how do we define a tool
138138
- read [openhands/core/runtime/tools/str_replace_editor/__init__.py](openhands/core/runtime/tools/str_replace_editor/__init__.py) for how we define each tool module
139+
- Check how we perform tests in .github/workflows/tests.yml
139140
- ...
140141
</TASK>
141142

openhands/core/runtime/schema.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,8 @@ class ObservationBase(Schema):
132132
"""Base schema for output observation."""
133133

134134
model_config = ConfigDict(extra="allow")
135+
136+
@property
137+
def agent_observation(self) -> str:
138+
"""Get the observation string to show to the agent."""
139+
raise NotImplementedError("Subclasses must implement agent_observation")

0 commit comments

Comments
 (0)