Versions in this module Expand all Collapse all v0 v0.0.1 Aug 9, 2024 Changes in this version + var ErrResponseTextNotFound = errors.New("result as a string value of a 'text' key is not found") + var ErrStringConvert = errors.New("cannot convert the provided value to string") + type Constitutional struct + func NewConstitutional(llm llms.Model, chain chains.LLMChain, ...) *Constitutional + func (c *Constitutional) Call(ctx context.Context, inputs map[string]any, options ...chains.ChainCallOption) (map[string]any, error) + func (c *Constitutional) GetInputKeys() []string + func (c *Constitutional) GetMemory() schema.Memory + func (c *Constitutional) GetOutputKeys() []string + type ConstitutionalPrinciple struct + func NewConstitutionalPrinciple(critique, revision string, names ...string) ConstitutionalPrinciple