Package ai.chatur.cortex.spring.ingest
Record Class ApprovalConfirmation
java.lang.Object
java.lang.Record
ai.chatur.cortex.spring.ingest.ApprovalConfirmation
- Record Components:
approve- whether the staged assertions may be merged into the knowledge graph immediately
The answer a human gives when
IngestTools.ingest(org.springframework.ai.mcp.annotation.context.McpSyncRequestContext, java.lang.String, java.lang.Boolean) asks — over MCP elicitation — whether it
may approve staged assertions without review.-
Constructor Summary
ConstructorsConstructorDescriptionApprovalConfirmation(boolean approve) Creates an instance of aApprovalConfirmationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapprove()Returns the value of theapproverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApprovalConfirmation
public ApprovalConfirmation(boolean approve) Creates an instance of aApprovalConfirmationrecord class.- Parameters:
approve- the value for theapproverecord component
-
-
Method Details
-
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. -
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. -
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 with '=='. -
approve
public boolean approve()Returns the value of theapproverecord component.- Returns:
- the value of the
approverecord component
-