Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(session *daemon.SessionClient, prompt string, format OutputFormat, workflow string, model string) error
Run executes a single prompt in headless mode, consuming session 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.
Click to show internal directories.
Click to hide internal directories.