Skip to content

Commit b97e3c5

Browse files
committed
Refactor frontend to use .tsx extensions and update paths
Renamed several frontend files from .ts to .tsx for consistency and future React component support. Moved RAIErrorCard.css to styles directory and updated import path. Added deployment_name field to agent definitions in default_team.json. Added a console.log for formData in TeamService for debugging.
1 parent 47b4519 commit b97e3c5

File tree

8 files changed

+7
-2
lines changed

8 files changed

+7
-2
lines changed

data/agent_teams/default_team.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"input_key": "hr-agent-001",
1111
"type": "HR",
1212
"name": "HR Specialist",
13+
"deployment_name": "gpt-4o",
1314
"system_message": "You are an AI Agent. You have knowledge about HR (e.g., human resources), policies, procedures, and onboarding guidelines.",
1415
"description": "Handles employee onboarding, HR policies, and human resources management tasks.",
1516
"icon": "Person",
@@ -19,6 +20,7 @@
1920
"input_key": "tech-support-001",
2021
"type": "TechSupport",
2122
"name": "Tech Support Specialist",
23+
"deployment_name": "gpt-4o",
2224
"system_message": "You are a Product agent. You have knowledge about product management, development, and compliance guidelines. When asked to call a function, you should summarize back what was done.",
2325
"description": "Provides technical support for mobile plans, telecommunications, and IT services.",
2426
"icon": "Phone",
@@ -28,6 +30,7 @@
2830
"input_key": "procurement-001",
2931
"type": "Procurement",
3032
"name": "Procurement Specialist",
33+
"deployment_name": "gpt-4o",
3134
"system_message": "You are a Procurement agent. You specialize in purchasing, vendor management, supply chain operations, and inventory control. You help with creating purchase orders, managing vendors, tracking orders, and ensuring efficient procurement processes.",
3235
"description": "Manages purchasing decisions, add-ons, and procurement processes.",
3336
"icon": "ShoppingBag",
@@ -37,6 +40,7 @@
3740
"input_key": "marketing-001",
3841
"type": "Marketing",
3942
"name": "Marketing Specialist",
43+
"deployment_name": "gpt-4o",
4044
"system_message": "You are a Marketing agent. You specialize in marketing strategy, campaign development, content creation, and market analysis. You help create effective marketing campaigns, analyze market data, and develop promotional content for products and services.",
4145
"description": "Creates marketing content, press releases, and promotional materials.",
4246
"icon": "DocumentEdit",
@@ -46,6 +50,7 @@
4650
"input_key": "generic-001",
4751
"type": "Generic",
4852
"name": "General Assistant",
53+
"deployment_name": "gpt-4o",
4954
"system_message": "You are a Generic agent that can help with general questions and provide basic information. You can search for information and perform simple calculations.",
5055
"description": "Provides general assistance and handles miscellaneous tasks that don't require specialized expertise.",
5156
"icon": "Bot",

src/frontend/src/components/errors/RAIErrorCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Lightbulb20Regular,
1111
Dismiss20Regular
1212
} from '@fluentui/react-icons';
13-
import './RAIErrorCard.css';
13+
import '../../styles/RAIErrorCard.css';
1414

1515
export interface RAIErrorData {
1616
error_type: string;
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class TeamService {
3737
try {
3838
const formData = new FormData();
3939
formData.append('file', teamFile);
40-
40+
console.log(formData);
4141
const response = await apiClient.upload('/v3/upload_team_config', formData);
4242

4343
return {
File renamed without changes.

0 commit comments

Comments
 (0)