Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions policy/memory-action.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ const (
// MemorySearchAction - search (corpus-grep) the objects in a cortex.
MemorySearchAction MemoryAction = "memory:Search"

// MemoryGetObjectBioAction - read an object's biography in a cortex: who
// authored each version, when, and from where.
MemoryGetObjectBioAction MemoryAction = "memory:GetObjectBio"

// AllMemoryActions - all AIStor Memory API actions.
AllMemoryActions MemoryAction = "memory:*"
)
Expand All @@ -84,6 +88,7 @@ var SupportedMemoryActions = map[MemoryAction]struct{}{
MemoryDeleteAgentAction: {},
MemoryListAgentsAction: {},
MemorySearchAction: {},
MemoryGetObjectBioAction: {},
AllMemoryActions: {},
}

Expand Down
1 change: 1 addition & 0 deletions policy/memory-action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func TestMemoryActionIsValid(t *testing.T) {
{MemoryDeleteAgentAction, true},
{MemoryListAgentsAction, true},
{MemorySearchAction, true},
{MemoryGetObjectBioAction, true},
{AllMemoryActions, true},
{MemoryAction("memory:FooBar"), false},
{MemoryAction("s3tables:CreateTable"), false},
Expand Down
Loading