agents

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

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMaxSteps

func WithMaxSteps(max int) llmcomposer.Values

Types

type Action

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

func (Action) IsFinish

func (a Action) IsFinish() bool

func (Action) String

func (a Action) String() string

type ReActAgent

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

func NewReActAgent

func NewReActAgent(llm llmcomposer.LLM, tools ...llmcomposer.Tool) *ReActAgent

func (*ReActAgent) Call

func (a *ReActAgent) Call(ctx context.Context, values ...llmcomposer.Values) (llmcomposer.Values, error)

Jump to

Keyboard shortcuts

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