Record Class AsyncElicitationSpecification
java.lang.Object
java.lang.Record
org.springframework.ai.mcp.annotation.method.elicitation.AsyncElicitationSpecification
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncElicitationSpecification(String[] clients, Function<io.modelcontextprotocol.spec.McpSchema.ElicitRequest, reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.ElicitResult>> elicitationHandler) Creates an instance of aAsyncElicitationSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionString[]clients()Returns the value of theclientsrecord component.Function<io.modelcontextprotocol.spec.McpSchema.ElicitRequest, reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.ElicitResult>> Returns the value of theelicitationHandlerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AsyncElicitationSpecification
public AsyncElicitationSpecification(String[] clients, Function<io.modelcontextprotocol.spec.McpSchema.ElicitRequest, reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.ElicitResult>> elicitationHandler) Creates an instance of aAsyncElicitationSpecificationrecord class.- Parameters:
clients- the value for theclientsrecord componentelicitationHandler- the value for theelicitationHandlerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
clients
Returns the value of theclientsrecord component.- Returns:
- the value of the
clientsrecord component
-
elicitationHandler
public Function<io.modelcontextprotocol.spec.McpSchema.ElicitRequest, reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.ElicitResult>> elicitationHandler()Returns the value of theelicitationHandlerrecord component.- Returns:
- the value of the
elicitationHandlerrecord component
-