Skip to content

Issue in agent.py #5

Description

@sinahmr

Hi,
Thank you for sharing the code.

I suspect that the generated actions, meaning the functions induced by the agent, are not being loaded correctly in DemoAgent.__init__. There is a --websites argument in run_demo.py, and this value is passed to DemoAgent, but it does not seem to be used afterward.
Am I correct that line 75 (here) is incomplete and should include logic like the following?

custom_actions = ACTION_DICT["general"] + ACTION_DICT["webarena"]
for website in websites:
      custom_actions.extend(ACTION_DICT[website])

With the current implementation, it appears that newly generated actions are never actually used by the agent. If this understanding is correct, ASI would effectively behave like a vanilla agent without action induction.

Thank you for your time and help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions