Add tools support to sampling (#976)
This commit is contained in:
parent
ad86b53347
commit
15139cc569
1 changed files with 1623 additions and 425 deletions
|
|
@ -73,10 +73,10 @@ public class McpClientCreationTests
|
|||
RootsHandler = async (t, r) => new ListRootsResult { Roots = [] },
|
||||
SamplingHandler = async (c, p, t) => new CreateMessageResult
|
||||
{
|
||||
Content = new TextContentBlock { Text = "result" },
|
||||
Content = [new TextContentBlock { Text = "result" }],
|
||||
Model = "test-model",
|
||||
Role = Role.User,
|
||||
StopReason = "endTurn"
|
||||
StopReason = "endTurn",
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue