Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHTTPClient ¶
DefaultHTTPClient returns a hardened HTTP client shared by commands that need to communicate with AI providers.
Types ¶
type ModelEndpoint ¶
ModelEndpoint describes the credentials and endpoint overrides for a specific model class.
type RuntimeContext ¶
type RuntimeContext struct {
Provider string
BaseURL string
APIKey string
LightModel string
HeavyModel string
Fallback string
LightEndpoint ModelEndpoint
HeavyEndpoint ModelEndpoint
FallbackEndpoint ModelEndpoint
HTTPClient *http.Client
AnalysisTimeout time.Duration
WriterTimeout time.Duration
}
RuntimeContext exposes sanitized configuration and shared dependencies that can be reused across commands without reaching into unrelated domains directly.
func BuildRuntimeContext ¶
func BuildRuntimeContext() (*RuntimeContext, error)
BuildRuntimeContext constructs a RuntimeContext from viper configuration and returns actionable pointers commands can share without duplicating sensitive logic.
func (*RuntimeContext) RedactedCopy ¶
func (rc *RuntimeContext) RedactedCopy() RuntimeContext
RedactedCopy provides a safe snapshot that can be logged or passed to prompts without leaking the API key.
Click to show internal directories.
Click to hide internal directories.