Table of Contents

Method GetPromptCompletionsAsync

Namespace
LMKit.Mcp.Client
Assembly
LM-Kit.NET.dll

GetPromptCompletionsAsync(string, string, string, IDictionary<string, object>, CancellationToken)

Gets argument completion suggestions for a prompt.

public Task<McpCompletionResult> GetPromptCompletionsAsync(string promptName, string argumentName, string argumentValue, IDictionary<string, object> context = null, CancellationToken cancellationToken = default)

Parameters

promptName string

The name of the prompt to get completions for.

argumentName string

The name of the argument being completed.

argumentValue string

The current partial value of the argument.

context IDictionary<string, object>

Optional dictionary of other argument values for context.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<McpCompletionResult>

The completion result containing suggestions.

Exceptions

ObjectDisposedException

Thrown if the client has been disposed.

InvalidOperationException

Thrown if the server does not support completions.