frontend v1

This commit is contained in:
2026-02-11 17:47:18 +08:00
parent 0ad07402f2
commit 0caf45e360
17 changed files with 2775 additions and 0 deletions

77
frontend/src/types.ts Normal file
View File

@@ -0,0 +1,77 @@
export type GraphConfigListItem = {
graph_id?: string | null;
pipeline_id: string;
prompt_set_id: string;
name: string;
description: string;
is_active: boolean;
tool_keys: string[];
created_at?: string | null;
updated_at?: string | null;
};
export type GraphConfigListResponse = {
items: GraphConfigListItem[];
count: number;
};
export type GraphConfigReadResponse = {
graph_id?: string | null;
pipeline_id: string;
prompt_set_id: string;
tool_keys: string[];
prompt_dict: Record<string, string>;
};
export type GraphConfigUpsertRequest = {
graph_id: string;
pipeline_id: string;
prompt_set_id?: string;
tool_keys: string[];
prompt_dict: Record<string, string>;
};
export type GraphConfigUpsertResponse = {
graph_id: string;
pipeline_id: string;
prompt_set_id: string;
tool_keys: string[];
prompt_keys: string[];
};
export type AvailableGraphsResponse = {
available_graphs: string[];
};
export type PipelineCreateRequest = {
graph_id: string;
pipeline_id: string;
prompt_set_id: string;
tool_keys: string[];
port: number;
entry_point: string;
llm_name: string;
};
export type PipelineRunInfo = {
run_id: string;
pid: number;
graph_id: string;
pipeline_id: string;
prompt_set_id: string;
url: string;
port: number;
};
export type PipelineCreateResponse = PipelineRunInfo;
export type PipelineListResponse = {
items: PipelineRunInfo[];
count: number;
};
export type PipelineStopResponse = {
run_id: string;
status: string;
};