You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/com/ai/assistance/operit/core/config/SystemToolPrompts.kt
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -627,10 +627,12 @@ object SystemToolPrompts {
627
627
tools =listOf(
628
628
ToolPrompt(
629
629
name ="query_memory",
630
-
description = "Searches the memory library for relevant memories using hybrid search (keyword matching + semantic understanding). Use this when you need to recall past knowledge, look up specific information, or require context. Keywords can be separated by '|' or spaces - each keyword will be independently matched semantically and the results will be combined with weighted scoring. You can use \"*\" as the query to return all memories (optionally filtered by folder_path). When the user attaches a memory folder, a `<memory_context>` will be provided in the prompt. You MUST use the `folder_path` parameter to restrict the search to that folder. **IMPORTANT**: For document nodes (uploaded files), this tool uses vector search to return ONLY the most relevant chunks matching your query, NOT the entire document. Results show \"Document: [name], Chunk X/Y: [content]\" format. To read the complete document or specific parts, use `get_memory_by_title` instead. **NOTE**: When limit > 20, results will only show titles and truncated content to save tokens.",
630
+
description = "Searches the memory library for relevant memories using hybrid search (keyword matching + semantic understanding). Use this when you need to recall past knowledge, look up specific information, or require context. Keywords can be separated by '|' or spaces - each keyword will be independently matched semantically and the results will be combined with weighted scoring. You can use \"*\" as the query to return all memories (optionally filtered by folder_path). You can also filter by creation time using `start_time` / `end_time` (Unix milliseconds). When the user attaches a memory folder, a `<memory_context>` will be provided in the prompt. You MUST use the `folder_path` parameter to restrict the search to that folder. **IMPORTANT**: For document nodes (uploaded files), this tool uses vector search to return ONLY the most relevant chunks matching your query, NOT the entire document. Results show \"Document: [name], Chunk X/Y: [content]\" format. To read the complete document or specific parts, use `get_memory_by_title` instead. **NOTE**: When limit > 20, results will only show titles and truncated content to save tokens.",
631
631
parametersStructured =listOf(
632
632
ToolParameterSchema(name ="query", type ="string", description ="string, the keyword or question to search for, or \"*\" to return all memories", required =true),
633
633
ToolParameterSchema(name ="folder_path", type ="string", description ="optional, string, the specific folder path to search within", required =false),
634
+
ToolParameterSchema(name ="start_time", type ="integer", description ="optional, Unix timestamp in milliseconds. Filters memories by createdAt >= start_time", required =false),
635
+
ToolParameterSchema(name ="end_time", type ="integer", description ="optional, Unix timestamp in milliseconds. Filters memories by createdAt <= end_time", required =false),
634
636
ToolParameterSchema(name ="threshold", type ="number", description ="optional, float 0.0-1.0, semantic similarity threshold, lower values return more results", required =false, default ="0.25"),
635
637
ToolParameterSchema(name ="limit", type ="integer", description ="optional, int >= 1, maximum number of results to return. When > 20, only titles and truncated content are returned", required =false, default ="5")
0 commit comments