assistant

package
v0.2.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assistant

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

func New

func New(llm LLM) *Assistant

func (*Assistant) Run

func (a *Assistant) Run(ctx context.Context) error

func (*Assistant) RunWithThread

func (a *Assistant) RunWithThread(ctx context.Context, thread *thread.Thread) error

func (*Assistant) Thread

func (a *Assistant) Thread() *thread.Thread

func (*Assistant) WithParameters added in v0.1.1

func (a *Assistant) WithParameters(parameters Parameters) *Assistant

func (*Assistant) WithRAG

func (a *Assistant) WithRAG(rag RAG) *Assistant

func (*Assistant) WithThread

func (a *Assistant) WithThread(thread *thread.Thread) *Assistant

type LLM

type LLM interface {
	Generate(context.Context, *thread.Thread) error
}

type Parameters added in v0.1.1

type Parameters struct {
	AssistantName      string
	AssistantIdentity  string
	AssistantScope     string
	CompanyName        string
	CompanyDescription string
}

type RAG

type RAG interface {
	Retrieve(ctx context.Context, query string) ([]string, error)
}

Jump to

Keyboard shortcuts

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