cli

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChat

func RunChat(ctx context.Context, pool *agent.Pool, provider, model string, listFn ModelListFunc, switchFn ModelSwitchFunc, userID ...int64) error

RunChat starts an interactive terminal chat session using Bubble Tea. An optional userID associates sessions with a user for per-user memory.

func RunStream

func RunStream(ctx context.Context, pool *agent.Pool, userID ...int64) error

RunStream reads all of stdin as a prompt, sends it to the agent, and streams the response to stdout. An optional userID associates the session with a user.

Types

type ModelListFunc

type ModelListFunc = func() []pkgchannel.ModelOption

ModelListFunc re-exports the model-list callback shape for use by callers.

type ModelOption

type ModelOption = pkgchannel.ModelOption

ModelOption re-exports pkg/channel.ModelOption for use by callers.

type ModelSwitchFunc

type ModelSwitchFunc = func(provider, model string) error

ModelSwitchFunc re-exports the model-switch callback shape for use by callers.

Jump to

Keyboard shortcuts

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