Versions in this module Expand all Collapse all v0 v0.2.0 Jul 14, 2026 v0.1.0 Jun 22, 2026 Changes in this version + func HasIncompleteTodos(todos []Todo) bool + func HashID(id string) string + func MarshalTodos(todos []Todo) ([]byte, error) + type Service interface + Create func(ctx context.Context, title string) (Session, error) + CreateAgentToolSessionID func(messageID, toolCallID string) string + CreateTaskSession func(ctx context.Context, toolCallID, parentSessionID, title string) (Session, error) + CreateTitleSession func(ctx context.Context, parentSessionID string) (Session, error) + Delete func(ctx context.Context, id string) error + Get func(ctx context.Context, id string) (Session, error) + GetLast func(ctx context.Context) (Session, error) + IsAgentToolSession func(sessionID string) bool + List func(ctx context.Context) ([]Session, error) + ParseAgentToolSessionID func(sessionID string) (messageID string, toolCallID string, ok bool) + Rename func(ctx context.Context, id string, title string) error + Save func(ctx context.Context, session Session) (Session, error) + UpdateTitleAndUsage func(ctx context.Context, sessionID, title string, ...) error + type Session struct + CompletionTokens int64 + Cost float64 + CreatedAt int64 + EstimatedUsage bool + ID string + MessageCount int64 + ParentSessionID string + PromptTokens int64 + SummaryMessageID string + Title string + Todos []Todo + UpdatedAt int64 + type Todo struct + ActiveForm string + Content string + Description string + ID string + Owner string + Status TodoStatus + func UnmarshalTodos(data []byte) ([]Todo, error) + type TodoStatus string + const TodoStatusCompleted + const TodoStatusInProgress + const TodoStatusPending