Record Class McpCodeGuardrailResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpCodeGuardrailResult
- Record Components:
schemaVersion- response schema versionlanguage- checked languagepassed- whether no blocking findings were detectedviolations- blocking and advisory findingswarnings- safe warnings for the calling agent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMcpCodeGuardrailResult(String schemaVersion, String language, boolean passed, List<McpCodeGuardrailViolation> violations, List<String> warnings) Creates an immutable guardrail result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.booleanpassed()Returns the value of thepassedrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theviolationsrecord component.warnings()Returns the value of thewarningsrecord component.
-
Field Details
-
CURRENT_SCHEMA_VERSION
-
-
Constructor Details
-
McpCodeGuardrailResult
-
-
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. -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
language
-
passed
-
violations
Returns the value of theviolationsrecord component.- Returns:
- the value of the
violationsrecord component
-
warnings
-