Class McpProgressNotification
java.lang.Object
dev.langchain4j.mcp.client.progress.McpProgressNotification
Represents a progress notification received from an MCP server,
sent in response to a request that included a progress token.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpProgressNotification(String progressToken, double progress, Double total, String message) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic McpProgressNotificationfromJson(com.fasterxml.jackson.databind.JsonNode params) Deprecated, for removal: This API element is subject to removal in a future version.static McpProgressNotificationParses a McpProgressNotification from the contents of the 'params' object inside a 'notifications/progress' message, presented as plain values.inthashCode()message()doubleprogress()toString()total()
-
Constructor Details
-
McpProgressNotification
-
-
Method Details
-
fromMap
Parses a McpProgressNotification from the contents of the 'params' object inside a 'notifications/progress' message, presented as plain values. -
fromJson
@Deprecated(since="1.20.0", forRemoval=true) public static McpProgressNotification fromJson(com.fasterxml.jackson.databind.JsonNode params) Deprecated, for removal: This API element is subject to removal in a future version.usefromMap(Map), which does not expose Jackson types. -
progressToken
-
progress
public double progress() -
total
-
message
-
equals
-
hashCode
-
toString
-
fromMap(Map), which does not expose Jackson types.