add action result, including downloaded files to step.output for both agent and caching runs (#4477)

This commit is contained in:
Shuchang Zheng
2026-01-18 11:17:02 -08:00
committed by GitHub
parent 6a32d8b696
commit bd041ed52f
8 changed files with 245 additions and 16 deletions

View File

@@ -34,7 +34,14 @@ async def get_action_history(
{
"action": action.model_dump(
exclude_none=True,
include={"action_type", "element_id", "status", "reasoning", "option", "download"},
include={
"action_type",
"element_id",
"status",
"reasoning",
"option",
"download",
},
),
# use the last result of the action, because some actions(like chain_click)
# might have multiple results. Only the last one can represent the real result,