oneshot

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package oneshot is the non-interactive entry point: read one prompt, run one agent turn, print the final answer to stdout, exit. The TUI is great for working sessions; oneshot is what scripts and CI pipelines call.

Output convention:

  • stdout: the model's *content* tokens (the answer)
  • stderr: reasoning tokens, tool-call status, errors

That way `yottacode run "summarize x" > out.md` produces a clean file with reasoning visible only on the terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts cli.ChatOptions, prompt string) error

Run drives a single non-interactive turn and returns when the assistant produces a tool-free reply (or hits an error / iter cap). The session is saved like any other for later /resume.

Types

This section is empty.

Jump to

Keyboard shortcuts

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