Documentation
¶
Index ¶
- func FindDuplicate(idx DedupIndex, dst provider.Provider, conv *model.Conversation) (*provider.WriteResult, bool)
- func FindExistingMigration(storagePath, originDigest string) (string, bool)
- func ResolveSession(ctx context.Context, reg *registry.Registry, idx *index.Store, id, from string) (*model.Summary, provider.Provider, error)
- type DedupIndex
- type Engine
- type Options
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDuplicate ¶
func FindDuplicate(idx DedupIndex, dst provider.Provider, conv *model.Conversation) (*provider.WriteResult, bool)
FindDuplicate searches the index and target provider storage for an existing migration of conv.
func FindExistingMigration ¶
FindExistingMigration scans JSONL storage for agenthop_migration metadata matching origin digest.
Types ¶
type DedupIndex ¶ added in v0.1.2
type DedupIndex interface {
FindMigration(providerID, originDigest string) (sessionID, storagePath string, ok bool, err error)
}
DedupIndex is satisfied by index.Store for migration deduplication.
type Result ¶
type Result struct {
Source *model.Conversation
Write *provider.WriteResult
Resume string
TargetName string
AlreadyExists bool
}
Click to show internal directories.
Click to hide internal directories.