Server instructions added to IMcpClient (#17)
This commit is contained in:
parent
107c7acc8f
commit
86f1edfe38
1 changed files with 58 additions and 6 deletions
|
|
@ -69,8 +69,16 @@ internal class Program
|
|||
Model = AnthropicModels.Claude35Haiku,
|
||||
Stream = false,
|
||||
Temperature = 1.0m,
|
||||
Tools = anthropicTools
|
||||
Tools = anthropicTools,
|
||||
System = [new SystemMessage("You will be helping the user test MCP server tool call functionality.")]
|
||||
};
|
||||
|
||||
// If the server provides instructions, add them as the system prompt
|
||||
if (!string.IsNullOrEmpty(client.ServerInstructions))
|
||||
{
|
||||
parameters.System.Add(new SystemMessage(client.ServerInstructions));
|
||||
}
|
||||
|
||||
var res = await antClient.Messages.GetClaudeMessageAsync(parameters);
|
||||
|
||||
messages.Add(res.Message);
|
||||
|
|
|
|||
Loading…
Reference in a new issue