Versions in this module Expand all Collapse all v0 v0.1.1 Oct 27, 2026 v0.1.0 Oct 27, 2026 Changes in this version + var ClaudeModels = []string + var CodexModels = []string + var CopilotModels = []string + var ErrRateLimited = errors.New("rate limited") + var OllamaPopularModels = []string + var OpenCodeAvailableModels = []string + func ApplyModelMemory(cfg *config.Config) + func ClaudeListModels() ([]string, error) + func CodexListModels() ([]string, error) + func ContextTokensForRAM(cfg config.AgentConfig, ramGB float64) int + func ContextTokensForWeights(weightBytes int64, ramGB float64) int + func CopilotListModels() ([]string, error) + func IsLocalRunner(cfg config.AgentConfig) bool + func LMStudioListInstalled() ([]string, error) + func MLXListInstalled() ([]string, error) + func OllamaInstalledWithSizes() (map[string]int64, error) + func OllamaListInstalled() ([]string, error) + func OllamaModelSizeBytes(model string) int64 + func OpenCodeListModels() ([]string, error) + func Ping(provider, model string) error + func ProviderReachable(provider string) error + func ResolveSkills(systemPrompt string, skillNames []string, loader *skills.Loader) string + func UnloadFor(ctx context.Context, cfg config.AgentConfig) error + type BudgetRunner struct + func (r *BudgetRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type ClaudeRunner struct + Binary string + Model string + func (r ClaudeRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type CodexRunner struct + Binary string + Model string + func (r CodexRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type CompletionRequest struct + Messages []ConvMessage + Model string + Skills []string + SystemPrompt string + type ConvMessage struct + Content string + Role string + type CopilotRunner struct + Binary string + Model string + func (r CopilotRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type LLMRunner interface + Complete func(ctx context.Context, req CompletionRequest) (<-chan Token, error) + func New(cfg config.AgentConfig, skillLoader *skills.Loader, promptLanguage string) (LLMRunner, error) + type LMStudioRunner struct + BaseURL string + Model string + func NewLMStudioRunner(model string) *LMStudioRunner + func (r *LMStudioRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + func (r *LMStudioRunner) Unload(ctx context.Context, model string) error + type LocalModel struct + Model string + Runner string + WeightBytes int64 + func ListLocalModels() []LocalModel + type MLXRunner struct + BaseURL string + Model string + func NewMLXRunner(model string) *MLXRunner + func (r *MLXRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + func (r *MLXRunner) Unload(ctx context.Context, model string) error + type MockRunner struct + MockUsage *TokenUsage + Requests []CompletionRequest + Responses []string + func (m *MockRunner) Complete(_ context.Context, req CompletionRequest) (<-chan Token, error) + func (m *MockRunner) Reset() + type OllamaRunner struct + BaseURL string + Model string + NumCtx int + func NewOllamaRunner(model string) *OllamaRunner + func (r *OllamaRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + func (r *OllamaRunner) Unload(ctx context.Context, model string) error + type OpenCodeRunner struct + Binary string + Model string + func (r OpenCodeRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type RateLimitError struct + Detail string + Provider string + func ClassifyRateLimit(provider string, fragments ...string) *RateLimitError + func (e *RateLimitError) Error() string + func (e *RateLimitError) Is(target error) bool + type SkillRunner struct + func (r *SkillRunner) Complete(ctx context.Context, req CompletionRequest) (<-chan Token, error) + type Token struct + Done bool + Error error + Reasoning string + Text string + Usage *TokenUsage + type TokenUsage struct + Estimated bool + InputTokens int + OutputTokens int + type Unloader interface + Unload func(ctx context.Context, model string) error