Fix action history (#1076)

This commit is contained in:
Shuchang Zheng
2024-10-28 13:11:58 -07:00
committed by GitHub
parent 4949372726
commit 2b176df6f9

View File

@@ -1219,28 +1219,15 @@ class ForgeAgent:
{ {
"action": action.model_dump( "action": action.model_dump(
exclude_none=True, exclude_none=True,
exclude={ include={"action_type", "element_id", "status", "reasoning", "option"},
"text",
"confidence_float",
"organization_id",
"task_id",
"step_id",
"step_order",
"action_order",
"skyvern_element_hash",
"skyvern_element_data",
},
), ),
"results": [ "results": [
result.model_dump( result.model_dump(
exclude_none=True, exclude_none=True,
exclude={ include={
"javascript_triggered", "success",
"interacted_with_sibling", "exception_type",
"interacted_with_parent", "exception_message",
"step_retry_number",
"step_order",
"stop_execution_on_failure",
}, },
) )
for result in results for result in results