Skip to content

Commit 0978b29

Browse files
elbrunoCopilot
andcommitted
Fix broken C# projects and clean up ghost folders
- AgentLabs-02-Functions: disambiguate SubmitToolOutputsToRunAsync call - MCP-02-HuggingFace-Ollama: add Microsoft.Extensions.AI + IChatClient cast - AgentFx-MultiAgents: update MEAI.Abstractions 10.1.1 to 10.3.0 - HFMCP.GenImage.Web: update System.ClientModel 1.7.0 to 1.8.1 - HFMCP.GenImage.ApiService: downgrade OpenApi 10.0.0 to 9.0.4 (net9.0) - Remove 7 ghost folders with only bin/obj artifacts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 38da559 commit 0978b29

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

samples/AgentFx/AgentFx-MultiAgents/AgentFx-MultiAgents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="Microsoft.Agents.AI.Workflows" Version="1.0.0-preview.260108.1" />
2020

2121
<PackageReference Include="Microsoft.Extensions.AI" Version="10.3.0" />
22-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.1.1" />
22+
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.3.0" />
2323
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="10.3.0" />
2424

2525
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="10.0.3" />

samples/AppsWithGenAI/HFMCP.GenImage/HFMCP.GenImage.ApiService/HFMCP.GenImage.ApiService.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
14+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
1515
</ItemGroup>
1616

1717
</Project>

samples/AppsWithGenAI/HFMCP.GenImage/HFMCP.GenImage.Web/HFMCP.GenImage.Web.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageReference Include="Microsoft.Extensions.AI" Version="10.3.0" />
1515
<PackageReference Include="Azure.AI.OpenAI" Version="2.8.0-beta.1" />
1616
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="10.3.0" />
17-
<PackageReference Include="System.ClientModel" Version="1.7.0" />
17+
<PackageReference Include="System.ClientModel" Version="1.8.1" />
1818
<PackageReference Include="ModelContextProtocol" Version="0.4.0-preview.3" />
1919
<PackageReference Include="ModelContextProtocol.Core" Version="0.4.0-preview.3" />
2020
</ItemGroup>

samples/CoreSamples/AgentLabs-02-Functions/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
{
7575
toolOutputs.Add(GetResolvedToolOutput(toolCall));
7676
}
77-
runResponse = await persistentClient.Runs.SubmitToolOutputsToRunAsync(runResponse, toolOutputs);
77+
runResponse = await persistentClient.Runs.SubmitToolOutputsToRunAsync(runResponse, toolOutputs, cancellationToken: default);
7878
}
7979
}
8080
while (runResponse.Value.Status == RunStatus.Queued

samples/CoreSamples/MCP-02-HuggingFace-Ollama/MCP-02-HuggingFace-Ollama.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.1.1" />
12+
<PackageReference Include="Microsoft.Extensions.AI" Version="10.3.0" />
1313
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.1" />
1414
<PackageReference Include="ModelContextProtocol" Version="0.4.0-preview.3" />
1515
<PackageReference Include="ModelContextProtocol.Core" Version="0.4.0-preview.3" />

samples/CoreSamples/MCP-02-HuggingFace-Ollama/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
// create an IChatClient using the MCP tools
4343
var uri = new Uri("http://localhost:11434");
44-
var client = new OllamaApiClient(uri, deploymentName)
44+
var client = ((IChatClient)new OllamaApiClient(uri, deploymentName))
4545
.AsBuilder()
4646
.UseFunctionInvocation()
4747
.Build();

0 commit comments

Comments
 (0)