Class RealtimeMcpApprovalRequest
-
- All Implemented Interfaces:
public final class RealtimeMcpApprovalRequestA Realtime item requesting human approval of a tool invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeMcpApprovalRequest.BuilderA builder for RealtimeMcpApprovalRequest.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the approval request. final Stringarguments()A JSON string of arguments for the tool. final Stringname()The name of the tool to run. final StringserverLabel()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 RealtimeMcpApprovalRequest.BuildertoBuilder()final RealtimeMcpApprovalRequestvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeMcpApprovalRequest.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeMcpApprovalRequest. -
-
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 RealtimeMcpApprovalRequest.Builder toBuilder()
-
validate
final RealtimeMcpApprovalRequest validate()
-
builder
final static RealtimeMcpApprovalRequest.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeMcpApprovalRequest.
The following fields are required:
.id() .arguments() .name() .serverLabel()
-
-
-
-