cot

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 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 Chain-of-Thought 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 WithContextProviders

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

WithContextProviders set Generator context pproviders

func WithOutputInstructs

func WithOutputInstructs(outputInstructs []string) Option

WithOutputInstructs set Generator output instructions

func WithSteps

func WithSteps(steps []string) Option

WithSteps set Generator steps

Jump to

Keyboard shortcuts

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