mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-07 03:50:42 +00:00
Native data AI application framework based on AWEL+AGENT (#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>
This commit is contained in:
82
web/types/app.ts
Normal file
82
web/types/app.ts
Normal file
@@ -0,0 +1,82 @@
|
||||
// app
|
||||
export type IApp = {
|
||||
app_code: string;
|
||||
/**
|
||||
* 应用名
|
||||
*/
|
||||
app_name: string;
|
||||
/**
|
||||
* 应用描述信息/简介
|
||||
*/
|
||||
app_describe: string;
|
||||
/**
|
||||
* 语言/prompt关联
|
||||
*/
|
||||
language: 'en' | 'zh';
|
||||
/**
|
||||
* 组织模式(AutoPlan/LayOut)
|
||||
*/
|
||||
team_mode: string;
|
||||
/**
|
||||
* 组织上下文/ None
|
||||
*/
|
||||
team_context: string;
|
||||
/**
|
||||
* 应用节点信息
|
||||
*/
|
||||
details?: IDetail[];
|
||||
/**
|
||||
* 是否已收藏
|
||||
*/
|
||||
is_collected: string;
|
||||
};
|
||||
|
||||
// agent
|
||||
export type AgentParams = {
|
||||
agent_name: string;
|
||||
node_id: string;
|
||||
/**
|
||||
* Agent绑定的资源
|
||||
*/
|
||||
resources: string;
|
||||
/**
|
||||
* Agent的绑定模板
|
||||
*/
|
||||
prompt_template: string;
|
||||
/**
|
||||
* llm的使用策略,默认是priority
|
||||
*/
|
||||
llm_strategy: string;
|
||||
/**
|
||||
* 策略包含的参数
|
||||
*/
|
||||
llm_strategy_value: string;
|
||||
};
|
||||
|
||||
export type IAgent = {
|
||||
describe?: string;
|
||||
name: string;
|
||||
system_message?: string;
|
||||
};
|
||||
|
||||
export type ITeamModal = {
|
||||
auto_plan: string;
|
||||
awel_layout: string;
|
||||
singe_agent: string;
|
||||
};
|
||||
|
||||
export type IResource = {
|
||||
is_dynamic: boolean;
|
||||
name: string;
|
||||
type: string;
|
||||
value: string;
|
||||
};
|
||||
|
||||
export type IDetail = {
|
||||
agent_name?: string;
|
||||
app_code?: string;
|
||||
llm_strategy?: string;
|
||||
llm_strategy_value?: string;
|
||||
resources?: IResource[];
|
||||
key?: string;
|
||||
};
|
Reference in New Issue
Block a user