Class ResponseOutputItem.McpApprovalRequest
-
- All Implemented Interfaces:
public final class ResponseOutputItem.McpApprovalRequest
A request for human approval of a tool invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseOutputItem.McpApprovalRequest.Builder
A builder for McpApprovalRequest.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the approval request. final String
arguments()
A JSON string of arguments for the tool. final String
name()
The name of the tool to run. final String
serverLabel()
The label of the MCP server making the request. final JsonValue
_type()
The type of the item. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<String>
_arguments()
Returns the raw JSON value of arguments. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<String>
_serverLabel()
Returns the raw JSON value of serverLabel. final Map<String, JsonValue>
_additionalProperties()
final ResponseOutputItem.McpApprovalRequest.Builder
toBuilder()
final ResponseOutputItem.McpApprovalRequest
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseOutputItem.McpApprovalRequest.Builder
builder()
Returns a mutable builder for constructing an instance of McpApprovalRequest. -
-
Method Detail
-
serverLabel
final String serverLabel()
The label of the MCP server making the request.
-
_type
final JsonValue _type()
The type of the item. Always
mcp_approval_request
.Expected to always return the following:
JsonValue.from("mcp_approval_request")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_arguments
final JsonField<String> _arguments()
Returns the raw JSON value of arguments.
Unlike arguments, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_serverLabel
final JsonField<String> _serverLabel()
Returns the raw JSON value of serverLabel.
Unlike serverLabel, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseOutputItem.McpApprovalRequest.Builder toBuilder()
-
validate
final ResponseOutputItem.McpApprovalRequest validate()
-
builder
final static ResponseOutputItem.McpApprovalRequest.Builder builder()
Returns a mutable builder for constructing an instance of McpApprovalRequest.
The following fields are required:
.id() .arguments() .name() .serverLabel()
-
-
-
-