-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c69cdcf
commit d434229
Showing
15 changed files
with
914 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
python/packages/autogen-studio/frontend/src/components/types.ts
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
python/packages/autogen-studio/frontend/src/components/types/app.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface IStatus { | ||
message: string; | ||
status: boolean; | ||
data?: any; | ||
} |
71 changes: 71 additions & 0 deletions
71
python/packages/autogen-studio/frontend/src/components/types/datamodel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.