ЮИ - Добавить удаление сохраненных наборов автопрогонов с удалением файлов на бэке
This commit is contained in:
@@ -3,6 +3,7 @@ import type {
|
||||
AsyncEvalRunStatusResponse,
|
||||
AutoGenPersonalityCatalogResponse,
|
||||
AutoGenHistoryResponse,
|
||||
AutoGenHistoryRecord,
|
||||
AutoGenMode,
|
||||
AutoRunAnnotationsResponse,
|
||||
AutoRunAnnotationRecord,
|
||||
@@ -230,6 +231,8 @@ export const apiClient = {
|
||||
evalTarget?: "normalizer" | "assistant_stage1" | "assistant_stage2" | "assistant_p0";
|
||||
compareWithReportFile?: string;
|
||||
questions?: string[];
|
||||
scenarioQuestions?: string[];
|
||||
scenarioTitle?: string;
|
||||
analysisDate?: string;
|
||||
}): Promise<AsyncEvalRunStartResponse> {
|
||||
return request("/eval/run-async/start", {
|
||||
@@ -256,6 +259,8 @@ export const apiClient = {
|
||||
eval_target: input.evalTarget,
|
||||
compare_with_report_file: input.compareWithReportFile,
|
||||
questions: input.questions,
|
||||
scenarioQuestions: input.scenarioQuestions,
|
||||
scenarioTitle: input.scenarioTitle,
|
||||
analysis_date: input.analysisDate
|
||||
})
|
||||
});
|
||||
@@ -342,6 +347,24 @@ export const apiClient = {
|
||||
return request(`/assistant/session/${sessionId}`);
|
||||
},
|
||||
|
||||
async saveAutoRunAssistantSession(input: {
|
||||
session_id: string;
|
||||
title: string;
|
||||
generated_by?: string;
|
||||
context?: {
|
||||
llm_provider?: string;
|
||||
model?: string;
|
||||
assistant_prompt_version?: string;
|
||||
decomposition_prompt_version?: string;
|
||||
prompt_fingerprint?: string;
|
||||
};
|
||||
}): Promise<{ ok: boolean; generation: AutoGenHistoryRecord }> {
|
||||
return request("/autoruns/autogen/save-assistant-session", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(input)
|
||||
});
|
||||
},
|
||||
|
||||
async loadAssistantAnnotations(input?: {
|
||||
session_id?: string;
|
||||
limit?: number;
|
||||
@@ -485,6 +508,28 @@ export const apiClient = {
|
||||
return request("/autoruns/autogen/personality-catalog");
|
||||
},
|
||||
|
||||
async updateAutoRunAutogenQuestions(input: {
|
||||
generation_id: string;
|
||||
questions: string[];
|
||||
}): Promise<{ ok: boolean; generation: AutoGenHistoryRecord }> {
|
||||
return request(`/autoruns/autogen/history/${encodeURIComponent(input.generation_id)}/questions`, {
|
||||
method: "PATCH",
|
||||
body: JSON.stringify({
|
||||
questions: input.questions
|
||||
})
|
||||
});
|
||||
},
|
||||
|
||||
async deleteAutoRunAutogenHistoryRecord(generationId: string): Promise<{
|
||||
ok: boolean;
|
||||
generation_id: string;
|
||||
deleted_files: string[];
|
||||
}> {
|
||||
return request(`/autoruns/autogen/history/${encodeURIComponent(generationId)}`, {
|
||||
method: "DELETE"
|
||||
});
|
||||
},
|
||||
|
||||
async generateAutoRunQuestions(input: {
|
||||
mode: AutoGenMode;
|
||||
count: number;
|
||||
@@ -508,7 +553,7 @@ export const apiClient = {
|
||||
autogen_personality_id?: string;
|
||||
autogen_personality_prompt?: string;
|
||||
};
|
||||
}): Promise<{ ok: boolean; generation: { generation_id: string; created_at: string; mode: AutoGenMode; count: number; domain: string | null; questions: string[]; generated_by: string | null; saved_case_set_file: string | null; context: Record<string, unknown> | null } }> {
|
||||
}): Promise<{ ok: boolean; generation: AutoGenHistoryRecord }> {
|
||||
return request("/autoruns/autogen/generate", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(input)
|
||||
|
||||
Reference in New Issue
Block a user