package
0.0.0-20250219065129-52aed497bc00
Repository: https://github.com/infinilabs/coco-server.git
Documentation: pkg.go.dev
# Functions
NewConstitutional creates a new Constitutional chain.
NewConstitutionalPrinciple creates a new ConstitutionalPrinciple.
# Variables
ErrResponseTextNotFound is returned when the response does not provide 'text' key as the result.
ErrStringConvert is returned when a value cannot be converted into a string.
# Structs
Constitutional is a data structure for providing chains of critique and revision to an ordinary chain based on a list of ConstitutionalPrinciple.
ConstitutionalPrinciple provides critiqueRequest and revisionRequest to be used in a Constitutional instance.