Documentation
¶
Index ¶
- Constants
- type Actor
- type CompactResponse
- type EmbedInput
- type ForgetInput
- type GCInput
- type ImportInput
- type ImportResult
- type LinkInput
- type LogInput
- type Options
- type RecallInput
- type ReceiptDocument
- type ReceiptInput
- type RelatedInput
- type RelatedResult
- type RememberInput
- type Result
- type SearchInput
- type Service
- func (s *Service) DB() *store.DB
- func (s *Service) Embed(actor Actor, req EmbedInput) (Result, error)
- func (s *Service) Forget(actor Actor, req ForgetInput) (Result, error)
- func (s *Service) GC(actor Actor, req GCInput) (Result, error)
- func (s *Service) Import(actor Actor, req ImportInput) (Result, error)
- func (s *Service) Link(actor Actor, req LinkInput) (Result, error)
- func (s *Service) Log(actor Actor, req LogInput) (Result, error)
- func (s *Service) Recall(actor Actor, req RecallInput) (Result, error)
- func (s *Service) Receipt(actor Actor, req ReceiptInput) (Result, error)
- func (s *Service) Related(actor Actor, req RelatedInput) (Result, error)
- func (s *Service) Remember(actor Actor, req RememberInput) (Result, error)
- func (s *Service) Search(actor Actor, req SearchInput) (Result, error)
- func (s *Service) Status(actor Actor) (Result, error)
- func (s *Service) Viz(actor Actor, req VizInput) (Result, error)
- type VizInput
Constants ¶
View Source
const ( RoleUser = model.RoleUser RoleOrg = model.RoleOrg )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
Actor is the authenticated (or local) caller. On the server, Principal and Role come from a verified JWT sub/role — never from the request body.
type CompactResponse ¶
type CompactResponse struct {
Results []compactResult `json:"results"`
Hint string `json:"hint,omitempty"`
}
func ToCompact ¶
func ToCompact(resp search.RecallResponse) CompactResponse
ToCompact projects a full RecallResponse into the compact LLM-friendly shape.
type EmbedInput ¶
type ForgetInput ¶
type ForgetInput struct {
ID string
}
type ImportInput ¶
type ImportResult ¶
type RecallInput ¶
type ReceiptDocument ¶
type ReceiptDocument struct {
Schema string `json:"schema"`
GeneratedAt string `json:"generated_at"`
Store string `json:"store"`
Limit int `json:"limit"`
Count int `json:"count"`
Privacy map[string]any `json:"privacy"`
Events []map[string]any `json:"events"`
}
func BuildReceipt ¶
func BuildReceipt(storeName string, limit int, entries []store.OplogEntry, generatedAt time.Time) ReceiptDocument
type ReceiptInput ¶
type ReceiptInput struct {
Limit int
}
type RelatedInput ¶
type RelatedResult ¶
type RelatedResult struct {
ID string `json:"id"`
Content string `json:"content"`
Category string `json:"category"`
Importance int `json:"importance"`
Depth int `json:"depth"`
EdgeType string `json:"via_edge_type,omitempty"`
OwnerPrincipal string `json:"owner_principal,omitempty"`
Layer string `json:"layer,omitempty"`
}
type RememberInput ¶
type SearchInput ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the single Memory implementation used by the local CLI and mnemon-server.
Click to show internal directories.
Click to hide internal directories.