query_stream

command
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Demonstrates opencodesdk.QueryStream for running a series of prompts against a single, long-lived opencode session and iterating results as they arrive.

Unlike opencodesdk.Query (one-shot) or opencodesdk.WithClient (manual session management), QueryStream reuses a single subprocess + session for the entire prompt list and yields one [QueryResult] per prompt via a Go 1.23 range-over-func iterator.

go run ./examples/query_stream

Jump to

Keyboard shortcuts

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