Package dev.tachyonmcp.api.server.domain
Record Class ServerCapabilities.Tasks
java.lang.Object
java.lang.Record
dev.tachyonmcp.api.server.domain.ServerCapabilities.Tasks
- Record Components:
list- Server supports the `tasks/list` operationcancel- Server supports the `tasks/cancel` operationtoolCallRequests- Server supports task-augmented `tools/call` requests
- Enclosing interface:
ServerCapabilities
public static record ServerCapabilities.Tasks(boolean list, boolean cancel, boolean toolCallRequests)
extends Record
Server task capabilities
-
Constructor Summary
ConstructorsConstructorDescriptionTasks(boolean list, boolean cancel, boolean toolCallRequests) Creates an instance of aTasksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Returns the value of thecancelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlist()Returns the value of thelistrecord component.booleanReturns the value of thetoolCallRequestsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tasks
public Tasks(boolean list, boolean cancel, boolean toolCallRequests) Creates an instance of aTasksrecord class.- Parameters:
list- the value for thelistrecord componentcancel- the value for thecancelrecord componenttoolCallRequests- the value for thetoolCallRequestsrecord 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 with '=='. -
list
public boolean list()Returns the value of thelistrecord component.- Returns:
- the value of the
listrecord component
-
cancel
public boolean cancel()Returns the value of thecancelrecord component.- Returns:
- the value of the
cancelrecord component
-
toolCallRequests
public boolean toolCallRequests()Returns the value of thetoolCallRequestsrecord component.- Returns:
- the value of the
toolCallRequestsrecord component
-