remove action.text from action history in the prompt (#432)

This commit is contained in:
Kerem Yilmaz
2024-06-05 22:43:08 -07:00
committed by GitHub
parent 14009bae34
commit 26d833ba38

View File

@@ -854,7 +854,7 @@ class ForgeAgent:
return json.dumps(
[
{
"action": action.model_dump(exclude_none=True),
"action": action.model_dump(exclude_none=True, exclude={"text"}),
"results": [
result.model_dump(
exclude_none=True,