mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* docs(docs): start implementing docs website * update video url * add autogenerated codebase docs for backend * precommit * update links * fix config and video * gh actions * rename * workdirs * path * path * fix doc1 * redo markdown * docs * change main folder name * simplify readme * add back architecture * Fix lint errors * lint * update poetry lock --------- Co-authored-by: Jim Su <jimsu@protonmail.com>
37 lines
546 B
Markdown
37 lines
546 B
Markdown
---
|
|
sidebar_label: agent_controller
|
|
title: opendevin.controller.agent_controller
|
|
---
|
|
|
|
## AgentController Objects
|
|
|
|
```python
|
|
class AgentController()
|
|
```
|
|
|
|
#### setup\_task
|
|
|
|
```python
|
|
async def setup_task(task: str, inputs: dict = {})
|
|
```
|
|
|
|
Sets up the agent controller with a task.
|
|
|
|
#### start
|
|
|
|
```python
|
|
async def start(task: str)
|
|
```
|
|
|
|
Starts the agent controller with a task.
|
|
If task already run before, it will continue from the last step.
|
|
|
|
#### get\_task\_state
|
|
|
|
```python
|
|
def get_task_state()
|
|
```
|
|
|
|
Returns the current state of the agent task.
|
|
|