Class BitolContext
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolContext
This class represents the AI and semantic context block of a data contract, schema object, data product or output port (ODCS v3.2.0 and ODPS v1.1.0, RFC 0038). It gives AI agents, LLMs and semantic layer tools instructions on how to use the element, verified questions and answers, and constraints on what must not be done. In ODCS the block may be written as a plain string, which is equivalent to supplying the instructions alone.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the things AI agents must not do with the element.Return natural language guidance for AI agents and tools on how to use the element.Return the canonical questions and verified answers.inthashCode()Return hash code based on properties.voidsetConstraints(List<BitolContextConstraint> constraints) Set up the things AI agents must not do with the element.voidsetInstructions(String instructions) Set up natural language guidance for AI agents and tools on how to use the element.voidsetVerifiedStatements(List<BitolVerifiedStatement> verifiedStatements) Set up the canonical questions and verified answers.toString()Standard toString method.
-
Constructor Details
-
BitolContext
public BitolContext()Default constructor
-
-
Method Details
-
getInstructions
Return natural language guidance for AI agents and tools on how to use the element.- Returns:
- String
-
setInstructions
Set up natural language guidance for AI agents and tools on how to use the element.- Parameters:
instructions- String
-
getVerifiedStatements
Return the canonical questions and verified answers.- Returns:
- List
-
setVerifiedStatements
Set up the canonical questions and verified answers.- Parameters:
verifiedStatements- List
-
getConstraints
Return the things AI agents must not do with the element.- Returns:
- List
-
setConstraints
Set up the things AI agents must not do with the element.- Parameters:
constraints- List
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-