Documentation
¶
Index ¶
- Constants
- func NormalizeWaterfallMode(v string) string
- func PrintBanner(out io.Writer, modelName string, metas []SkillMeta)
- func PrintEffectiveConfig(out io.Writer, repoRoot string, cfg EffectiveConfig, timeoutMs int)
- func PrintRuntimeEffectiveConfig(out io.Writer, eng RuntimeInfo, timeoutMs int)
- func RunInteractiveShell(ctx context.Context, in io.ReadCloser, out, errOut io.Writer, eng ReplEngine, ...) error
- func RunREPL(ctx context.Context, in io.ReadCloser, out, errOut io.Writer, eng ReplEngine, ...)
- func RunStream(parent context.Context, out, errOut io.Writer, eng StreamEngine, ...) error
- func TurnRecorderMiddleware(recorder *TurnRecorder) middleware.Middleware
- type EffectiveConfig
- type InteractiveShell
- type InteractiveShellConfig
- type ModelTurnStat
- type ReplEngine
- type RuntimeAdapter
- func (a *RuntimeAdapter) ModelName() string
- func (a *RuntimeAdapter) ModelTurnCount(sessionID string) int
- func (a *RuntimeAdapter) ModelTurnsSince(sessionID string, offset int) []ModelTurnStat
- func (a *RuntimeAdapter) RepoRoot() string
- func (a *RuntimeAdapter) Run(ctx context.Context, sessionID, prompt string) (*api.Response, error)
- func (a *RuntimeAdapter) RunStream(ctx context.Context, sessionID, prompt string) (<-chan api.StreamEvent, error)
- func (a *RuntimeAdapter) SandboxBackend() string
- func (a *RuntimeAdapter) SettingsRoot() string
- func (a *RuntimeAdapter) Skills() []SkillMeta
- func (a *RuntimeAdapter) SkillsDirs() []string
- func (a *RuntimeAdapter) SkillsRecursive() bool
- type RuntimeAdapterConfig
- type RuntimeInfo
- type SkillMeta
- type StreamEngine
- type TurnRecorder
Constants ¶
View Source
const ( WaterfallModeOff = "off" WaterfallModeSummary = "summary" WaterfallModeFull = "full" )
Variables ¶
This section is empty.
Functions ¶
func NormalizeWaterfallMode ¶
func PrintEffectiveConfig ¶
func PrintEffectiveConfig(out io.Writer, repoRoot string, cfg EffectiveConfig, timeoutMs int)
func PrintRuntimeEffectiveConfig ¶
func PrintRuntimeEffectiveConfig(out io.Writer, eng RuntimeInfo, timeoutMs int)
func RunInteractiveShell ¶
func TurnRecorderMiddleware ¶
func TurnRecorderMiddleware(recorder *TurnRecorder) middleware.Middleware
Types ¶
type EffectiveConfig ¶
type InteractiveShell ¶
type InteractiveShell struct {
// contains filtered or unexported fields
}
func NewInteractiveShell ¶
func NewInteractiveShell(cfg InteractiveShellConfig) *InteractiveShell
func (*InteractiveShell) Run ¶
func (s *InteractiveShell) Run(ctx context.Context, in io.ReadCloser, out, errOut io.Writer) error
type InteractiveShellConfig ¶
type ModelTurnStat ¶
type ReplEngine ¶
type ReplEngine interface {
StreamEngine
ModelName() string
Skills() []SkillMeta
SandboxBackend() string
}
type RuntimeAdapter ¶
type RuntimeAdapter struct {
// contains filtered or unexported fields
}
func NewRuntimeAdapter ¶
func NewRuntimeAdapter(rt streamRuntime, cfg RuntimeAdapterConfig) *RuntimeAdapter
func (*RuntimeAdapter) ModelName ¶
func (a *RuntimeAdapter) ModelName() string
func (*RuntimeAdapter) ModelTurnCount ¶
func (a *RuntimeAdapter) ModelTurnCount(sessionID string) int
func (*RuntimeAdapter) ModelTurnsSince ¶
func (a *RuntimeAdapter) ModelTurnsSince(sessionID string, offset int) []ModelTurnStat
func (*RuntimeAdapter) RepoRoot ¶
func (a *RuntimeAdapter) RepoRoot() string
func (*RuntimeAdapter) RunStream ¶
func (a *RuntimeAdapter) RunStream(ctx context.Context, sessionID, prompt string) (<-chan api.StreamEvent, error)
func (*RuntimeAdapter) SandboxBackend ¶
func (a *RuntimeAdapter) SandboxBackend() string
func (*RuntimeAdapter) SettingsRoot ¶
func (a *RuntimeAdapter) SettingsRoot() string
func (*RuntimeAdapter) Skills ¶
func (a *RuntimeAdapter) Skills() []SkillMeta
func (*RuntimeAdapter) SkillsDirs ¶
func (a *RuntimeAdapter) SkillsDirs() []string
func (*RuntimeAdapter) SkillsRecursive ¶
func (a *RuntimeAdapter) SkillsRecursive() bool
type RuntimeAdapterConfig ¶
type RuntimeInfo ¶
type StreamEngine ¶
type TurnRecorder ¶
type TurnRecorder = api.ModelTurnRecorder
func NewTurnRecorder ¶
func NewTurnRecorder() *TurnRecorder
Click to show internal directories.
Click to hide internal directories.