Update Microsoft.Extensions.AI version & expose JSON configuration on McpServerResourceCreateOptions (#511)
* Update Microsoft.Extensions.AI version * Update Microsoft.Extensions.AI.OpenAI * Fix failing tests; add JSON configuration options to McpServerResourceCreateOptions. * Replace temporary code with `AIFunction.ReturnJsonSchema` --------- Co-authored-by: Eirik Tsarpalis <eirik.tsarpalis@gmail.com>
This commit is contained in:
parent
1e8fb04037
commit
28d65470f4
1 changed files with 45 additions and 35 deletions
|
|
@ -5,6 +5,8 @@ using ModelContextProtocol.Server;
|
|||
using Moq;
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
|
||||
namespace ModelContextProtocol.Tests.Server;
|
||||
|
||||
|
|
@ -324,6 +326,11 @@ public class McpServerPromptTests
|
|||
{
|
||||
TransformSchemaNode = (context, node) =>
|
||||
{
|
||||
if (node.GetValueKind() is not JsonValueKind.Object)
|
||||
{
|
||||
node = new JsonObject();
|
||||
}
|
||||
|
||||
node["description"] = "1234";
|
||||
return node;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue