mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-04-29 03:00:45 -04:00
Improve the both frontend and backend for CodeActAgent (#1494)
* improve the both frontend and backend for CodeActAgent * fix linter * update integration test
This commit is contained in:
@@ -3,6 +3,14 @@ sidebar_label: codeact_agent
|
||||
title: agenthub.codeact_agent.codeact_agent
|
||||
---
|
||||
|
||||
#### truncate\_observation
|
||||
|
||||
```python
|
||||
def truncate_observation(observation: str, max_chars: int = 5000) -> str
|
||||
```
|
||||
|
||||
Truncate the middle of the observation if it is too long.
|
||||
|
||||
## CodeActAgent Objects
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user