RequireApprovalOption Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the require_approval configuration for an MCP server. Can be either a simple approval type ("never"/"always") applied to all tools, or a per-tool configuration specifying which tools always/never require approval.
public class RequireApprovalOption : System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.RequireApprovalOption>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.RequireApprovalOption>
type RequireApprovalOption = class
interface IJsonModel<RequireApprovalOption>
interface IPersistableModel<RequireApprovalOption>
Public Class RequireApprovalOption
Implements IJsonModel(Of RequireApprovalOption), IPersistableModel(Of RequireApprovalOption)
- Inheritance
-
RequireApprovalOption
- Implements
Constructors
| Name | Description |
|---|---|
| RequireApprovalOption(IList<String>, IList<String>) |
Creates a per-tool approval configuration. |
| RequireApprovalOption(McpApprovalKind) |
Creates an option that applies a single approval type to all tools. |
| RequireApprovalOption(MCPApprovalType) |
Creates an option that applies a single approval type to all tools. |
Properties
| Name | Description |
|---|---|
| AlwaysRequireApproval |
List of tool names that always require approval. Used in the per-tool approval configuration. |
| ApprovalType |
The approval type applied to all tools (e.g. "never" or "always"). |
| NeverRequireApproval |
List of tool names that never require approval. Used in the per-tool approval configuration. |
Operators
| Name | Description |
|---|---|
| Implicit(McpApprovalKind to RequireApprovalOption) |
Implicitly converts an McpApprovalKind to a RequireApprovalOption. |
| Implicit(MCPApprovalType to RequireApprovalOption) |
Implicitly converts an MCPApprovalType to a RequireApprovalOption. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<RequireApprovalOption>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<RequireApprovalOption>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<RequireApprovalOption>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<RequireApprovalOption>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<RequireApprovalOption>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |