Class ListRequests
java.lang.Object
dev.tachyonmcp.core.server.features.ListRequests
Shared parsing of limit/cursor from JSON-RPC request params.
-
Method Summary
Modifier and TypeMethodDescriptionextractInputResponses(@Nullable Object raw) Parses theinputResponsesvalue of a request into a name→node map, re-encoding each raw value through the codec.static @Nullable StringparseCursor(Object params) Extracts the cursor parameter from a Map or typed request object.static intparseLimit(Object params) Extracts the limit parameter from a Map or typed request object.
-
Method Details
-
extractInputResponses
public static @Nullable Map<String,tools.jackson.databind.JsonNode> extractInputResponses(@Nullable Object raw) Parses theinputResponsesvalue of a request into a name→node map, re-encoding each raw value through the codec. Returnsnullwhen absent or empty. Passmap.get("inputResponses"). -
parseLimit
Extracts the limit parameter from a Map or typed request object. -
parseCursor
Extracts the cursor parameter from a Map or typed request object.
-