Package io.quarkiverse.mcp.server.test
Record Class McpAssured.ToolInfo
java.lang.Object
java.lang.Record
io.quarkiverse.mcp.server.test.McpAssured.ToolInfo
- Enclosing class:
- McpAssured
public static record McpAssured.ToolInfo(String name, String title, String description, io.vertx.core.json.JsonObject inputSchema, io.vertx.core.json.JsonObject outputSchema, Optional<McpAssured.ToolAnnotations> annotations, io.vertx.core.json.JsonObject meta, io.vertx.core.json.JsonArray icons)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionToolInfo(String name, String title, String description, io.vertx.core.json.JsonObject inputSchema, io.vertx.core.json.JsonObject outputSchema, Optional<McpAssured.ToolAnnotations> annotations, io.vertx.core.json.JsonObject meta, io.vertx.core.json.JsonArray icons) Creates an instance of aToolInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.vertx.core.json.JsonArrayicons()Returns the value of theiconsrecord component.io.vertx.core.json.JsonObjectReturns the value of theinputSchemarecord component.io.vertx.core.json.JsonObjectmeta()Returns the value of themetarecord component.name()Returns the value of thenamerecord component.io.vertx.core.json.JsonObjectReturns the value of theoutputSchemarecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolInfo
public ToolInfo(String name, String title, String description, io.vertx.core.json.JsonObject inputSchema, io.vertx.core.json.JsonObject outputSchema, Optional<McpAssured.ToolAnnotations> annotations, io.vertx.core.json.JsonObject meta, io.vertx.core.json.JsonArray icons) Creates an instance of aToolInforecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentinputSchema- the value for theinputSchemarecord componentoutputSchema- the value for theoutputSchemarecord componentannotations- the value for theannotationsrecord componentmeta- the value for themetarecord componenticons- the value for theiconsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
inputSchema
public io.vertx.core.json.JsonObject inputSchema()Returns the value of theinputSchemarecord component.- Returns:
- the value of the
inputSchemarecord component
-
outputSchema
public io.vertx.core.json.JsonObject outputSchema()Returns the value of theoutputSchemarecord component.- Returns:
- the value of the
outputSchemarecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-
meta
public io.vertx.core.json.JsonObject meta()Returns the value of themetarecord component.- Returns:
- the value of the
metarecord component
-
icons
public io.vertx.core.json.JsonArray icons()Returns the value of theiconsrecord component.- Returns:
- the value of the
iconsrecord component
-