react

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxSteps int
}

type Controller

type Controller[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](cfg Config) *Controller[T]

func (*Controller[T]) Run

func (c *Controller[T]) Run(ctx context.Context, agent controller.AgentLike[T], input string) (string, error)

Run implements the ReAct loop: Thought -> Action (tool call) -> Observation -> Thought -> ... -> Final Answer

Jump to

Keyboard shortcuts

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