Skip to content

Commit 0e5cdda

Browse files
committed
update the api
1 parent d789e2d commit 0e5cdda

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

src/backend/ai-agent-api/Agents/TechSupportAgentConfig.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ public TechSupportAgentConfig()
66
: base("TechSupportAgent")
77
{
88
}
9+
10+
public override string GetAgentDisplayName()
11+
{
12+
return "Technical Support Agent";
13+
}
14+
15+
public override string GetDescription()
16+
{
17+
return "This agent provides IT and technical support for the company. " +
18+
"It assists users with troubleshooting, technical queries, and problem resolution. " +
19+
"The agent utilizes the `TechSupportTools` to effectively address and resolve technical issues.";
20+
}
21+
22+
public override string GetSystemMessage()
23+
{
24+
return "You are a technical support agent. " +
25+
"Your role is to assist users with IT and technical issues, providing solutions and troubleshooting steps. " +
26+
"Use the tools available to you to resolve problems efficiently.";
27+
}
928
}
1029
}
1130

src/backend/ai-agent-api/Services/AzureAIAgentService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ private async Task<AzureAIAgent> GetOrCreateAgentAsync(string agentName, string?
169169
_logger.LogInformation("Agent ready for use. agentId: {AgentId}", agentDefinition.Id);
170170
return agent;
171171
}
172-
173-
private static async Task InvokeAgent(string userPrompt, AzureAIAgent agent, AzureAIAgentThread agentThread, ILogger logger)
172+
173+
private async Task InvokeAgent(string userPrompt, AzureAIAgent agent, AzureAIAgentThread agentThread, ILogger logger)
174174
{
175175
logger.LogInformation("Invoking agent for threadId: {ThreadId}", agentThread.Id);
176176
var userMessage = new ChatMessageContent(AuthorRole.User, userPrompt);
@@ -195,5 +195,5 @@ private static async Task InvokeAgent(string userPrompt, AzureAIAgent agent, Azu
195195
logger.LogInformation("Agent invocation completed for threadId: {ThreadId}", agentThread.Id);
196196
}
197197

198-
}
198+
}
199199
}

0 commit comments

Comments
 (0)