Record Class McpGuideSearchResult
java.lang.Object
java.lang.Record
com.shaft.mcp.McpGuideSearchResult
- Record Components:
schemaVersion- result schema versionquery- searched querysourceIndexUrl- official guide search index URLmatches- ranked official guide matchesguidanceRules- rules agents should apply when writing SHAFT codewarnings- safe warnings about missing or partial guide evidence
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMcpGuideSearchResult(String schemaVersion, String query, String sourceIndexUrl, List<McpGuideMatch> matches, List<String> guidanceRules, List<String> warnings) Creates an immutable guide search result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theguidanceRulesrecord component.final inthashCode()Returns a hash code value for this object.matches()Returns the value of thematchesrecord component.query()Returns the value of thequeryrecord component.Returns the value of theschemaVersionrecord component.Returns the value of thesourceIndexUrlrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Field Details
-
CURRENT_SCHEMA_VERSION
-
-
Constructor Details
-
McpGuideSearchResult
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
query
-
sourceIndexUrl
Returns the value of thesourceIndexUrlrecord component.- Returns:
- the value of the
sourceIndexUrlrecord component
-
matches
-
guidanceRules
Returns the value of theguidanceRulesrecord component.- Returns:
- the value of the
guidanceRulesrecord component
-
warnings
-