Skip to content

Commit

Permalink
ui refactor and update
Browse files Browse the repository at this point in the history
  • Loading branch information
victordibia committed Nov 6, 2024
1 parent c69cdcf commit d434229
Show file tree
Hide file tree
Showing 15 changed files with 914 additions and 565 deletions.
1 change: 1 addition & 0 deletions python/packages/autogen-studio/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ autogenstudio/web/skills/user/*
notebooks/test

notebooks/work_dir/*
notebooks/test.db

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
32 changes: 0 additions & 32 deletions python/packages/autogen-studio/frontend/src/components/types.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface IStatus {
message: string;
status: boolean;
data?: any;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
export interface MessageConfig {
source: string;
content: string;
}

export interface DBModel {
id?: number;
user_id?: string;
created_at?: string;
updated_at?: string;
}

export interface Message extends DBModel {
config: MessageConfig;
}

export interface Session extends DBModel {
name: string;
team_id?: string;
}

export interface Team extends DBModel {
name: string;
}

export type ModelTypes = "OpenAIChatCompletionClient";

export type AgentTypes = "AssistantAgent" | "CodingAssistantAgent";

export type TeamTypes = "RoundRobinGroupChat" | "SelectorGroupChat";

export type TerminationTypes =
| "MaxMessageTermination"
| "StopMessageTermination"
| "TextMentionTermination";

export interface ModelConfig {
model: string;
model_type: ModelTypes;
api_key?: string;
base_url?: string;
}

export interface ToolConfig {
name: string;
description: string;
content: string;
}

export interface AgentConfig {
name: string;
agent_type: AgentTypes;
system_message?: string;
model_client?: ModelConfig;
tools?: ToolConfig[];
description?: string;
}

export interface TerminationConfig {
termination_type: TerminationTypes;
max_messages?: number;
text?: string;
}

export interface TeamConfig {
name: string;
participants: AgentConfig[];
team_type: TeamTypes;
model_client?: ModelConfig;
termination_condition?: TerminationConfig;
}
Loading

0 comments on commit d434229

Please sign in to comment.