Record Class McpNaturalActionResult

java.lang.Object
java.lang.Record
com.shaft.mcp.McpNaturalActionResult
Record Components:
intentLength - natural-language intent length
argumentCount - number of user arguments supplied
minimumTrustPercentage - effective trust threshold percentage
planner - effective planner identifier
aiFallbackEnabled - whether optional provider fallback was enabled for this call
allowedActions - effective allowed action target categories

public record McpNaturalActionResult(int intentLength, int argumentCount, int minimumTrustPercentage, String planner, boolean aiFallbackEnabled, String allowedActions) extends Record
Result metadata returned after a trust-gated natural action.
  • Constructor Details

    • McpNaturalActionResult

      public McpNaturalActionResult(int intentLength, int argumentCount, int minimumTrustPercentage, String planner, boolean aiFallbackEnabled, String allowedActions)
      Creates a bounded immutable natural-action result.
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • intentLength

      public int intentLength()
      Returns the value of the intentLength record component.
      Returns:
      the value of the intentLength record component
    • argumentCount

      public int argumentCount()
      Returns the value of the argumentCount record component.
      Returns:
      the value of the argumentCount record component
    • minimumTrustPercentage

      public int minimumTrustPercentage()
      Returns the value of the minimumTrustPercentage record component.
      Returns:
      the value of the minimumTrustPercentage record component
    • planner

      public String planner()
      Returns the value of the planner record component.
      Returns:
      the value of the planner record component
    • aiFallbackEnabled

      public boolean aiFallbackEnabled()
      Returns the value of the aiFallbackEnabled record component.
      Returns:
      the value of the aiFallbackEnabled record component
    • allowedActions

      public String allowedActions()
      Returns the value of the allowedActions record component.
      Returns:
      the value of the allowedActions record component