Skip to content

Commit 21a3a27

Browse files
Roopan-MicrosoftPrashant-MicrosoftKiran-Siluveru-MicrosoftMohan-MicrosoftHarmanpreet-Microsoft
authored
fix: Merging hotfix changes into main branch (microsoft#61)
* fix: ui changes (microsoft#1) * fix: in progress status color after fetch task details (microsoft#5) * cancel notification message updated (microsoft#7) * Update task.js (microsoft#9) * Stages overflow issue fix (microsoft#10) * fix: added space to the agent (microsoft#13) * Approve reject buttons titles disabling buttons and (microsoft#15) * Fix: UX becomes damaged when chat outputs sample code for a task (microsoft#14) * task page UI updates * UI updated code for task * Task page UI updated code * status section UI update in task page * Added custom event (microsoft#24) * feat: added custom event * Logs updated * modify code * added exception logs * added exception logs for cosmos memory --------- Co-authored-by: Roopan P M <[email protected]> * fix: task with zero stages cannot show the page, spins forever and rai test prompt (microsoft#41) * Updated the workflow for build and push docker * updated the repo name * Update requirements.txt * Update requirements.txt * Update requirements.txt * feat: Integrated application insights instrumentation key into the bicep file (microsoft#42) * feat: Integrated application insights instrumentation key into bicep files * added application insights instrumentation key into env and readme file * updated json file * upgraded json file * Update docker-build-and-push.yml * Update docker-build-and-push.yml * Update docker-build-and-push.yml * Update docker-build-and-push.yml * Update docker-build-and-push.yml * Update docker-build-and-push.yml * pyLint issues fixed * lint issues fixed --------- Co-authored-by: Roopan-Microsoft <[email protected]> Co-authored-by: Roopan P M <[email protected]> * Update test.yml (microsoft#43) * Disabling Text Area functionality (microsoft#47) * fix: Usability and Alignments changes (microsoft#48) * Name update and padding removed * fix home page padding and cards height * remove gap in tasks section * Update docker-build-and-push.yml to debug * Update docker-build-and-push.yml * Update docker-build-and-push.yml to take the correct event name * Update docker-build-and-push.yml * fix: text area background color (microsoft#50) * fix: text area background color * Cursor hover style and Light dark color updated * feat: customize track events (microsoft#54) * feat: customized track event * pylint fix * pylint fix * fix: added config variable (microsoft#59) * fix: added config variable * pylint fix * Title updated (microsoft#60) * fix: operation id field of custom events showing as zero on the server (microsoft#49) * fix: operation id issue on server * lint issue fixed --------- Co-authored-by: Roopan-Microsoft <[email protected]> Co-authored-by: Roopan P M <[email protected]> --------- Co-authored-by: Prashant-Microsoft <[email protected]> Co-authored-by: Kiran-Siluveru-Microsoft <[email protected]> Co-authored-by: Mohan-Microsoft <[email protected]> Co-authored-by: Harmanpreet-Microsoft <[email protected]>
1 parent 217ff8a commit 21a3a27

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

TRANSPARENCY_FAQS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Multi-Agent: Custom Automation Engine – Solution Accelerator : Responsible AI FAQ
1+
# Multi-Agent-Custom-Automation-Engine – Solution Accelerator : Responsible AI FAQ
22

33
## What is the Multi Agent: Custom Automation Engine – Solution Accelerator?
44
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.

src/backend/.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ COSMOSDB_DATABASE=autogen
33
COSMOSDB_CONTAINER=memory
44

55
AZURE_OPENAI_ENDPOINT=
6+
AZURE_OPENAI_MODEL_NAME=gpt-4o
67
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
78
AZURE_OPENAI_API_VERSION=2024-08-01-preview
89
APPLICATIONINSIGHTS_INSTRUMENTATION_KEY=

src/backend/agents/group_chat_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ async def _execute_step(self, session_id: str, step: Step):
305305
)
306306

307307
track_event_if_configured(
308-
f"Group Chat Manager - Requesting {step.agent.value.title()} to perform the action and added into the cosmos",
308+
f"Group Chat Manager - Requesting {formatted_agent} to perform the action and added into the cosmos",
309309
{
310310
"session_id": session_id,
311311
"user_id": self._user_id,
312312
"plan_id": step.plan_id,
313-
"content": f"Requesting {step.agent.value.title()} to perform action: {step.action}",
313+
"content": f"Requesting {formatted_agent} to perform action: {step.action}",
314314
"source": "GroupChatManager",
315315
"step_id": step.id,
316316
},

src/backend/app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from event_utils import track_event_if_configured
2424
from fastapi.middleware.cors import CORSMiddleware
2525
from azure.monitor.opentelemetry import configure_azure_monitor
26+
from opentelemetry.instrumentation.fastapi import FastAPIInstrumentor
2627

2728

2829
# Check if the Application Insights Instrumentation Key is set in the environment variables
@@ -52,6 +53,8 @@
5253
# Initialize the FastAPI app
5354
app = FastAPI()
5455

56+
FastAPIInstrumentor.instrument_app(app)
57+
5558
frontend_url = Config.FRONTEND_SITE_NAME
5659

5760
# Add this near the top of your app.py, after initializing the app

src/backend/config.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Config:
3737
COSMOSDB_CONTAINER = GetRequiredConfig("COSMOSDB_CONTAINER")
3838

3939
AZURE_OPENAI_DEPLOYMENT_NAME = GetRequiredConfig("AZURE_OPENAI_DEPLOYMENT_NAME")
40+
AZURE_OPENAI_MODEL_NAME = GetOptionalConfig("AZURE_OPENAI_MODEL_NAME", default=AZURE_OPENAI_DEPLOYMENT_NAME)
4041
AZURE_OPENAI_API_VERSION = GetRequiredConfig("AZURE_OPENAI_API_VERSION")
4142
AZURE_OPENAI_ENDPOINT = GetRequiredConfig("AZURE_OPENAI_ENDPOINT")
4243
AZURE_OPENAI_API_KEY = GetOptionalConfig("AZURE_OPENAI_API_KEY")
@@ -89,7 +90,8 @@ def GetAzureOpenAIChatCompletionClient(model_capabilities):
8990
if Config.AZURE_OPENAI_API_KEY == "":
9091
# Use DefaultAzureCredential for auth
9192
Config.__aoai_chatCompletionClient = AzureOpenAIChatCompletionClient(
92-
model=Config.AZURE_OPENAI_DEPLOYMENT_NAME,
93+
model=Config.AZURE_OPENAI_MODEL_NAME,
94+
azure_deployment=Config.AZURE_OPENAI_DEPLOYMENT_NAME,
9395
api_version=Config.AZURE_OPENAI_API_VERSION,
9496
azure_endpoint=Config.AZURE_OPENAI_ENDPOINT,
9597
azure_ad_token_provider=Config.GetTokenProvider(
@@ -101,7 +103,8 @@ def GetAzureOpenAIChatCompletionClient(model_capabilities):
101103
else:
102104
# Fallback behavior to use API key
103105
Config.__aoai_chatCompletionClient = AzureOpenAIChatCompletionClient(
104-
model=Config.AZURE_OPENAI_DEPLOYMENT_NAME,
106+
model=Config.AZURE_OPENAI_MODEL_NAME,
107+
azure_deployment=Config.AZURE_OPENAI_DEPLOYMENT_NAME,
105108
api_version=Config.AZURE_OPENAI_API_VERSION,
106109
azure_endpoint=Config.AZURE_OPENAI_ENDPOINT,
107110
api_key=Config.AZURE_OPENAI_API_KEY,

src/frontend/wwwroot/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<aside class="menu mx-3 mt-5">
1818
<strong id="goHomeButton" class="menu-logo is-flex is-align-items-center">
1919
<img class="mr-3" src="../assets/app-logo.svg">
20-
<span>Multi-Agent: Custom Automation Engine</span>
20+
<span>Multi-Agent-Custom-Automation-Engine</span>
2121
</strong>
2222
<button id="newTaskButton" class="button is-fullwidth my-6">New task</button>
2323
<p class="menu-label">My tasks</p>

0 commit comments

Comments
 (0)