Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d5afa6e

Browse files
yhjun1026fangyinclcx01800250lcxadmlAralhi
authoredFeb 7, 2024
Native data AI application framework based on AWEL+AGENT (eosphoros-ai#1152)
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: lcx01800250 <lcx01800250@alibaba-inc.com> Co-authored-by: licunxing <864255598@qq.com> Co-authored-by: Aralhi <xiaoping0501@gmail.com> Co-authored-by: xuyuan23 <643854343@qq.com> Co-authored-by: aries_ckt <916701291@qq.com> Co-authored-by: hzh97 <2976151305@qq.com>
1 parent dbb9ac8 commit d5afa6e

File tree

328 files changed

+22613
-3289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+22613
-3289
lines changed
 

‎.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: python-fmt
66
name: Python Format
7-
entry: make fmt
7+
entry: make fmt-check
88
language: system
99
exclude: '^dbgpt/app/static/|^web/'
1010
types: [python]

‎assets/schema/dbgpt.sql

+75
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,81 @@ CREATE TABLE `gpts_plans` (
262262
UNIQUE KEY `uk_sub_task` (`conv_id`,`sub_task_num`)
263263
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COMMENT="gpt plan";
264264

265+
-- dbgpt.dbgpt_serve_flow definition
266+
CREATE TABLE `dbgpt_serve_flow` (
267+
`id` int NOT NULL AUTO_INCREMENT COMMENT 'Auto increment id',
268+
`uid` varchar(128) NOT NULL COMMENT 'Unique id',
269+
`dag_id` varchar(128) DEFAULT NULL COMMENT 'DAG id',
270+
`name` varchar(128) DEFAULT NULL COMMENT 'Flow name',
271+
`flow_data` text COMMENT 'Flow data, JSON format',
272+
`user_name` varchar(128) DEFAULT NULL COMMENT 'User name',
273+
`sys_code` varchar(128) DEFAULT NULL COMMENT 'System code',
274+
`gmt_created` datetime DEFAULT NULL COMMENT 'Record creation time',
275+
`gmt_modified` datetime DEFAULT NULL COMMENT 'Record update time',
276+
`flow_category` varchar(64) DEFAULT NULL COMMENT 'Flow category',
277+
`description` varchar(512) DEFAULT NULL COMMENT 'Flow description',
278+
`state` varchar(32) DEFAULT NULL COMMENT 'Flow state',
279+
`source` varchar(64) DEFAULT NULL COMMENT 'Flow source',
280+
`source_url` varchar(512) DEFAULT NULL COMMENT 'Flow source url',
281+
`version` varchar(32) DEFAULT NULL COMMENT 'Flow version',
282+
`label` varchar(128) DEFAULT NULL COMMENT 'Flow label',
283+
`editable` int DEFAULT NULL COMMENT 'Editable, 0: editable, 1: not editable',
284+
PRIMARY KEY (`id`),
285+
UNIQUE KEY `uk_uid` (`uid`),
286+
KEY `ix_dbgpt_serve_flow_sys_code` (`sys_code`),
287+
KEY `ix_dbgpt_serve_flow_uid` (`uid`),
288+
KEY `ix_dbgpt_serve_flow_dag_id` (`dag_id`),
289+
KEY `ix_dbgpt_serve_flow_user_name` (`user_name`),
290+
KEY `ix_dbgpt_serve_flow_name` (`name`)
291+
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
292+
293+
-- dbgpt.gpts_app definition
294+
CREATE TABLE `gpts_app` (
295+
`id` int NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
296+
`app_code` varchar(255) NOT NULL COMMENT 'Current AI assistant code',
297+
`app_name` varchar(255) NOT NULL COMMENT 'Current AI assistant name',
298+
`app_describe` varchar(2255) NOT NULL COMMENT 'Current AI assistant describe',
299+
`language` varchar(100) NOT NULL COMMENT 'gpts language',
300+
`team_mode` varchar(255) NOT NULL COMMENT 'Team work mode',
301+
`team_context` text COMMENT 'The execution logic and team member content that teams with different working modes rely on',
302+
`user_code` varchar(255) DEFAULT NULL COMMENT 'user code',
303+
`sys_code` varchar(255) DEFAULT NULL COMMENT 'system app code',
304+
`created_at` datetime DEFAULT NULL COMMENT 'create time',
305+
`updated_at` datetime DEFAULT NULL COMMENT 'last update time',
306+
`icon` varchar(1024) DEFAULT NULL COMMENT 'app icon, url',
307+
PRIMARY KEY (`id`),
308+
UNIQUE KEY `uk_gpts_app` (`app_name`)
309+
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
310+
311+
CREATE TABLE `gpts_app_collection` (
312+
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
313+
`app_code` varchar(255) NOT NULL COMMENT 'Current AI assistant code',
314+
`user_code` int(11) NOT NULL COMMENT 'user code',
315+
`sys_code` varchar(255) NOT NULL COMMENT 'system app code',
316+
`created_at` datetime DEFAULT NULL COMMENT 'create time',
317+
`updated_at` datetime DEFAULT NULL COMMENT 'last update time',
318+
PRIMARY KEY (`id`),
319+
KEY `idx_app_code` (`app_code`),
320+
KEY `idx_user_code` (`user_code`)
321+
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT="gpt collections";
322+
323+
-- dbgpt.gpts_app_detail definition
324+
CREATE TABLE `gpts_app_detail` (
325+
`id` int NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
326+
`app_code` varchar(255) NOT NULL COMMENT 'Current AI assistant code',
327+
`app_name` varchar(255) NOT NULL COMMENT 'Current AI assistant name',
328+
`agent_name` varchar(255) NOT NULL COMMENT ' Agent name',
329+
`node_id` varchar(255) NOT NULL COMMENT 'Current AI assistant Agent Node id',
330+
`resources` text COMMENT 'Agent bind resource',
331+
`prompt_template` text COMMENT 'Agent bind template',
332+
`llm_strategy` varchar(25) DEFAULT NULL COMMENT 'Agent use llm strategy',
333+
`llm_strategy_value` text COMMENT 'Agent use llm strategy value',
334+
`created_at` datetime DEFAULT NULL COMMENT 'create time',
335+
`updated_at` datetime DEFAULT NULL COMMENT 'last update time',
336+
PRIMARY KEY (`id`),
337+
UNIQUE KEY `uk_gpts_app_agent_node` (`app_name`,`agent_name`,`node_id`)
338+
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
339+
265340
CREATE
266341
DATABASE IF NOT EXISTS EXAMPLE_1;
267342
use EXAMPLE_1;

0 commit comments

Comments
 (0)
Please sign in to comment.