Skip to content

Commit 63b24a4

Browse files
authored
Upgrade Anthropic.SDK to 4.7.1 (#86)
Tweak AnthropicTools sample prompt
1 parent 7bf450e commit 63b24a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/anthropic/tools/ToolsConsole/AnthropicToolsConsole.csproj

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

1010
<ItemGroup>
11-
<PackageReference Include="Anthropic.SDK" Version="4.4.3" />
11+
<PackageReference Include="Anthropic.SDK" Version="4.7.1" />
1212
<PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.0-preview.1.25080.5" />
1313
</ItemGroup>
1414

samples/anthropic/tools/ToolsConsole/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private static async Task Main(string[] args)
6262

6363
var messages = new List<Message>
6464
{
65-
new Message(RoleType.User, "Please call the echo tool with the string 'Hello MCP!' and give me the response as-is.")
65+
new Message(RoleType.User, "Please call the echo tool with the string 'Hello MCP!' and show me the echoed response.")
6666
};
6767

6868
var parameters = new MessageParameters()
@@ -71,9 +71,9 @@ private static async Task Main(string[] args)
7171
MaxTokens = 2048,
7272
Model = AnthropicModels.Claude35Haiku,
7373
Stream = false,
74-
Temperature = 1.0m,
74+
Temperature = 0.5m,
7575
Tools = anthropicTools,
76-
System = [new SystemMessage("You will be helping the user test MCP server tool call functionality.")]
76+
System = [new SystemMessage("You will be helping the user test MCP server tool call functionality. Remember that the user cannot see your tool calls or tool results.")]
7777
};
7878

7979
// If the server provides instructions, add them as the system prompt

0 commit comments

Comments
 (0)