function

package
v0.0.0-...-68b491e Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(sysPrompt string, discovery tool.Discovery, reasoner Reasoner, log *slog.Logger) *Agent

func (*Agent) Action

func (ag *Agent) Action(ctx context.Context, percepts []percept.Percept) (action.Action, error)

Action returns, based on the given perceptions and the history of prior perceptions an action which can be executed.

type Reasoner

type Reasoner interface {
	Reason(ctx context.Context, hist history.History, tools []tool.Tool) (action.Action, error)
}

Jump to

Keyboard shortcuts

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