Skip to content

owl doesn't support for sampling? #571

@orangegei

Description

@orangegei

i use c# server request a sample to owl client, and get an Exception

ModelContextProtocol.Server.McpServerTool[1433779783]
"sample_ll_mfor_translation" threw an unhandled exception.
System.InvalidOperationException: Client does not support sampling.
at ModelContextProtocol.Server.McpServerExtensions.ThrowIfSamplingUnsupported(IMcpServer server)
at ModelContextProtocol.Server.McpServerExtensions.SampleAsync(IMcpServer server, CreateMessageRequestParams request, CancellationToken cancellationToken)
at WordMCPro.tools.document_tools.sampleLLMforTranslation(IMcpServer server, String content) in D:\dndx\intern\Csharp_code\WordMCPro\WordMCPro\tools\document_tools.cs:line 226
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunctionDescriptor.<>c__DisplayClass35_1.<b__9>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunction.InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken)
at Microsoft.Extensions.AI.AIFunctionFactory.ReflectionAIFunction.InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken)
at ModelContextProtocol.Server.AIFunctionMcpServerTool.InvokeAsync(RequestContext`1 request, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions