Class McpProgressUpdate
java.lang.Object
com.soklet.McpProgressUpdate
Immutable progress update for one active MCP invocation.
Progress and total values are finite JSON numbers. Soklet associates the update with the initiating request's opaque progress token; applications do not copy or manage that token themselves.
String factories and setters reject unpaired UTF-16 surrogates with
IllegalArgumentException; well-formed Unicode is preserved exactly.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMutable builder for immutableMcpProgressUpdatevalues. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetTotal()inthashCode()withProgress(@NonNull Double progress) Vends a builder primed with the current progress value.
-
Method Details
-
withProgress
Vends a builder primed with the current progress value.- Parameters:
progress- finite progress value- Returns:
- progress-update builder
- Throws:
NullPointerException- ifprogressis nullIllegalArgumentException- ifprogressis not finite
-
getProgress
- Returns:
- finite progress value
-
getTotal
-
getMessage
- Returns:
- human-readable progress message, if supplied
-
equals
-
hashCode
-