diff --git a/TRANSPARENCY_FAQS.md b/TRANSPARENCY_FAQS.md index 3469f525..71e2a2e6 100644 --- a/TRANSPARENCY_FAQS.md +++ b/TRANSPARENCY_FAQS.md @@ -1,4 +1,4 @@ -# Multi-Agent: Custom Automation Engine – Solution Accelerator : Responsible AI FAQ +# Multi-Agent-Custom-Automation-Engine – Solution Accelerator : Responsible AI FAQ ## What is the Multi Agent: Custom Automation Engine – Solution Accelerator? Multi Agent: Custom Automation Engine – Solution Accelerator is an open-source GitHub Repository that enables users to solve complex tasks using multiple agents. The accelerator is designed to be generic across business tasks. The user enters a task and a planning LLM formulates a plan to complete that task. The system then dynamically generates agents which can complete the task. The system also allows the user to create actions that agents can take (for example sending emails or scheduling orientation sessions for new employees). These actions are taken into account by the planner and dynamically created agents may be empowered to take these actions. diff --git a/src/backend/.env.sample b/src/backend/.env.sample index 6179939f..64102ab7 100644 --- a/src/backend/.env.sample +++ b/src/backend/.env.sample @@ -3,6 +3,7 @@ COSMOSDB_DATABASE=autogen COSMOSDB_CONTAINER=memory AZURE_OPENAI_ENDPOINT= +AZURE_OPENAI_MODEL_NAME=gpt-4o AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o AZURE_OPENAI_API_VERSION=2024-08-01-preview APPLICATIONINSIGHTS_INSTRUMENTATION_KEY= diff --git a/src/backend/agents/group_chat_manager.py b/src/backend/agents/group_chat_manager.py index 101b643f..3591f0ef 100644 --- a/src/backend/agents/group_chat_manager.py +++ b/src/backend/agents/group_chat_manager.py @@ -305,12 +305,12 @@ async def _execute_step(self, session_id: str, step: Step): ) track_event_if_configured( - f"Group Chat Manager - Requesting {step.agent.value.title()} to perform the action and added into the cosmos", + f"Group Chat Manager - Requesting {formatted_agent} to perform the action and added into the cosmos", { "session_id": session_id, "user_id": self._user_id, "plan_id": step.plan_id, - "content": f"Requesting {step.agent.value.title()} to perform action: {step.action}", + "content": f"Requesting {formatted_agent} to perform action: {step.action}", "source": "GroupChatManager", "step_id": step.id, }, diff --git a/src/backend/app.py b/src/backend/app.py index bcde79b2..1e96822d 100644 --- a/src/backend/app.py +++ b/src/backend/app.py @@ -23,6 +23,7 @@ from event_utils import track_event_if_configured from fastapi.middleware.cors import CORSMiddleware from azure.monitor.opentelemetry import configure_azure_monitor +from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor # Check if the Application Insights Instrumentation Key is set in the environment variables @@ -52,6 +53,8 @@ # Initialize the FastAPI app app = FastAPI() +FastAPIInstrumentor.instrument_app(app) + frontend_url = Config.FRONTEND_SITE_NAME # Add this near the top of your app.py, after initializing the app diff --git a/src/backend/config.py b/src/backend/config.py index 35b71227..217c0120 100644 --- a/src/backend/config.py +++ b/src/backend/config.py @@ -37,6 +37,7 @@ class Config: COSMOSDB_CONTAINER = GetRequiredConfig("COSMOSDB_CONTAINER") AZURE_OPENAI_DEPLOYMENT_NAME = GetRequiredConfig("AZURE_OPENAI_DEPLOYMENT_NAME") + AZURE_OPENAI_MODEL_NAME = GetOptionalConfig("AZURE_OPENAI_MODEL_NAME", default=AZURE_OPENAI_DEPLOYMENT_NAME) AZURE_OPENAI_API_VERSION = GetRequiredConfig("AZURE_OPENAI_API_VERSION") AZURE_OPENAI_ENDPOINT = GetRequiredConfig("AZURE_OPENAI_ENDPOINT") AZURE_OPENAI_API_KEY = GetOptionalConfig("AZURE_OPENAI_API_KEY") @@ -89,7 +90,8 @@ def GetAzureOpenAIChatCompletionClient(model_capabilities): if Config.AZURE_OPENAI_API_KEY == "": # Use DefaultAzureCredential for auth Config.__aoai_chatCompletionClient = AzureOpenAIChatCompletionClient( - model=Config.AZURE_OPENAI_DEPLOYMENT_NAME, + model=Config.AZURE_OPENAI_MODEL_NAME, + azure_deployment=Config.AZURE_OPENAI_DEPLOYMENT_NAME, api_version=Config.AZURE_OPENAI_API_VERSION, azure_endpoint=Config.AZURE_OPENAI_ENDPOINT, azure_ad_token_provider=Config.GetTokenProvider( @@ -101,7 +103,8 @@ def GetAzureOpenAIChatCompletionClient(model_capabilities): else: # Fallback behavior to use API key Config.__aoai_chatCompletionClient = AzureOpenAIChatCompletionClient( - model=Config.AZURE_OPENAI_DEPLOYMENT_NAME, + model=Config.AZURE_OPENAI_MODEL_NAME, + azure_deployment=Config.AZURE_OPENAI_DEPLOYMENT_NAME, api_version=Config.AZURE_OPENAI_API_VERSION, azure_endpoint=Config.AZURE_OPENAI_ENDPOINT, api_key=Config.AZURE_OPENAI_API_KEY, diff --git a/src/frontend/wwwroot/app.html b/src/frontend/wwwroot/app.html index ab59ddef..43615c5c 100644 --- a/src/frontend/wwwroot/app.html +++ b/src/frontend/wwwroot/app.html @@ -17,7 +17,7 @@