worker

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jsonify

type Jsonify[A any] struct {
	*agent.Automata[A, []string]
	// contains filtered or unexported fields
}

Jsonify implementing request/response to LLMs, forcing the response to be JSON array.

func NewJsonify

func NewJsonify[A any](
	llm chatter.Chatter,
	attempts int,
	encoder thinker.Encoder[A],
	validator func([]string) error,
) *Jsonify[A]

type Reflex

type Reflex[A any] struct {
	*agent.Automata[A, softcmd.CmdOut]
	// contains filtered or unexported fields
}

The agent tailored for executing prompt driven workflow.

func NewReflex

func NewReflex[A any](
	llm chatter.Chatter,
	attempts int,
	encoder thinker.Encoder[A],
	registry *softcmd.Registry,
) *Reflex[A]

Jump to

Keyboard shortcuts

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