From ebbe3fc129bd206ac5e56552ed0a6722f937faad Mon Sep 17 00:00:00 2001 From: Fluder-Paradyne <121793617+Fluder-Paradyne@users.noreply.github.com> Date: Fri, 22 Sep 2023 14:55:04 +0530 Subject: [PATCH] Fix api dev (#1283) * save other config to agent_execution config * add config --- superagi/controllers/api/agent.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/superagi/controllers/api/agent.py b/superagi/controllers/api/agent.py index d057e7f0b..88540b85b 100644 --- a/superagi/controllers/api/agent.py +++ b/superagi/controllers/api/agent.py @@ -89,7 +89,17 @@ def create_agent_with_config(agent_with_config: AgentConfigExtInput, name="New Run", current_agent_step_id=start_step.id, iteration_workflow_step_id=iteration_step_id) agent_execution_configs = { "goal": agent_with_config.goal, - "instruction": agent_with_config.instruction + "instruction": agent_with_config.instruction, + "constraints": agent_with_config.constraints, + "exit": agent_with_config.exit, + "tools": agent_with_config.tools, + "iteration_interval": agent_with_config.iteration_interval, + "model": agent_with_config.model, + "permission_type": agent_with_config.permission_type, + "LTM_DB": agent_with_config.LTM_DB, + "max_iterations": agent_with_config.max_iterations, + "user_timezone": agent_with_config.user_timezone, + "knowledge": agent_with_config.knowledge } db.session.add(execution) db.session.commit()