Documentation
¶
Overview ¶
Package archivist provides the Archivist agent that extracts and manages facts from conversations for long-term memory.
Index ¶
Constants ¶
View Source
const ( // ParamMessages is the key for messages to process ([]storage.Message). ParamMessages = "messages" // ParamFacts is the key for current facts ([]storage.Fact). ParamFacts = "facts" // ParamReferenceDate is the key for the reference date (time.Time). ParamReferenceDate = "reference_date" // ParamUser is the key for user info (*storage.User, optional). ParamUser = "user" )
Request parameters for Archivist agent.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddedFact ¶
type AddedFact struct {
Entity string `json:"entity"`
Relation string `json:"relation"`
Content string `json:"content"`
Category string `json:"category"`
Type string `json:"type"`
Importance int `json:"importance"`
Reason string `json:"reason"`
}
AddedFact represents a new fact to add.
type Archivist ¶
type Archivist struct {
// contains filtered or unexported fields
}
Archivist extracts and manages facts from conversations.
func (*Archivist) Capabilities ¶
func (a *Archivist) Capabilities() agent.Capabilities
Capabilities returns the agent's capabilities.
func (*Archivist) Description ¶
Description returns a human-readable description.
type FactView ¶
type FactView struct {
ID int64 `json:"id"`
Entity string `json:"entity"`
Relation string `json:"relation"`
Content string `json:"content"`
Category string `json:"category"`
Type string `json:"type"`
Importance int `json:"importance"`
}
FactView is a simplified view of a fact for the prompt.
type RemovedFact ¶
RemovedFact represents a fact to be deleted.
type Result ¶
type Result struct {
Added []AddedFact `json:"added"`
Updated []UpdatedFact `json:"updated"`
Removed []RemovedFact `json:"removed"`
}
Result contains the memory update decisions.
Click to show internal directories.
Click to hide internal directories.