Documentation
¶
Overview ¶
Package defaults is what runs when the caller supplies nothing: one no-op or built-in implementation per optional interface, so no other package has to check for nil.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTransientLLMError ¶
IsTransientLLMError reports true for an iteration deadline, EOF, an empty reply, an idle stream and a reset connection.
Types ¶
type Classifier ¶
type Classifier struct{}
Classifier is the built-in retry classifier. Implements modelcall.ErrorClassifier.
func (Classifier) IsTransient ¶
func (Classifier) IsTransient(err error) bool
type FullHistory ¶
type FullHistory struct{}
FullHistory sends the whole history to the model. Implements engine.HistoryCompactor.
type NoIdentity ¶
type NoIdentity struct{}
NoIdentity reports no provider or model. Implements audit.ModelIdentifier.
func (NoIdentity) Identity ¶
func (NoIdentity) Identity() (provider, model string)
type TemperatureOnly ¶
type TemperatureOnly struct{}
TemperatureOnly passes just the temperature. A negative temperature means "not set": nothing is sent, so the provider's default applies (models like gpt-5 reject any temperature but their own). Implements modelcall.OptionsBuilder.