Table of Contents

Class UrlElicitationRequiredException

Namespace
ModelContextProtocol
Assembly
ModelContextProtocol.Core.dll

Represents an exception used to indicate that URL-mode elicitation must be completed before the request can proceed.

public sealed class UrlElicitationRequiredException : McpProtocolException, ISerializable
Inheritance
UrlElicitationRequiredException
Implements
Inherited Members

Constructors

UrlElicitationRequiredException(string, IEnumerable<ElicitRequestParams>)

Initializes a new instance of the UrlElicitationRequiredException class with the specified message and pending elicitations.

public UrlElicitationRequiredException(string message, IEnumerable<ElicitRequestParams> elicitations)

Parameters

message string

A description of why the elicitation is required.

elicitations IEnumerable<ElicitRequestParams>

One or more URL-mode elicitation requests that must complete before retrying the original request.

Exceptions

ArgumentNullException

elicitations is null.

ArgumentException

elicitations is empty or contains invalid elicitations.

Properties

Elicitations

Gets the collection of pending URL-mode elicitation requests that must be completed.

public IReadOnlyList<ElicitRequestParams> Elicitations { get; }

Property Value

IReadOnlyList<ElicitRequestParams>