(context.Context)
| 154 | } |
| 155 | |
| 156 | func (t *ToolSet) Tools(context.Context) ([]tools.Tool, error) { |
| 157 | return []tools.Tool{ |
| 158 | { |
| 159 | Name: ToolNameAddMemory, |
| 160 | Category: "memory", |
| 161 | Description: "Add a new memory to the database", |
| 162 | Parameters: tools.MustSchemaFor[AddMemoryArgs](), |
| 163 | OutputSchema: tools.MustSchemaFor[string](), |
| 164 | Handler: tools.NewHandler(t.handleAddMemory), |
| 165 | Annotations: tools.ToolAnnotations{ |
| 166 | Title: "Add Memory", |
| 167 | }, |
| 168 | }, |
| 169 | { |
| 170 | Name: ToolNameGetMemories, |
| 171 | Category: "memory", |
| 172 | Description: "Retrieve all stored memories", |
| 173 | OutputSchema: tools.MustSchemaFor[[]database.UserMemory](), |
| 174 | Handler: tools.NewHandler(t.handleGetMemories), |
| 175 | Annotations: tools.ToolAnnotations{ |
| 176 | ReadOnlyHint: true, |
| 177 | Title: "Get Memories", |
| 178 | }, |
| 179 | }, |
| 180 | { |
| 181 | Name: ToolNameDeleteMemory, |
| 182 | Category: "memory", |
| 183 | Description: "Delete a specific memory by ID", |
| 184 | Parameters: tools.MustSchemaFor[DeleteMemoryArgs](), |
| 185 | OutputSchema: tools.MustSchemaFor[string](), |
| 186 | Handler: tools.NewHandler(t.handleDeleteMemory), |
| 187 | Annotations: tools.ToolAnnotations{ |
| 188 | Title: "Delete Memory", |
| 189 | }, |
| 190 | }, |
| 191 | { |
| 192 | Name: ToolNameSearchMemories, |
| 193 | Category: "memory", |
| 194 | Description: "Search memories by keywords and/or category. More efficient than retrieving all memories.", |
| 195 | Parameters: tools.MustSchemaFor[SearchMemoriesArgs](), |
| 196 | OutputSchema: tools.MustSchemaFor[[]database.UserMemory](), |
| 197 | Handler: tools.NewHandler(t.handleSearchMemories), |
| 198 | Annotations: tools.ToolAnnotations{ |
| 199 | ReadOnlyHint: true, |
| 200 | Title: "Search Memories", |
| 201 | }, |
| 202 | }, |
| 203 | { |
| 204 | Name: ToolNameUpdateMemory, |
| 205 | Category: "memory", |
| 206 | Description: "Update an existing memory's content and/or category by ID", |
| 207 | Parameters: tools.MustSchemaFor[UpdateMemoryArgs](), |
| 208 | OutputSchema: tools.MustSchemaFor[string](), |
| 209 | Handler: tools.NewHandler(t.handleUpdateMemory), |
| 210 | Annotations: tools.ToolAnnotations{ |
| 211 | Title: "Update Memory", |
| 212 | }, |
| 213 | }, |
nothing calls this directly
no test coverage detected