File tree Expand file tree Collapse file tree
dotnet/samples/HostedAgents/AgentWithHostedMCP Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 </ItemGroup >
3636
3737 <ItemGroup >
38- <PackageReference Include =" Azure.AI.AgentServer.AgentFramework" Version =" 1.0.0-beta.5 " />
39- <PackageReference Include =" Azure.AI.OpenAI" Version =" 2.7 .0-beta.2 " />
38+ <PackageReference Include =" Azure.AI.AgentServer.AgentFramework" Version =" 1.0.0-beta.6 " />
39+ <PackageReference Include =" Azure.AI.OpenAI" Version =" 2.8 .0-beta.1 " />
4040 <PackageReference Include =" Azure.Identity" Version =" 1.17.1" />
41- <PackageReference Include =" Microsoft.Agents.AI.OpenAI" Version =" 1.0.0-preview.251219.1" />
42- <PackageReference Include =" Microsoft.Extensions.AI.OpenAI" Version =" 10.1.1-preview.1.25612.2" />
41+ <PackageReference Include =" Microsoft.Extensions.AI.OpenAI" Version =" 10.3.0" />
4342 </ItemGroup >
4443
4544 <!-- Add analyzers with compatible versions -->
Original file line number Diff line number Diff line change 99using Azure . Identity ;
1010using Microsoft . Agents . AI ;
1111using Microsoft . Extensions . AI ;
12- using OpenAI . Responses ;
1312
1413var endpoint = Environment . GetEnvironmentVariable ( "AZURE_OPENAI_ENDPOINT" ) ?? throw new InvalidOperationException ( "AZURE_OPENAI_ENDPOINT is not set." ) ;
1514var deploymentName = Environment . GetEnvironmentVariable ( "AZURE_OPENAI_DEPLOYMENT_NAME" ) ?? "gpt-4o-mini" ;
2928 new Uri ( endpoint ) ,
3029 new DefaultAzureCredential ( ) )
3130 . GetResponsesClient ( deploymentName )
31+ . AsIChatClient ( )
3232 . CreateAIAgent (
3333 instructions : "You answer questions by searching the Microsoft Learn content only." ,
3434 name : "MicrosoftLearnAgent" ,
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ GET {{host}}/readiness
77### Simple string input - Ask about MCP Tools
88POST {{endpoint }}
99Content-Type: application/json
10+
1011{
1112 "input" : " Please summarize the Azure AI Agent documentation related to MCP Tool calling?"
1213}
1314
1415### Explicit input - Ask about Agent Framework
1516POST {{endpoint }}
1617Content-Type: application/json
18+
1719{
1820 "input" : [
1921 {
You can’t perform that action at this time.
0 commit comments