Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteArgs ¶ added in v0.2.0
type DeleteArgs struct {
ID int `json:"id"`
}
DeleteArgs are the arguments for the delete_memory tool.
type DeleteResult ¶ added in v0.2.0
DeleteResult is the result of the delete_memory tool.
type Entry ¶
type Entry struct {
ID int `json:"id"`
Text string `json:"text"`
Author string `json:"author"`
Timestamp string `json:"timestamp"`
}
Entry represents a single memory entry returned by search.
type SaveArgs ¶
type SaveArgs struct {
Content string `json:"content"`
Category string `json:"category,omitempty"`
}
SaveArgs are the arguments for the save_to_memory tool.
type SaveResult ¶
SaveResult is the result of the save_to_memory tool.
type SearchArgs ¶
type SearchArgs struct {
Query string `json:"query"`
}
SearchArgs are the arguments for the search_memory tool.
type SearchResult ¶
SearchResult is the result of the search_memory tool.
type Toolset ¶
type Toolset struct {
// contains filtered or unexported fields
}
Toolset provides tools for the agent to interact with long-term memory.
func NewToolset ¶
func NewToolset(cfg ToolsetConfig) (*Toolset, error)
NewToolset creates a new toolset for memory operations.
type ToolsetConfig ¶
type ToolsetConfig struct {
// MemoryService is the memory service to use (can be any implementation).
// If it also implements memorytypes.ExtendedMemoryService, update and delete tools will be available.
MemoryService memorytypes.MemoryService
// AppName is used to scope memory operations
AppName string
// DisableExtendedTools prevents registration of update_memory and delete_memory
// even when the MemoryService supports them.
DisableExtendedTools bool
}
ToolsetConfig holds configuration for the memory toolset.
type UpdateArgs ¶ added in v0.2.0
UpdateArgs are the arguments for the update_memory tool.
type UpdateResult ¶ added in v0.2.0
UpdateResult is the result of the update_memory tool.