Эх сурвалжийг харах

add BrowseInteractiveAction in dummy agent (#1852)

Frank Xu 1 жил өмнө
parent
commit
9856e76c1f

+ 9 - 0
agenthub/dummy_agent/agent.py

@@ -9,6 +9,7 @@ from opendevin.events.action import (
     AgentFinishAction,
     AgentRecallAction,
     AgentRejectAction,
+    BrowseInteractiveAction,
     BrowseURLAction,
     CmdRunAction,
     FileReadAction,
@@ -121,6 +122,14 @@ class DummyAgent(Agent):
                     # BrowserOutputObservation('<html></html>', url='https://google.com', screenshot=""),
                 ],
             },
+            {
+                'action': BrowseInteractiveAction(
+                    browser_actions='goto("https://google.com")'
+                ),
+                'observations': [
+                    # BrowserOutputObservation('<html></html>', url='https://google.com', screenshot=""),
+                ],
+            },
             {
                 'action': AgentFinishAction(),
                 'observations': [],