agent

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Automata

type Automata[A, B any] struct {
	// contains filtered or unexported fields
}

func NewAutomata

func NewAutomata[A, B any](
	llm chatter.Chatter,
	memory thinker.Memory,
	reasoner thinker.Reasoner[A, B],
	encoder thinker.Encoder[A],
	decoder thinker.Decoder[B],
) *Automata[A, B]

func (*Automata[A, B]) Prompt

func (automata *Automata[A, B]) Prompt(ctx context.Context, input A, opt ...chatter.Opt) (B, error)

Jump to

Keyboard shortcuts

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