Table of Contents

Method RefreshPromptsAsync

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

RefreshPromptsAsync(CancellationToken)

Clears the cached prompt catalog and fetches a fresh copy from the server (async).

public Task<IReadOnlyCollection<McpPrompt>> RefreshPromptsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to cancel the operation.

Returns

Task<IReadOnlyCollection<McpPrompt>>

The refreshed prompt catalog.