Upgrade Anthropic.SDK to 4.7.1 (#86)
Tweak AnthropicTools sample prompt
This commit is contained in:
parent
7bf450e443
commit
63b24a4036
2 changed files with 4 additions and 4 deletions
|
|
@ -8,7 +8,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Anthropic.SDK" Version="4.4.3" />
|
||||
<PackageReference Include="Anthropic.SDK" Version="4.7.1" />
|
||||
<PackageReference Include="System.Linq.AsyncEnumerable" Version="10.0.0-preview.1.25080.5" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ internal class Program
|
|||
|
||||
var messages = new List<Message>
|
||||
{
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue