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.
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 ¶
ModelSwitchFunc re-exports the model-switch callback shape for use by callers.
Click to show internal directories.
Click to hide internal directories.