Feat: Add Explore page (#13043)

### What problem does this PR solve?

Feat: Add Explore page

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2026-02-09 19:53:51 +08:00
committed by GitHub
parent 8ad7339448
commit db37804f10
21 changed files with 1105 additions and 31 deletions

View File

@@ -126,6 +126,10 @@ const methods = {
url: cancelCanvas,
method: 'put',
},
createAgentSession: {
url: fetchAgentLogs,
method: 'put',
},
} as const;
const agentService = registerNextServer<keyof typeof methods>(methods);
@@ -140,6 +144,10 @@ export const fetchAgentLogsByCanvasId = (
return request.get(methods.fetchAgentLogs.url(canvasId), { params: params });
};
export const fetchAgentLogsById = (canvasId: string, sessionId: string) => {
return request.get(api.fetchAgentLogsById(canvasId, sessionId));
};
export const fetchPipeLineList = (params: IPipeLineListRequest) => {
return request.get(api.listCanvas, { params: params });
};
@@ -151,4 +159,12 @@ export const fetchWebhookTrace = (
return request.get(api.fetchWebhookTrace(id), { params: params });
};
export function createAgentSession({ id, name }: { id: string; name: string }) {
return request.put(api.fetchAgentLogs(id), { data: { name } });
}
export const deleteAgentSession = (canvasId: string, sessionId: string) => {
return request.delete(api.fetchAgentLogsById(canvasId, sessionId));
};
export default agentService;