From 63b24a4036fa6f019d48daf520b38651061bd0dc Mon Sep 17 00:00:00 2001 From: Peder Holdgaard Pedersen <127606677+PederHP@users.noreply.github.com> Date: Sun, 16 Mar 2025 04:07:45 +0100 Subject: [PATCH] Upgrade Anthropic.SDK to 4.7.1 (#86) Tweak AnthropicTools sample prompt --- .../tools/ToolsConsole/AnthropicToolsConsole.csproj | 2 +- samples/anthropic/tools/ToolsConsole/Program.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/anthropic/tools/ToolsConsole/AnthropicToolsConsole.csproj b/samples/anthropic/tools/ToolsConsole/AnthropicToolsConsole.csproj index a34ee4b..8fb37b2 100644 --- a/samples/anthropic/tools/ToolsConsole/AnthropicToolsConsole.csproj +++ b/samples/anthropic/tools/ToolsConsole/AnthropicToolsConsole.csproj @@ -8,7 +8,7 @@ - + diff --git a/samples/anthropic/tools/ToolsConsole/Program.cs b/samples/anthropic/tools/ToolsConsole/Program.cs index c24e34d..667fdf2 100644 --- a/samples/anthropic/tools/ToolsConsole/Program.cs +++ b/samples/anthropic/tools/ToolsConsole/Program.cs @@ -62,7 +62,7 @@ internal class Program var messages = new List { - new Message(RoleType.User, "Please call the echo tool with the string 'Hello MCP!' and give me the response as-is.") + new Message(RoleType.User, "Please call the echo tool with the string 'Hello MCP!' and show me the echoed response.") }; var parameters = new MessageParameters() @@ -71,9 +71,9 @@ internal class Program MaxTokens = 2048, Model = AnthropicModels.Claude35Haiku, Stream = false, - Temperature = 1.0m, + Temperature = 0.5m, Tools = anthropicTools, - System = [new SystemMessage("You will be helping the user test MCP server tool call functionality.")] + 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.")] }; // If the server provides instructions, add them as the system prompt