Documentation
¶
Index ¶
- Variables
- type ContextSource
- type MemoryStore
- func (s *MemoryStore) Backend() string
- func (s *MemoryStore) Create(_ context.Context, project Project) (Project, error)
- func (s *MemoryStore) Delete(_ context.Context, id string) error
- func (s *MemoryStore) Get(_ context.Context, id string) (Project, bool, error)
- func (s *MemoryStore) List(_ context.Context) ([]Project, error)
- func (s *MemoryStore) Update(_ context.Context, id string, update func(*Project)) (Project, error)
- type Project
- type Root
- type Store
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ContextSource ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Backend ¶
func (s *MemoryStore) Backend() string
type Project ¶
type Project struct {
ID string
Name string
Description string
Roots []Root
ContextSources []ContextSource
DefaultRootID string
DefaultProvider string
DefaultModel string
DefaultAgentProfile string
DefaultToolsEnabled *bool
DefaultWorkspaceMode string
DefaultSystemPrompt string
DefaultCompactToolOutput *bool
CreatedAt time.Time
UpdatedAt time.Time
LastOpenedAt time.Time
}
type Store ¶
type Store interface {
Backend() string
Create(ctx context.Context, project Project) (Project, error)
Get(ctx context.Context, id string) (Project, bool, error)
List(ctx context.Context) ([]Project, error)
Update(ctx context.Context, id string, update func(*Project)) (Project, error)
Delete(ctx context.Context, id string) error
}
Click to show internal directories.
Click to hide internal directories.