Record Class ToolResult.InputRequired
java.lang.Object
java.lang.Record
dev.tachyonmcp.api.server.features.tools.ToolResult.InputRequired
- Record Components:
request- the requested inputs and opaque state to echo back
- All Implemented Interfaces:
ToolResult
- Enclosing interface:
ToolResult
public static record ToolResult.InputRequired(InputRequestBundle request)
extends Record
implements ToolResult
Signals that completing the tool call requires additional input from the caller.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.tachyonmcp.api.server.features.tools.ToolResult
ToolResult.Deferred, ToolResult.Error, ToolResult.InputRequired, ToolResult.Success, ToolResult.WithMeta -
Constructor Summary
ConstructorsConstructorDescriptionInputRequired(InputRequestBundle request) Creates an instance of aInputRequiredrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<String, ? extends InputRequest> Returns the requested inputs, keyed by request id.request()Returns the value of therequestrecord component.@Nullable StringReturns the opaque state token to echo back with the caller's response, ornull.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.tachyonmcp.api.server.features.tools.ToolResult
withMeta, withMeta
-
Constructor Details
-
InputRequired
Creates an instance of aInputRequiredrecord class.- Parameters:
request- the value for therequestrecord component
-
-
Method Details
-
inputRequests
Returns the requested inputs, keyed by request id. -
requestState
Returns the opaque state token to echo back with the caller's response, ornull. -
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). -
request
Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-