Table of Contents

Class MCPApprovalRequest

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

Constructors

MCPApprovalRequest()

public MCPApprovalRequest()

MCPApprovalRequest(string, string, string)

public MCPApprovalRequest(string name, string arguments = null, string serverLabel = null)

Parameters

name string
arguments string
serverLabel string

Properties

Arguments

A JSON string of arguments for the tool.

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

Property Value

string

Id

The unique ID of this response item.

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

Property Value

string

Name

The name of the tool to run.

[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; }

Property Value

string

Object

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

Property Value

string

ServerLabel

The label of the MCP server making the request.

[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("server_label")]
public string ServerLabel { 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