crispe

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	systemprompt.BaseGenerator
	// contains filtered or unexported fields
}

Generator is CRISPE system prompt generator

func New

func New(options ...Option) *Generator

New returns a new system prompt Generator

func (*Generator) Generate

func (g *Generator) Generate() string

type Option

type Option = func(g *Generator)

func WithBackground

func WithBackground(background []string) Option

WithBackground set Generator background

func WithCapacities

func WithCapacities(capacities []string) Option

WithCapacities set Generator capacities

func WithContextProviders

func WithContextProviders(providers ...systemprompt.ContextProvider) Option

WithContextProviders set Generator context pproviders

func WithExperiments

func WithExperiments(experiments []string) Option

WithExperiments set Generator capacities

func WithPersonalities

func WithPersonalities(personalities []string) Option

WithPersonalities set Generator personalities

func WithStatements

func WithStatements(statements []string) Option

WithStatements set Generator statements

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL