get rid of org id, task id, step id, step order and action order from the action history (#1050)

This commit is contained in:
Shuchang Zheng
2024-10-24 13:11:15 -07:00
committed by GitHub
parent 3eba6d7f83
commit c1ad0ed391

View File

@@ -1217,7 +1217,18 @@ class ForgeAgent:
return json.dumps(
[
{
"action": action.model_dump(exclude_none=True, exclude={"text", "confidence_float"}),
"action": action.model_dump(
exclude_none=True,
exclude={
"text",
"confidence_float",
"organization_id",
"task_id",
"step_id",
"step_order",
"action_order",
},
),
"results": [
result.model_dump(
exclude_none=True,