feat: workflow和chat分离
1,增加了创建workflow的页面 2.删除了event
This commit is contained in:
+24
-19
@@ -19,7 +19,6 @@ export interface Provider {
|
||||
provider_url?: string;
|
||||
provider_owner?: string;
|
||||
provider_models?: string[];
|
||||
// Based on your UI needs we might infer some local status fields
|
||||
status?: string;
|
||||
model?: string;
|
||||
}
|
||||
@@ -51,22 +50,31 @@ export interface ClusterNode {
|
||||
remaining: ClusterResources;
|
||||
}
|
||||
|
||||
// Chat types
|
||||
export interface ChatMessageRequest {
|
||||
// Chat types (from DB)
|
||||
export interface ChatSessionDB {
|
||||
chat_id: string;
|
||||
user_id: string;
|
||||
title: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface ChatMessageDB {
|
||||
message_id: string;
|
||||
chat_id: string;
|
||||
message: string;
|
||||
message_owner: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface ChatMessageResponse {
|
||||
message: string; // Either event_id or text
|
||||
}
|
||||
|
||||
// Workflow types
|
||||
// Workflow types (matches backend API response)
|
||||
export interface Workflow {
|
||||
event_id: string;
|
||||
workflow_title: string;
|
||||
trace_id: string;
|
||||
title: string;
|
||||
command: string;
|
||||
status?: string;
|
||||
message?: string;
|
||||
create_time?: string;
|
||||
created_at?: string;
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
export interface WorkflowStep {
|
||||
@@ -80,22 +88,19 @@ export interface WorkflowStep {
|
||||
}
|
||||
|
||||
export interface WorkflowDetail {
|
||||
event_id: string;
|
||||
workflow_title: string | null;
|
||||
trace_id: string;
|
||||
title: string;
|
||||
status: string;
|
||||
command?: string;
|
||||
current_step: number;
|
||||
user_name: string;
|
||||
message: string;
|
||||
create_time: string;
|
||||
steps: WorkflowStep[];
|
||||
context_blackboard?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
// Workflow Template Validation
|
||||
export interface WorkStep {
|
||||
name: string;
|
||||
desc?: string;
|
||||
actor: string; // the name of the worker individual
|
||||
actor: string;
|
||||
inputs?: string[];
|
||||
outputs?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user