ea4all-gradio-agents-mcp-hackathon-ui-retrofit
Browse files- ea4all/ea4all_mcp.py +9 -13
ea4all/ea4all_mcp.py
CHANGED
@@ -51,13 +51,12 @@ config = RunnableConfig(
|
|
51 |
#ea4all-qna-agent-conversational-with-memory
|
52 |
async def run_qna_agentic_system(prompt: str, chat_memory: list, request:gr.Request) -> AsyncGenerator[list, None]:
|
53 |
"""
|
54 |
-
|
55 |
-
|
56 |
Args:
|
57 |
prompt (str): The user's question or message.
|
58 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
59 |
request (gr.Request): The Gradio request object for user identification.
|
60 |
-
|
61 |
Returns:
|
62 |
list: Response to user's question.
|
63 |
"""
|
@@ -165,13 +164,12 @@ async def run_qna_agentic_system(prompt: str, chat_memory: list, request:gr.Requ
|
|
165 |
#Trigger Solution Architecture Diagram QnA
|
166 |
async def run_vqa_agentic_system(message: dict, chat_memory: list, request:gr.Request) -> AsyncGenerator[list, None]:
|
167 |
"""
|
168 |
-
|
169 |
-
|
170 |
Args:
|
171 |
message (dict): Contains 'files' (list of file paths) and 'text' (user's question).
|
172 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
173 |
request (gr.Request): The Gradio request object for user identification.
|
174 |
-
|
175 |
Returns:
|
176 |
list: Response to user's question.
|
177 |
"""
|
@@ -239,12 +237,11 @@ async def run_vqa_agentic_system(message: dict, chat_memory: list, request:gr.Re
|
|
239 |
#Run Togaf Agentic System
|
240 |
async def run_reference_architecture_agentic_system(business_query: str, request:gr.Request) -> AsyncGenerator[list, None]:
|
241 |
"""
|
242 |
-
|
243 |
-
|
244 |
Args:
|
245 |
business_query (str): The business requirement or query provided by the user.
|
246 |
request (gr.Request): The Gradio request object for user identification.
|
247 |
-
|
248 |
Returns:
|
249 |
list: Response to user's question.
|
250 |
"""
|
@@ -314,13 +311,12 @@ async def run_reference_architecture_agentic_system(business_query: str, request
|
|
314 |
|
315 |
async def run_pmo_agentic_system(prompt, chat_memory):
|
316 |
"""
|
317 |
-
|
318 |
-
|
319 |
Args:
|
320 |
prompt (str): The user's question about project portfolio or resource management.
|
321 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
322 |
-
|
323 |
-
Yields:
|
324 |
list: Updated chat memory after each event or response.
|
325 |
"""
|
326 |
|
|
|
51 |
#ea4all-qna-agent-conversational-with-memory
|
52 |
async def run_qna_agentic_system(prompt: str, chat_memory: list, request:gr.Request) -> AsyncGenerator[list, None]:
|
53 |
"""
|
54 |
+
description:
|
55 |
+
Handles conversational Q&A for the Application Landscape using an agentic system.
|
56 |
Args:
|
57 |
prompt (str): The user's question or message.
|
58 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
59 |
request (gr.Request): The Gradio request object for user identification.
|
|
|
60 |
Returns:
|
61 |
list: Response to user's question.
|
62 |
"""
|
|
|
164 |
#Trigger Solution Architecture Diagram QnA
|
165 |
async def run_vqa_agentic_system(message: dict, chat_memory: list, request:gr.Request) -> AsyncGenerator[list, None]:
|
166 |
"""
|
167 |
+
description:
|
168 |
+
Handles Visual Question Answering (VQA) for uploaded architecture diagrams.
|
169 |
Args:
|
170 |
message (dict): Contains 'files' (list of file paths) and 'text' (user's question).
|
171 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
172 |
request (gr.Request): The Gradio request object for user identification.
|
|
|
173 |
Returns:
|
174 |
list: Response to user's question.
|
175 |
"""
|
|
|
237 |
#Run Togaf Agentic System
|
238 |
async def run_reference_architecture_agentic_system(business_query: str, request:gr.Request) -> AsyncGenerator[list, None]:
|
239 |
"""
|
240 |
+
description:
|
241 |
+
Generates a reference architecture blueprint based on a business requirement using the TOGAF agentic system.
|
242 |
Args:
|
243 |
business_query (str): The business requirement or query provided by the user.
|
244 |
request (gr.Request): The Gradio request object for user identification.
|
|
|
245 |
Returns:
|
246 |
list: Response to user's question.
|
247 |
"""
|
|
|
311 |
|
312 |
async def run_pmo_agentic_system(prompt, chat_memory):
|
313 |
"""
|
314 |
+
description:
|
315 |
+
Answers questions about Project Portfolio Management and Architect Demand Management.
|
316 |
Args:
|
317 |
prompt (str): The user's question about project portfolio or resource management.
|
318 |
chat_memory (list): The conversation history as a list of ChatMessage objects.
|
319 |
+
Returns:
|
|
|
320 |
list: Updated chat memory after each event or response.
|
321 |
"""
|
322 |
|