Skip to content

Automate browser based workflows with AI

remove action.text from action history in the prompt (#432)

Kerem Yilmaz26d833ba3878
diff --git a/skyvern/forge/agent.py b/skyvern/forge/agent.py
index c019163eb..c340c243b 100644
--- a/skyvern/forge/agent.py
+++ b/skyvern/forge/agent.py
@@ -854,7 +854,7 @@ class ForgeAgent:
return json.dumps(
[
{
- "action": action.model_dump(exclude_none=True),
+ "action": action.model_dump(exclude_none=True, exclude={"text"}),
"results": [
result.model_dump(
exclude_none=True,