loopagent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package loopagent provides an agent that repeatedly runs its sub-agents for a specified number of iterations or until termination condition is met.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) (agent.Agent, error)

New creates a LoopAgent.

LoopAgent repeatedly runs its sub-agents in sequence for a specified number of iterations or until a termination condition is met.

Use the LoopAgent when your workflow involves repetition or iterative refinement, such as like revising code.

Types

type Config

type Config struct {
	// Basic agent setup.
	AgentConfig agent.Config

	// If MaxIterations == 0, then LoopAgent runs indefinitely or until any
	// sub-agent escalates.
	MaxIterations uint
}

Config defines the configuration for a LoopAgent.

Jump to

Keyboard shortcuts

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