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
messagestringA description of why the elicitation is required.
elicitationsIEnumerable<ElicitRequestParams>One or more URL-mode elicitation requests that must complete before retrying the original request.
Exceptions
- ArgumentNullException
elicitationsis null.- ArgumentException
elicitationsis 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; }