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

executor

package
v1.224.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMaxToolIterations is the default maximum number of tool execution loops.
	DefaultMaxToolIterations = 25
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor handles non-interactive AI execution with tool support.

func NewExecutor

func NewExecutor(client ai.Client, toolExecutor *tools.Executor, atmosConfig *schema.AtmosConfiguration) *Executor

NewExecutor creates a new non-interactive executor.

func (*Executor) Execute

func (e *Executor) Execute(ctx context.Context, opts Options) *formatter.ExecutionResult

Execute runs a single prompt and returns the formatted result.

type Options

type Options struct {
	// Prompt is the user's prompt/question.
	Prompt string

	// ToolsEnabled indicates if tool execution is allowed.
	ToolsEnabled bool

	// SessionID is an optional session ID for conversation context.
	SessionID string

	// IncludeContext includes stack context in the prompt.
	IncludeContext bool
}

Options contains execution options.

Jump to

Keyboard shortcuts

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