AutoCompactorSources class

Source for the AutoCompactor smol/main summarizers. Hosts plug in their own resolver:

  • the CLI uses config.modelRolesResolver?.resolveRole(smolModelRole)
  • the Flutter app uses _taskModelsStore?.overrideFor(TaskRole.smol)

Either source may be null when no smol is configured; in that case AutoCompactor.fromSources falls back to mainStream for both summarizers and skips the smol→main fallback (one attempt only — retrying the same call wouldn't help).

Constructors

AutoCompactorSources({required StreamFunction? smolStream, required Model? smolModel, required StreamFunction mainStream, required Model mainModel})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
mainModel → Model
Fallback summarizer model (typically the agent's main model).
final
mainStream → StreamFunction
Fallback summarizer stream (typically the main chat stream).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smolModel → Model?
The Model spec the smol summarizer should call. null together with smolStream → no real smol.
final
smolStream → StreamFunction?
When null, the AutoCompactor uses mainStream + mainModel for both summarizers and skips the fallback (single attempt).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited