Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMemorySchema = "memory" DefaultLLMSchema = llmschema.DefaultSchema DefaultAuthSchema = llmschema.DefaultAuthSchema )
View Source
const MemoryListMax uint64 = 100
Variables ¶
View Source
var Objects string
View Source
var Queries string
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
MemoryInsert `embed:""`
CreatedAt time.Time `json:"created_at,omitempty" help:"Creation timestamp" readonly:""`
ModifiedAt *time.Time `json:"modified_at,omitempty" help:"Last modification timestamp" optional:"" readonly:""`
}
Memory represents a stored memory entry.
type MemoryInsert ¶
type MemoryInsert struct {
Session uuid.UUID `json:"session" help:"Session owning the memory entry"`
Key string `json:"key" help:"Text key for the memory entry"`
MemoryMeta `embed:""`
}
MemoryInsert represents the fields required to create or replace a memory entry.
type MemoryList ¶
type MemoryList struct {
MemoryListRequest `embed:""`
Count uint `json:"count" readonly:""`
Body []*Memory `json:"body,omitzero"`
}
MemoryList represents a paginated list of memory entries.
type MemoryListRequest ¶
type MemoryListRequest struct {
pg.OffsetLimit
Session *uuid.UUID `json:"session,omitzero" help:"Restrict results to a session and recursively include its parent sessions" optional:""`
Q string `` /* 190-byte string literal not displayed */
Start *time.Time `json:"start,omitempty" help:"Return memories on or after this timestamp" optional:""`
End *time.Time `json:"end,omitempty" help:"Return memories on or before this timestamp" optional:""`
}
MemoryListRequest represents a request to list or search memory entries.
func (MemoryListRequest) Query ¶
func (req MemoryListRequest) Query() url.Values
type MemoryMeta ¶
type MemoryMeta struct {
Value *string `json:"value,omitempty" help:"Text value stored for the memory key" optional:""`
}
MemoryMeta represents the writable/updatable fields for a memory entry.
Click to show internal directories.
Click to hide internal directories.