Documentation
¶
Index ¶
- type Memory
- type MemoryStore
- func (ms *MemoryStore) Add(content string, isProject bool) (*Memory, error)
- func (ms *MemoryStore) Clear(projectOnly bool) error
- func (ms *MemoryStore) Delete(id string) error
- func (ms *MemoryStore) GetMemoriesAsText() string
- func (ms *MemoryStore) List() []Memory
- func (ms *MemoryStore) Load() error
- func (ms *MemoryStore) Save() error
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 (*MemoryStore) Add ¶
func (ms *MemoryStore) Add(content string, isProject bool) (*Memory, error)
Add は新しい記憶を追加
func (*MemoryStore) GetMemoriesAsText ¶
func (ms *MemoryStore) GetMemoriesAsText() string
GetMemoriesAsText はシステムプロンプト用のテキストを生成
Click to show internal directories.
Click to hide internal directories.