(sessionId)
| 197 | } |
| 198 | |
| 199 | static async getUserMemories(userId, limit = 3) { |
| 200 | const response = await axios.get(`${API_BASE_URL}/memory/users/${userId}/memories`, { |
| 201 | params: { limit } |
| 202 | }); |
| 203 | return response.data; |
| 204 | } |
| 205 | |
| 206 | static async searchUserMemories(userId, query, limit = 5) { |
| 207 | const response = await axios.get(`${API_BASE_URL}/memory/users/${userId}/memories/search`, { |
| 208 | params: { query, n_results: limit, days_limit: 3650 } |
| 209 | }); |
| 210 | return response.data; |
no test coverage detected