memory

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	ID        string    `json:"id"`
	Content   string    `json:"content"`
	CreatedAt time.Time `json:"created_at"`
	Project   string    `json:"project,omitempty"` // プロジェクト名(プロジェクト別メモリの場合)
}

Memory はユーザーの記憶エントリ

type MemoryStore

type MemoryStore struct {
	GlobalPath  string
	ProjectPath string
	// contains filtered or unexported fields
}

MemoryStore は記憶のストレージ

func NewMemoryStore

func NewMemoryStore() (*MemoryStore, error)

NewMemoryStore は新しいMemoryStoreを作成

func (*MemoryStore) Add

func (ms *MemoryStore) Add(content string, isProject bool) (*Memory, error)

Add は新しい記憶を追加

func (*MemoryStore) Clear

func (ms *MemoryStore) Clear(projectOnly bool) error

Clear は全メモリを削除

func (*MemoryStore) Delete

func (ms *MemoryStore) Delete(id string) error

Delete は指定IDのメモリを削除

func (*MemoryStore) GetMemoriesAsText

func (ms *MemoryStore) GetMemoriesAsText() string

GetMemoriesAsText はシステムプロンプト用のテキストを生成

func (*MemoryStore) List

func (ms *MemoryStore) List() []Memory

List は全メモリを返す

func (*MemoryStore) Load

func (ms *MemoryStore) Load() error

Load はメモリを読み込み(プロジェクト別 → グローバルの順)

func (*MemoryStore) Save

func (ms *MemoryStore) Save() error

Save はメモリを保存

Jump to

Keyboard shortcuts

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