runner

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package runner provides the execution logic for running agents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, opts config.RunOptions, logger Logger) error

Execute runs agents with the given options. This is the shared execution path for both CLI and TUI.

Types

type Logger

type Logger interface {
	Info(format string, args ...interface{})
	Verbose(format string, args ...interface{})
	Error(format string, args ...interface{})
}

Logger provides logging methods for the executor

type StdLogger

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

StdLogger implements Logger using stdout/stderr

func NewStdLogger

func NewStdLogger(verbose, quiet bool) *StdLogger

NewStdLogger creates a new standard logger

func (*StdLogger) Error

func (l *StdLogger) Error(format string, args ...interface{})

Error logs error messages to stderr

func (*StdLogger) Info

func (l *StdLogger) Info(format string, args ...interface{})

Info logs info messages (unless quiet)

func (*StdLogger) Verbose

func (l *StdLogger) Verbose(format string, args ...interface{})

Verbose logs verbose/debug messages (only if verbose and not quiet)

Jump to

Keyboard shortcuts

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