Class McpProgressNotification

java.lang.Object
dev.langchain4j.mcp.client.progress.McpProgressNotification

public class McpProgressNotification extends Object
Represents a progress notification received from an MCP server, sent in response to a request that included a progress token.
  • Constructor Details

    • McpProgressNotification

      public McpProgressNotification(String progressToken, double progress, Double total, String message)
  • Method Details

    • fromJson

      public static McpProgressNotification fromJson(com.fasterxml.jackson.databind.JsonNode params)
      Parses a McpProgressNotification from the contents of the 'params' object inside a 'notifications/progress' message.
    • progressToken

      public String progressToken()
    • progress

      public double progress()
    • total

      public Double total()
    • message

      public String message()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object