对话记录和工作空间链路确认
This commit is contained in:
@@ -86,22 +86,16 @@ export interface CreationTreeItem {
|
||||
|
||||
// 新的执行列表数据结构
|
||||
export interface ExecutionItem {
|
||||
id: string;
|
||||
timestamp: string;
|
||||
content: string;
|
||||
label: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface ExecutionFlowItem {
|
||||
flowName: string;
|
||||
Id?: number | string;
|
||||
sessionId?: string;
|
||||
items: ExecutionItem[];
|
||||
}
|
||||
|
||||
export interface ExecutionTreeItem {
|
||||
createDate: string;
|
||||
flows: ExecutionFlowItem[];
|
||||
items: ExecutionItem[];
|
||||
}
|
||||
|
||||
export interface CreationListData {
|
||||
@@ -351,7 +345,7 @@ export function executeFlow(data: ExecuteFlowParams | FormData, requestOptions?:
|
||||
});
|
||||
}
|
||||
/** 删除工作空间结果(单个文件) */
|
||||
export function deleteExecutionResult(data: { id: string | number }, requestOptions?: RequestOptions) {
|
||||
export function deleteExecutionResult(data: { id: string; content: string }, requestOptions?: RequestOptions) {
|
||||
return request({
|
||||
url: '/ai-agent/flow/execution/deleteResult',
|
||||
method: 'delete',
|
||||
@@ -384,10 +378,11 @@ export interface SessionListItem {
|
||||
}
|
||||
|
||||
/** 获取会话记录列表 */
|
||||
export function getSessionList(requestOptions?: RequestOptions) {
|
||||
export function getSessionList(params?: Record<string, any>, requestOptions?: RequestOptions) {
|
||||
return request({
|
||||
url: '/ai-agent/flow/execution/sessionList',
|
||||
method: 'get',
|
||||
params,
|
||||
requestOptions,
|
||||
}) as Promise<SessionListResponse>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user