assistant

package
v0.0.0-...-1f01b20 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 WithMessages

func WithMessages(messages ...provider.Message) Option

func WithTemperature

func WithTemperature(temperature float32) Option

func WithTemplate

func WithTemplate(template *prompt.Template) Option

Jump to

Keyboard shortcuts

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