Package com.openai.models.responses
Class ResponseInputItem.McpListTools.Tool
-
- All Implemented Interfaces:
public final class ResponseInputItem.McpListTools.Tool
A tool available on an MCP server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputItem.McpListTools.Tool.Builder
A builder for Tool.
-
Method Summary
Modifier and Type Method Description final JsonValue
_inputSchema()
The JSON schema describing the tool's input. final String
name()
The name of the tool. final JsonValue
_annotations()
Additional annotations about the tool. final Optional<String>
description()
The description of the tool. final JsonField<String>
_name()
Returns the raw JSON value of name. final JsonField<String>
_description()
Returns the raw JSON value of description. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputItem.McpListTools.Tool.Builder
toBuilder()
final ResponseInputItem.McpListTools.Tool
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputItem.McpListTools.Tool.Builder
builder()
Returns a mutable builder for constructing an instance of Tool. -
-
Method Detail
-
_inputSchema
final JsonValue _inputSchema()
The JSON schema describing the tool's input.
-
_annotations
final JsonValue _annotations()
Additional annotations about the tool.
-
description
final Optional<String> description()
The description of the tool.
-
_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.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.McpListTools.Tool.Builder toBuilder()
-
validate
final ResponseInputItem.McpListTools.Tool validate()
-
builder
final static ResponseInputItem.McpListTools.Tool.Builder builder()
Returns a mutable builder for constructing an instance of Tool.
The following fields are required:
.inputSchema() .name()
-
-
-
-