headless

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(thread *daemon.ThreadClient, prompt string, format OutputFormat, workflow string, model string) error

Run executes a single prompt in headless mode, consuming thread events and producing output in the requested format.

Types

type OutputFormat

type OutputFormat string

OutputFormat controls how the headless result is printed.

const (
	FormatText       OutputFormat = "text"
	FormatJSON       OutputFormat = "json"
	FormatStreamJSON OutputFormat = "stream-json"
)

func (OutputFormat) Valid

func (f OutputFormat) Valid() bool

Valid returns true if the format is recognized.

Jump to

Keyboard shortcuts

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