reasoning

package
v0.0.0-...-9a5d38d Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionContinue    = "continue"
	ActionFinalAnswer = "final_answer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func New

func New(options ...Option) (*Chain, error)

func (*Chain) Complete

func (c *Chain) Complete(ctx context.Context, messages []provider.Message, options *provider.CompleteOptions) (*provider.Completion, error)

type Option

type Option func(*Chain)

func WithCompleter

func WithCompleter(completer provider.Completer) Option

func WithTemperature

func WithTemperature(temperature float32) Option

type Step

type Step struct {
	Title   string `json:"title"`
	Content string `json:"content"`

	NextAction Action `json:"next_action"`
}

Jump to

Keyboard shortcuts

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