agent

package
v0.0.0-...-d48bf00 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemGeneratorPrompt = `` /* 3502-byte string literal not displayed */

Functions

func NewAutoWebSearchAgent

func NewAutoWebSearchAgent(llm llms.Model) (*agents.Executor, error)

func NewSearchInputDesigner

func NewSearchInputDesigner() tools.Tool

func NewSystemGeneratorExecutor

func NewSystemGeneratorExecutor(sgc *UserExchangeChans) (*agents.OpenAIFunctionsAgent, error)

func NewWebSearchAgent

func NewWebSearchAgent(llm llms.Model, urls []string) (func(ctx context.Context, question string) (map[string]any, error), error)

func RandomUserAgent

func RandomUserAgent() string

Types

type ExchangeWithUser

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

func NewExchangeWithUser

func NewExchangeWithUser(sgc *UserExchangeChans) *ExchangeWithUser

func (*ExchangeWithUser) Call

func (e *ExchangeWithUser) Call(ctx context.Context, input string) (string, error)

func (*ExchangeWithUser) Description

func (e *ExchangeWithUser) Description() string

func (*ExchangeWithUser) Name

func (e *ExchangeWithUser) Name() string

type SearchInputDesigner

type SearchInputDesigner struct {
}

func (*SearchInputDesigner) Call

func (s *SearchInputDesigner) Call(ctx context.Context, input string) (string, error)

func (*SearchInputDesigner) Description

func (s *SearchInputDesigner) Description() string

func (*SearchInputDesigner) Name

func (s *SearchInputDesigner) Name() string

type UserExchangeChans

type UserExchangeChans struct {
	Out chan string
	In  chan string
}

Jump to

Keyboard shortcuts

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