advanced

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Persona

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

func New

func New(client *openai.Client) (*Persona, error)

func (*Persona) AddDirective

func (p *Persona) AddDirective(directives string) error

func (*Persona) AddUserContext added in v0.2.2

func (p *Persona) AddUserContext(text string) error

func (*Persona) CommitResponse

func (p *Persona) CommitResponse(index int) error

func (*Persona) DynamicInit added in v0.2.1

func (p *Persona) DynamicInit(model string, previous []interfaces.CompletionMessage) error

func (*Persona) EditConversation

func (p *Persona) EditConversation(index int, statement string) ([]interfaces.CompletionChoice, error)

func (*Persona) GetConversation

func (p *Persona) GetConversation() ([]interfaces.CompletionMessage, error)

func (*Persona) Init

func (p *Persona) Init(level interfaces.SkillType, model string) error

func (*Persona) InitWithProvided

func (p *Persona) InitWithProvided(model string, previous []interfaces.CompletionMessage) error

func (*Persona) Query

func (p *Persona) Query(ctx context.Context, role, statement string) ([]interfaces.CompletionChoice, error)

Jump to

Keyboard shortcuts

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