Search Results for

    Show / Hide Table of Contents

    Class McpApprovalResponse

    A response to an MCP approval request.
    User > Model

    Inheritance
    object
    ConversationItem
    McpApprovalResponse
    Implements
    IPrompt
    IValidatable
    IHasId<string>
    Inherited Members
    ConversationItem.Id
    ConversationItem.Type
    ConversationItem.Status
    ConversationItem.GetPromptText()
    ConversationItem.IsValid()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class McpApprovalResponse : ConversationItem, IPrompt, IValidatable, IHasId<string>

    Constructors

    | Edit this page View Source

    McpApprovalResponse()

    Declaration
    public McpApprovalResponse()

    Properties

    | Edit this page View Source

    ApprovalRequestId

    The ID of the approval request being answered.

    Declaration
    [JsonProperty("approval_request_id")]
    public string ApprovalRequestId { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Approve

    Whether the request was approved.

    Declaration
    [JsonProperty("approve")]
    public bool Approve { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Reason

    Optional reason for the decision.

    Declaration
    [JsonProperty("reason")]
    public string Reason { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    Validate()

    Validates the object's parameters and throws if invalid.

    Declaration
    public override void Validate()
    Overrides
    ConversationItem.Validate()

    Implements

    IPrompt
    IValidatable
    IHasId<TId>

    Extension Methods

    UnifiedApiCallerExtensions.GENResponse(ConversationItem)
    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    CoreLibTypeExtensions.GetIdOrNull(IHasId<string>)
    CoreLibTypeExtensions.IsNullOrEmptyId(IHasId<string>)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation