ccp

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextContinuityProtocol

type ContextContinuityProtocol struct {
	// contains filtered or unexported fields
}

func NewCCP

func NewCCP(db *sql.DB) *ContextContinuityProtocol

func (*ContextContinuityProtocol) Cleanup

func (ccp *ContextContinuityProtocol) Cleanup() error

func (*ContextContinuityProtocol) Init

func (ccp *ContextContinuityProtocol) Init() error

func (*ContextContinuityProtocol) Retrieve

func (ccp *ContextContinuityProtocol) Retrieve(project string, memType MemoryType, limit int) ([]MemoryEntry, error)

func (*ContextContinuityProtocol) Store

func (ccp *ContextContinuityProtocol) Store(entry *MemoryEntry) error

type MemoryEntry

type MemoryEntry struct {
	ID        int64      `json:"id"`
	Type      MemoryType `json:"type"`
	Content   string     `json:"content"`
	SessionID string     `json:"session_id"`
	Project   string     `json:"project"`
	Relevance float64    `json:"relevance"`
	CreatedAt time.Time  `json:"created_at"`
	ExpiresAt time.Time  `json:"expires_at"`
}

type MemoryType

type MemoryType string
const (
	MemoryTask      MemoryType = "task"
	MemoryFinding   MemoryType = "finding"
	MemoryDecision  MemoryType = "decision"
	MemoryKnowledge MemoryType = "knowledge"
)

type Scratchpad

type Scratchpad struct {
	// contains filtered or unexported fields
}

func NewScratchpad

func NewScratchpad(agentID string) *Scratchpad

func (*Scratchpad) List

func (s *Scratchpad) List() map[string]string

func (*Scratchpad) Read

func (s *Scratchpad) Read(key string) string

func (*Scratchpad) Write

func (s *Scratchpad) Write(key, value string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL