Documentation
¶
Overview ¶
Package recallsetup holds the private on-disk configuration shared by the Recall launcher and the local server. It never lives in a plugin cache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock uses a kernel lock, released even after a crash. Never unlink the lock file: a replacement inode would let two servers own the same data directory.
func LockWait ¶
LockWait is Lock for a lock that is only ever held briefly, retrying until timeout instead of failing at once. Several processes that open the same local directory at the same moment each run setup; without waiting, all but one of them fail even though the next would have found the server already running. It must not be used for a lock held for a process's whole life, such as the server's own.
Types ¶
type Config ¶
type Config struct {
Executable string `json:"executable"`
Server string `json:"server,omitempty"`
URL string `json:"url,omitempty"`
Key string `json:"api_key,omitempty"`
Collection string `json:"collection"`
Predicates string `json:"predicates,omitempty"`
// ExtractModel is the provider:model that works out the statements in
// remembered text. With one, Recall serves the text-only tools.
ExtractModel string `json:"extract_model,omitempty"`
// Open lets writes define predicates, so no predicates file is needed.
// Setups made before it existed keep a closed vocabulary.
Open bool `json:"open,omitempty"`
// Typed keeps the typed tools even when a model is saved: the agent
// names predicates and the model extracts nothing.
Typed bool `json:"typed,omitempty"`
// EmbedModel is the provider:model[@dim] that embeds memory, so recall
// searches by meaning. Empty is Recall's built-in word search, which is
// what every setup made before it existed keeps.
EmbedModel string `json:"embed_model,omitempty"`
}