节点新增字段和提示词弹窗
This commit is contained in:
@@ -37,6 +37,8 @@ export interface NodeLibraryItem {
|
||||
nodeName: string;
|
||||
modelType: number;
|
||||
skillOption: boolean;
|
||||
promptOption: boolean;
|
||||
isSaveFile: boolean;
|
||||
formConfig: NodeLibraryFormItem[];
|
||||
modelConfig: NodeLibraryModelConfig[];
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ export interface PromptListParams {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
keyword?: string;
|
||||
nodeType?: string;
|
||||
}
|
||||
|
||||
export interface CreatePromptParams {
|
||||
@@ -65,6 +66,17 @@ export function getNodeLibraryList() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提示词列表(根据节点类型)
|
||||
*/
|
||||
export function getPromptList(params: PromptListParams) {
|
||||
return request<PromptListResponse>({
|
||||
url: '/ai-agent/node/prompt/list',
|
||||
method: 'get',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前用户提示词列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user