|
@@ -1,6 +1,7 @@
|
|
|
#! /usr/bin/env python
|
|
|
# -*- coding: utf-8 -*-
|
|
|
# vim:fenc=utf-8
|
|
|
+import json
|
|
|
import time
|
|
|
import logging
|
|
|
import werkzeug.exceptions
|
|
@@ -403,8 +404,8 @@ def save_native_agent_configuration():
|
|
|
execution_model = req_data.get('execution_model', None)
|
|
|
system_prompt = req_data.get('system_prompt', None)
|
|
|
task_prompt = req_data.get('task_prompt', None)
|
|
|
- tools = req_data.get('tools', [])
|
|
|
- sub_agents = req_data.get('sub_agents', [])
|
|
|
+ tools = json.dumps(req_data.get('tools', []))
|
|
|
+ sub_agents = json.dumps(req_data.get('sub_agents', []))
|
|
|
extra_params = req_data.get('extra_params', {})
|
|
|
|
|
|
if not name:
|