worker

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 7 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]

Jump to

Keyboard shortcuts

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