cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 = channel.ModelListFunc

ModelListFunc re-exports channel.ModelListFunc for use by callers.

type ModelOption

type ModelOption = channel.ModelOption

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

type ModelSwitchFunc

type ModelSwitchFunc = channel.ModelSwitchFunc

ModelSwitchFunc re-exports channel.ModelSwitchFunc for use by callers.

Jump to

Keyboard shortcuts

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