Record Class McpNaturalActionResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpNaturalActionResult
- Record Components:
intentLength- natural-language intent lengthargumentCount- number of user arguments suppliedminimumTrustPercentage- effective trust threshold percentageplanner- effective planner identifieraiFallbackEnabled- whether optional provider fallback was enabled for this callallowedActions- effective allowed action target categories
-
Constructor Summary
ConstructorsConstructorDescriptionMcpNaturalActionResult(int intentLength, int argumentCount, int minimumTrustPercentage, String planner, boolean aiFallbackEnabled, String allowedActions) Creates a bounded immutable natural-action result. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaiFallbackEnabledrecord component.Returns the value of theallowedActionsrecord component.intReturns the value of theargumentCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theintentLengthrecord component.intReturns the value of theminimumTrustPercentagerecord component.planner()Returns the value of theplannerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpNaturalActionResult
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
intentLength
public int intentLength()Returns the value of theintentLengthrecord component.- Returns:
- the value of the
intentLengthrecord component
-
argumentCount
public int argumentCount()Returns the value of theargumentCountrecord component.- Returns:
- the value of the
argumentCountrecord component
-
minimumTrustPercentage
public int minimumTrustPercentage()Returns the value of theminimumTrustPercentagerecord component.- Returns:
- the value of the
minimumTrustPercentagerecord component
-
planner
-
aiFallbackEnabled
public boolean aiFallbackEnabled()Returns the value of theaiFallbackEnabledrecord component.- Returns:
- the value of the
aiFallbackEnabledrecord component
-
allowedActions
Returns the value of theallowedActionsrecord component.- Returns:
- the value of the
allowedActionsrecord component
-