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:
Xingyao Wang
2024-05-02 02:07:40 +08:00
committed by GitHub
parent 545327cc1e
commit 435f47ca0e
16 changed files with 65 additions and 291 deletions

View File

@@ -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