Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SnapshotCompactor ¶
type SnapshotCompactor struct {
// contains filtered or unexported fields
}
SnapshotCompactor performs semantic compression and quality verification.
func New ¶
func New(repo *contextstore.Repository) *SnapshotCompactor
func (*SnapshotCompactor) CompactPromptPack ¶
func (c *SnapshotCompactor) CompactPromptPack(ctx context.Context, endpointID string, targetInputTokens int, in model.PromptPack) (model.PromptPack, bool, verifier.VerifyResult, error)
func (*SnapshotCompactor) CompactThread ¶
func (c *SnapshotCompactor) CompactThread(ctx context.Context, endpointID string, threadID string, turns []model.DialogueTurn, level string) (string, error)
Click to show internal directories.
Click to hide internal directories.