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>
32 lines
418 B
Markdown
32 lines
418 B
Markdown
---
|
|
sidebar_label: manager
|
|
title: opendevin.server.agent.manager
|
|
---
|
|
|
|
## AgentManager Objects
|
|
|
|
```python
|
|
class AgentManager()
|
|
```
|
|
|
|
#### register\_agent
|
|
|
|
```python
|
|
def register_agent(sid: str)
|
|
```
|
|
|
|
Registers a new agent.
|
|
|
|
**Arguments**:
|
|
|
|
- `sid` - The session ID of the agent.
|
|
|
|
#### dispatch
|
|
|
|
```python
|
|
async def dispatch(sid: str, action: str | None, data: dict)
|
|
```
|
|
|
|
Dispatches actions to the agent from the client.
|
|
|