Fix action history (#1076)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user