Skip to content

Commit f24e618

Browse files
committed
fixed the messages
1 parent b3482a3 commit f24e618

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

backend/agents/agents_framework.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
schedule_tool = ScheduleTool()
2323
budget_tool = BudgetTool()
2424

25-
members = ["Budget", "Resources", "Social_Outreach", "Volunteer_Outreach", "Schedule", "Permits"]
25+
members = ["Resources", "Social_Outreach", "Volunteer_Outreach", "Schedule", "Permits", "Budget"]
2626
options = members + ["FINISH"]
2727

2828
# Our team supervisor is an LLM node. It just picks the next agent to process

frontend/src/pages/Chatpage.tsx

+11-7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ const Chatpage = () => {
6262

6363
// Extract event details from user input
6464
const extractEventDetails = (message: string): boolean => {
65+
66+
console.log(message);
6567
switch (currentField) {
6668
case 'event':
6769
if (message.trim()) {
@@ -122,20 +124,22 @@ const Chatpage = () => {
122124
// Provide next prompt based on current field, skipping the repeated event question
123125
const getNextPrompt = () => {
124126
switch (currentField) {
125-
case 'event':
127+
// case 'event':
126128
// We've already asked for the event name in the initial message,
127129
// so just move on:
128-
return "Great! Let's move on to location...";
130+
// return "Great! Let's move on to location...";
131+
case 'event':
132+
return `Where will it be held?`;
129133
case 'location':
130-
return `Where will '${eventDetails.event}' be held?`;
134+
return `What's your budget for this event? (Please include $ symbol)`;
131135
case 'budget':
132-
return "What's your budget for this event? (Please include $ symbol)";
136+
return "how many people are you expecting at the event?";
133137
case 'num_of_people':
134-
return "How many people are you expecting at the event?";
138+
return "whats the date for your event? (Format: YYYY-MM-DD)";
135139
case 'date':
136-
return "What's the date for your event? (Format: YYYY-MM-DD)";
137-
default:
138140
return "Perfect! I have all the essential details. Would you like to review them?";
141+
default:
142+
return "Please try again?";
139143
}
140144
};
141145

0 commit comments

Comments
 (0)