remove action.text from action history in the prompt (#432)
This commit is contained in:
@@ -854,7 +854,7 @@ class ForgeAgent:
|
|||||||
return json.dumps(
|
return json.dumps(
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"action": action.model_dump(exclude_none=True),
|
"action": action.model_dump(exclude_none=True, exclude={"text"}),
|
||||||
"results": [
|
"results": [
|
||||||
result.model_dump(
|
result.model_dump(
|
||||||
exclude_none=True,
|
exclude_none=True,
|
||||||
|
|||||||
Reference in New Issue
Block a user