Skip to content

Automate browser based workflows with AI

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

Shuchang Zhengc1ad0ed391c4
diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py
index fd2d3db79..946651776 100644
--- a/skyvern/forge/agent.py
+++ b/skyvern/forge/agent.py
@@ -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,