Help us shape the future of Go! Take the 2026 Go Developer Survey

react

package
v1.33.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package react is the public SDK facade over Harbor's internal/planner/react package — the reference LLM-driven ReAct planner concrete (RFC §3.6, §6.2). Importing this package (including blank-importing it) seats the "react" driver registration, so `planner.driver: react` resolves through the registry; sdk/drivers/prod seats it too. Alias-based re-exports only: no behavior lives here. Prompt construction, projector, and repair-guidance internals are deliberately private.

Index

Constants

View Source
const (
	// FinishToolName — the terminal action.
	FinishToolName = internal.FinishToolName
	// SpawnTaskToolName — the background-spawn action.
	SpawnTaskToolName = internal.SpawnTaskToolName
	// AwaitTaskToolName — the background-join action.
	AwaitTaskToolName = internal.AwaitTaskToolName
	// DeclarativeActionToolName — the declarative-action envelope tool.
	DeclarativeActionToolName = internal.DeclarativeActionToolName
)

Planner-reserved tool names the ReAct action grammar uses.

View Source
const DefaultMaxSteps = internal.DefaultMaxSteps

DefaultMaxSteps is the default planner-step cap.

View Source
const DefaultSystemPrompt = internal.DefaultSystemPrompt

DefaultSystemPrompt is the sentinel selecting the built-in system prompt.

View Source
const DriverName = internal.DriverName

DriverName is the registry name the package's init() registers.

Variables

View Source
var (
	// WithArgFillEnabled toggles schema-guided argument filling.
	WithArgFillEnabled = internal.WithArgFillEnabled
	// WithMaxConsecutiveArgFailures caps consecutive arg failures.
	WithMaxConsecutiveArgFailures = internal.WithMaxConsecutiveArgFailures
	// WithMaxSteps caps the planner-step count.
	WithMaxSteps = internal.WithMaxSteps
	// WithMaxToolExamplesPerTool caps rendered examples per tool.
	WithMaxToolExamplesPerTool = internal.WithMaxToolExamplesPerTool
	// WithParallelToolCalls toggles CallParallel emission.
	WithParallelToolCalls = internal.WithParallelToolCalls
	// WithPromptBuilder swaps the prompt-construction seam.
	WithPromptBuilder = internal.WithPromptBuilder
	// WithReasoningReplay sets the reasoning-replay mode.
	WithReasoningReplay = internal.WithReasoningReplay
	// WithRepairAttempts sets the schema-repair budget.
	WithRepairAttempts = internal.WithRepairAttempts
	// WithSystemPrompt replaces the system prompt.
	WithSystemPrompt = internal.WithSystemPrompt
	// WithSystemPromptExtra appends to the system prompt.
	WithSystemPromptExtra = internal.WithSystemPromptExtra
)

Constructor options (see internal/planner/react Option docs).

New constructs a ReActPlanner over an LLM client.

Functions

This section is empty.

Types

type Option

type Option = internal.Option

Option customises New.

type PromptBuilder

type PromptBuilder = internal.PromptBuilder

PromptBuilder is the swappable prompt-construction seam.

type ReActPlanner

type ReActPlanner = internal.ReActPlanner

ReActPlanner is the reference ReAct planner concrete.

Jump to

Keyboard shortcuts

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