|
|
1 жил өмнө | |
|---|---|---|
| .. | ||
| browser | 1 жил өмнө | |
| builder | 1 жил өмнө | |
| client | 1 жил өмнө | |
| e2b | 1 жил өмнө | |
| plugins | 1 жил өмнө | |
| remote | 1 жил өмнө | |
| utils | 1 жил өмнө | |
| README.md | 1 жил өмнө | |
| __init__.py | 1 жил өмнө | |
| runtime.py | 1 жил өмнө | |
The OpenHands Runtime folder contains the core components responsible for executing actions and managing the runtime environment for the OpenHands project. This README provides an overview of the main components and their interactions. You can learn more about how the runtime works in the EventStream Runtime documentation.
The runtime.py file defines the Runtime class, which serves as the primary interface for agent interactions with the external environment. It handles various operations including:
Key features of the Runtime class:
ainit) for setting up environment variablesThe client.py file contains the RuntimeClient class, which is responsible for executing actions received from the OpenHands backend and producing observations. This client runs inside a Docker sandbox.
Key features of the RuntimeClient class:
Initialization:
Runtime is initialized with configuration and event stream.ainit method.Action Handling:
Runtime receives actions through the event stream.Action Execution:
run methodrun_ipython methodread and write methodsbrowse and browse_interactive methodsObservation Generation:
Plugin Integration:
Sandbox Environment:
RuntimeClient sets up a sandboxed environment inside a Docker container.Browser Interactions:
BrowserEnv class.openhands.events module.openhands.core.config.openhands.core.logger.This section provides an overview of the OpenHands Runtime folder. For more detailed information on specific components or usage, please refer to the individual files and their docstrings.