Documentation
¶
Index ¶
- Constants
- type StoreSummaryCompactConfig
- type StoreSummaryCompactStrategy
- func (s *StoreSummaryCompactStrategy) Apply(ctx context.Context, _ []agentcore.AgentMessage, view []agentcore.AgentMessage, ...) ([]agentcore.AgentMessage, corecontext.StrategyResult, error)
- func (s *StoreSummaryCompactStrategy) ForceApply(ctx context.Context, transcript []agentcore.AgentMessage, ...) ([]agentcore.AgentMessage, corecontext.StrategyResult, error)
- func (s *StoreSummaryCompactStrategy) Name() string
- type WriterRestorePack
Constants ¶
View Source
const WriterSummaryPrompt = `` /* 1161-byte string literal not displayed */
View Source
const WriterSummarySystemPrompt = `` /* 332-byte string literal not displayed */
View Source
const WriterTurnPrefixPrompt = `` /* 442-byte string literal not displayed */
View Source
const WriterUpdateSummaryPrompt = `` /* 671-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreSummaryCompactStrategy ¶
type StoreSummaryCompactStrategy struct {
// contains filtered or unexported fields
}
func NewStoreSummaryCompact ¶
func NewStoreSummaryCompact(cfg StoreSummaryCompactConfig) *StoreSummaryCompactStrategy
func (*StoreSummaryCompactStrategy) Apply ¶
func (s *StoreSummaryCompactStrategy) Apply(ctx context.Context, _ []agentcore.AgentMessage, view []agentcore.AgentMessage, budget corecontext.Budget) ([]agentcore.AgentMessage, corecontext.StrategyResult, error)
func (*StoreSummaryCompactStrategy) ForceApply ¶
func (s *StoreSummaryCompactStrategy) ForceApply(ctx context.Context, transcript []agentcore.AgentMessage, view []agentcore.AgentMessage, budget corecontext.Budget) ([]agentcore.AgentMessage, corecontext.StrategyResult, error)
func (*StoreSummaryCompactStrategy) Name ¶
func (s *StoreSummaryCompactStrategy) Name() string
type WriterRestorePack ¶
type WriterRestorePack struct {
// contains filtered or unexported fields
}
WriterRestorePack holds pre-assembled context that the Writer needs after compression. It is refreshed by the orchestrator at key lifecycle points (chapter start, commit, recovery) and consumed by the PostSummaryHook as a pure in-memory injection — no I/O in the hook path.
func (*WriterRestorePack) Clear ¶
func (p *WriterRestorePack) Clear()
Clear drops cached data (e.g., when switching chapters).
func (*WriterRestorePack) Hook ¶
func (p *WriterRestorePack) Hook() corecontext.PostSummaryHook
Hook returns a PostSummaryHook that injects the cached restore pack. The hook performs no I/O — it only reads the in-memory pack under a read lock.
func (*WriterRestorePack) Refresh ¶
func (p *WriterRestorePack) Refresh(s *store.Store)
Refresh loads the current chapter's context from store and caches it. Called by the orchestrator before each writing cycle or on recovery.
Click to show internal directories.
Click to hide internal directories.