Table of Contents

Class MCPApprovalResponse

Namespace
OpenAI.Responses
Assembly
OpenAI-DotNet.dll
public sealed class MCPApprovalResponse : BaseResponse, IResponseItem, IServerSentEvent, IListItem
Inheritance
MCPApprovalResponse
Implements
Inherited Members

Properties

ApprovalRequestId

[JsonInclude]
[JsonPropertyName("approval_request_id")]
public string ApprovalRequestId { get; }

Property Value

string

Approve

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("approve")]
public bool Approve { get; }

Property Value

bool

Id

The unique ID of this response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("id")]
public string Id { get; }

Property Value

string

Object

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("object")]
public string Object { get; }

Property Value

string

Reason

Optional reason for the decision.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("reason")]
public string Reason { get; }

Property Value

string

Status

The status of the response item.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("status")]
public ResponseStatus Status { get; }

Property Value

ResponseStatus

Type

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ResponseItemType Type { get; }

Property Value

ResponseItemType