Skip to main content
Glama

MemOS-MCP

by qinshu1109
mem_scheduler_prompts.py2.42 kB
INTENT_RECOGNIZING_PROMPT = """You are a user intent recognizer, and your task is to determine whether the user's current question has been satisfactorily answered. You will receive the following information: The user’s current question list (q_list), arranged in chronological order (currently contains only one question); The memory information currently present in the system’s workspace (working_memory_list), i.e., the currently known contextual clues. Your tasks are: Determine whether the user is satisfied with the existing answer; If the user is satisfied, explain the reason and return: "trigger_retrieval": false If the user is not satisfied, meaning the system's answer did not meet their actual needs, please return: "trigger_retrieval": true "missing_evidence": ["Information you infer is missing and needs to be supplemented, such as specific experiences of someone, health records, etc."] Please return strictly according to the following JSON format: {{ "trigger_retrieval": true or false, "missing_evidence": ["The missing evidence needed for the next step of retrieval and completion"] }} The user's question list is: {q_list} The memory information currently present in the system’s workspace is: {working_memory_list} """ MEMORY_RERANKEING_PROMPT = """You are a memory sorter. Your task is to reorder the evidence according to the user's question, placing the evidence that best supports the user's query as close to the front as possible. Please return the newly reordered memory sequence according to the query in the following format, which must be in JSON: {{ "new_order": [...] }} Now the user's question is: {query} The current order is: {current_order}""" FREQ_DETECTING_PROMPT = """You are a memory frequency monitor. Your task is to check which memories in the activation memory list appear in the given answer, and increment their count by 1 for each occurrence. Please return strictly according to the following JSON format: [ {{"memory": ..., "count": ...}}, {{"memory": ..., "count": ...}}, ... ] The answer is: {answer} The activation memory list is: {activation_memory_freq_list} """ PROMPT_MAPPING = { "intent_recognizing": INTENT_RECOGNIZING_PROMPT, "memory_reranking": MEMORY_RERANKEING_PROMPT, "freq_detecting": FREQ_DETECTING_PROMPT, } MEMORY_ASSEMBLY_TEMPLATE = """The retrieved memories are listed as follows:\n\n {memory_text}"""

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/qinshu1109/memos-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server