Record Class PromptResult.InputRequired
java.lang.Object
java.lang.Record
dev.tachyonmcp.api.server.features.prompts.PromptResult.InputRequired
- Record Components:
request- the input request bundle
- All Implemented Interfaces:
HasMeta,PromptResult
- Enclosing interface:
PromptResult
public static record PromptResult.InputRequired(InputRequestBundle request)
extends Record
implements PromptResult
A prompt result that requests additional input from the client.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.tachyonmcp.api.server.features.prompts.PromptResult
PromptResult.InputRequired, PromptResult.Messages, PromptResult.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 input requests keyed by field name.request()Returns the value of therequestrecord component.@Nullable StringReturns the optional opaque state for resuming this prompt.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.prompts.PromptResult
meta, withMeta, withMeta
-
Constructor Details
-
InputRequired
Creates an instance of aInputRequiredrecord class.- Parameters:
request- the value for therequestrecord component
-
-
Method Details
-
inputRequests
Returns the input requests keyed by field name. -
requestState
Returns the optional opaque state for resuming this prompt. -
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
-