Skip to content

Commit 193d318

Browse files
committed
New tools and prompts to improve golden path performance
1 parent 4ab499b commit 193d318

File tree

4 files changed

+36
-9
lines changed

4 files changed

+36
-9
lines changed

data/agent_teams/marketing.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"name": "ProductAgent",
1313
"deployment_name": "gpt-4.1-mini",
1414
"icon": "",
15-
"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.",
15+
"system_message": "You are a Product agent. You have access to MCP tools which allow you to obtain knowledge about products, product management, development, and compliance guidelines. When asked to call one of these tools, you should summarize back what was done.",
1616
"description": "This agent specializes in product management, development, and related tasks. It can provide information about products, manage inventory, handle product launches, analyze sales data, and coordinate with other teams like marketing and tech support.",
1717
"use_rag": false,
1818
"use_mcp": true,
@@ -29,7 +29,7 @@
2929
"name": "MarketingAgent",
3030
"deployment_name": "gpt-4.1-mini",
3131
"icon": "",
32-
"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.",
32+
"system_message": "You are a Marketing agent. You have access to a number of HR related MCP tools for tasks like campaign development, content creation, and market analysis. You help create effective marketing campaigns, analyze market data, and develop promotional content for products and services.",
3333
"description": "This agent specializes in marketing, campaign management, and analyzing market data.",
3434
"use_rag": false,
3535
"use_mcp": true,

src/backend/common/config/app_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def __init__(self):
3333
"APPLICATIONINSIGHTS_CONNECTION_STRING"
3434
)
3535
self.APP_ENV = self._get_required("APP_ENV", "prod")
36-
self.AZURE_AI_MODEL_DEPLOYMENT_NAME = self._get_required(
37-
"AZURE_AI_MODEL_DEPLOYMENT_NAME", "gpt-4o"
38-
)
36+
# self.AZURE_AI_MODEL_DEPLOYMENT_NAME = self._get_required(
37+
# "AZURE_AI_MODEL_DEPLOYMENT_NAME", "gpt-4o"
38+
# )
3939

4040
self.AZURE_COGNITIVE_SERVICES = self._get_optional(
4141
"AZURE_COGNITIVE_SERVICES", "https://cognitiveservices.azure.com/.default"

src/backend/v3/magentic_agents/foundry_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, agent_name: str,
4040
self._bing_connection = None
4141
self.logger = logging.getLogger(__name__)
4242
# input validation
43-
if self.model_deployment_name in any(["o3", "o4-mini"]):
43+
if self.model_deployment_name in ["o3", "o4-mini"]:
4444
raise ValueError("The current version of Foundry agents do not support reasoning models.")
4545

4646
# async def _make_bing_tool(self) -> Optional[BingGroundingTool]:

src/mcp_server/services/hr_service.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
Human Resources MCP tools service.
33
"""
44

5-
from typing import Dict, Any
6-
from core.factory import MCPToolBase, Domain
5+
from typing import Any, Dict
6+
7+
from core.factory import Domain, MCPToolBase
78
from utils.date_utils import format_date_for_user
8-
from utils.formatters import format_success_response, format_error_response
9+
from utils.formatters import format_error_response, format_success_response
910

1011

1112
class HRService(MCPToolBase):
@@ -60,6 +61,32 @@ async def assign_mentor(employee_name: str, mentor_name: str = "TBD") -> str:
6061
error_message=str(e), context="assigning mentor"
6162
)
6263

64+
@mcp.tool(tags={self.domain.value})
65+
async def employee_onboarding_steps() -> str:
66+
"""Gets the total onboarding steps required for all new Contoso employees. These are the only steps needed to onboard any new employee."""
67+
onboarding_steps = """
68+
69+
## HR representative must...
70+
- initiate background check
71+
- schedule orientation session
72+
- assign a mentor
73+
- register for benefits
74+
- provide employee handbook
75+
- request ID card
76+
- set up payroll
77+
78+
## Technical Support representative must...
79+
- setup Office 365 account
80+
- configure laptop
81+
- setup VPN access
82+
- create system accounts
83+
- send welcome email
84+
85+
## No other onboarding steps are required for any employee
86+
87+
"""
88+
return f"Here are the necessary steps to onboard a new Contoso employee: {onboarding_steps}."
89+
6390
@mcp.tool(tags={self.domain.value})
6491
async def register_for_benefits(
6592
employee_name: str, benefits_package: str = "Standard"

0 commit comments

Comments
 (0)