Execute data manipulation bots from agent

This commit is contained in:
Jake Walker
2023-11-21 11:42:01 +00:00
parent 7e0e8a4768
commit 2975aa8827
3 changed files with 40 additions and 4 deletions

View File

@@ -444,8 +444,8 @@ class PrimaiteSession:
# CREATE REWARD FUNCTION
rew_function = RewardFunction.from_config(reward_function_cfg, session=sess)
execution_definition = AgentExecutionDefinition(**agent_cfg.get("execution_definition", {}))
agent_settings = AgentSettings(**agent_cfg.get("agent_settings", {}))
execution_definition = AgentExecutionDefinition.from_config(agent_cfg.get("execution_definition"))
agent_settings = AgentSettings.from_config(agent_cfg.get("agent_settings"))
# CREATE AGENT
if agent_type == "GreenWebBrowsingAgent":