Documentation
¶
Index ¶
Constants ¶
View Source
const ProviderClaude = "claude"
View Source
const ProviderCodex = "codex"
View Source
const ProviderGemini = "gemini"
View Source
const ProviderKimi = "kimi"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Run(ctx context.Context, req RunRequest) (RunResult, error)
}
func NewBackend ¶
func NewBackend(cfg FactoryConfig) (Backend, error)
type ClaudeConfig ¶
type CodexConfig ¶
type CodexConfig struct {
Command string
Timeout time.Duration
DefaultIdleTimeout time.Duration
HighIdleTimeout time.Duration
XHighIdleTimeout time.Duration
Model string
ReasoningEffort string
Env map[string]string
PromptPrefix string
WorkspaceDir string
DefaultExecPolicy ExecPolicyConfig
// ProfileOverrides maps outer profile name -> per-profile runner overrides.
ProfileOverrides map[string]ProfileRunnerConfig
}
type ExecPolicyConfig ¶ added in v0.4.0
type FactoryConfig ¶
type FactoryConfig struct {
Provider string
Prompts *prompting.Loader
Codex CodexConfig
Claude ClaudeConfig
Gemini GeminiConfig
Kimi KimiConfig
}
type GeminiConfig ¶ added in v0.5.10
type KimiConfig ¶
type MultiBackend ¶ added in v0.5.18
type MultiBackend struct {
// contains filtered or unexported fields
}
func NewMultiBackend ¶ added in v0.5.18
func NewMultiBackend(defaultProvider string, backends map[string]Backend) (*MultiBackend, error)
func (*MultiBackend) Run ¶ added in v0.5.18
func (m *MultiBackend) Run(ctx context.Context, req RunRequest) (RunResult, error)
type ProfileRunnerConfig ¶ added in v0.6.3
type ProfileRunnerConfig struct {
Command string
Timeout time.Duration
PromptPrefix string
ProviderProfile string
ExecPolicy ExecPolicyConfig
}
ProfileRunnerConfig carries per-profile overrides for command, timeout, prompt prefix, and provider-specific profile selectors. Keyed by the outer llm_profiles map name (e.g. "executor", "reviewer").
type ProgressFunc ¶
type ProgressFunc func(step string)
type Provider ¶
type Provider interface {
Backend() Backend
}
func NewProvider ¶
func NewProvider(cfg FactoryConfig) (Provider, error)
type RunRequest ¶
type RunRequest struct {
ThreadID string
AgentName string
UserText string
Scene string
Provider string
Model string
Profile string
ReasoningEffort string
Personality string
NoReplyToken string
PromptPrefix string
WorkspaceDir string
ExecPolicy ExecPolicyConfig
Env map[string]string
OnProgress ProgressFunc
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.