Class ResponseOutputItem.McpApprovalRequest
-
- All Implemented Interfaces:
public final class ResponseOutputItem.McpApprovalRequestA request for human approval of a tool invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseOutputItem.McpApprovalRequest.BuilderA builder for McpApprovalRequest.
-
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 ResponseOutputItem.McpApprovalRequest.BuildertoBuilder()final ResponseOutputItem.McpApprovalRequestvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseOutputItem.McpApprovalRequest.Builderbuilder()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()
-
-
-
-