You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
CompactionConfig(summarizer=..., summary_tokens=...): a compaction summary written on a
model client the worker registers by name (AgentRuntime(summarizers={"fast": client}),
configured with the model and reasoning effort the app wants), with its output capped.
A request that client cannot take (its declared window or image limit) is summarized on
the agent's model; a summary that reaches the cap, or a summarizer call that fails, is
written again on the agent's model with the default cap, so a summary is never cut
short. The capped prompt asks for a summary that fits. Each summary call logs its model,
seconds and tokens (actant.compaction.summary).
CompactionConfig(background=...): compaction written ahead of need. Past that fraction
of the window (or of the image limit) a turn still runs, and a summary of everything
before the open turn is written beside the next turns (new activities summarize_context and store_summary). It is stored at the next turn boundary after
it is ready, with every message since kept after it, or when the thread goes idle. A
turn waits on a summary only at threshold, and then on the one already in flight.
Off by default; keep and the threshold behave as before. RunTurnInput gains summary and admitted, TurnResult gains summarize, CompactionTrigger gains through.