Update Anthropic SDK to 12.2.0 (#1164)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com> Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
This commit is contained in:
parent
c9eddc9227
commit
eca882e48c
2 changed files with 2 additions and 2 deletions
|
|
@ -60,7 +60,7 @@
|
|||
|
||||
<!-- Testing dependencies -->
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="Anthropic" Version="12.1.0" />
|
||||
<PackageVersion Include="Anthropic" Version="12.2.0" />
|
||||
<PackageVersion Include="coverlet.collector" Version="6.0.4">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ foreach (var tool in tools)
|
|||
Console.WriteLine($"Connected to server with tools: {tool.Name}");
|
||||
}
|
||||
|
||||
using var anthropicClient = new AnthropicClient(new() { APIKey = builder.Configuration["ANTHROPIC_API_KEY"] })
|
||||
using var anthropicClient = new AnthropicClient(new() { ApiKey = builder.Configuration["ANTHROPIC_API_KEY"] })
|
||||
.AsIChatClient("claude-haiku-4-5-20251001")
|
||||
.AsBuilder()
|
||||
.UseFunctionInvocation()
|
||||
|
|
|
|||
Loading…
Reference in a new issue