Add support for URL mode elicitation (#1021)
This commit is contained in:
parent
c447973972
commit
ae17ba0b4b
1 changed files with 1241 additions and 92 deletions
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the payload for the <c>URL_ELICITATION_REQUIRED</c> JSON-RPC error.
|
||||
/// </summary>
|
||||
public sealed class UrlElicitationRequiredErrorData
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the elicitations that must be completed before retrying the original request.
|
||||
/// </summary>
|
||||
[JsonPropertyName("elicitations")]
|
||||
public required IReadOnlyList<ElicitRequestParams> Elicitations { get; init; }
|
||||
}
|
||||
Loading…
Reference in a new issue