MCPcopy Create free account

hub / github.com/Memento-Teams/Memento / functions

Functions224 in github.com/Memento-Teams/Memento

↓ 1 callersMethod_unzip_file
(self, zip_path: str)
server/documents_tool.py:242
↓ 1 callersFunction_validate_imports
Validate that all imports in code are in the whitelist. Args: code: Python source code to validate whitelist: List of al
server/code_agent.py:162
↓ 1 callersMethodacquire
(self)
server/ai_crawl.py:53
↓ 1 callersFunctionadd_files
Recursively add files and directories to the tree.
server/code_agent.py:706
↓ 1 callersMethodask_question_about_image
Answer *question* about *image_path*.
server/image_tool.py:60
↓ 1 callersFunctionask_question_about_video
Answers a specific question about the content of the video file by analyzing keyframes and optionally its audio transcription, using multimodal G
server/video_tool.py:208
↓ 1 callersFunctionbuild_icl_text
(case: str, plan)
memory/parametric_memory.py:48
↓ 1 callersFunctionbuild_prompt_from_cases
(task_text: str, retrieved_cases: list[dict] | None, original_items: list[dict] | None)
client/no_parametric_cbr.py:131
↓ 1 callersMethodchat
( self, messages: List[Dict[str, Any]], max_tokens: int = 30000, temperature:
server/ai_crawl.py:80
↓ 1 callersMethodcleanup
Clean up resources and close tool server connections.
client/agent_local_server.py:572
↓ 1 callersMethodcleanup
(self)
client/agent.py:250
↓ 1 callersMethodcleanup
(self)
client/no_parametric_cbr.py:484
↓ 1 callersMethodcleanup
(self)
client/parametric_memory_cbr.py:450
↓ 1 callersMethodconnect_to_servers
Connect to MCP tool servers specified by script paths. Args: scripts: List of paths to tool server scripts Rais
client/agent_local_server.py:407
↓ 1 callersMethodconnect_to_servers
(self, scripts: List[str])
client/agent.py:169
↓ 1 callersMethodconnect_to_servers
(self, scripts: List[str])
client/no_parametric_cbr.py:365
↓ 1 callersMethodconnect_to_servers
(self, scripts: List[str])
client/parametric_memory_cbr.py:302
↓ 1 callersFunctioncount_pos_in_subset
(dataset: PairJsonlDataset, indices: List[int])
memory/train_memory_retriever.py:173
↓ 1 callersMethodexecute_terminal_command
Execute a shell command in the workspace directory. Args: command: The shell command to execute.
server/code_agent.py:455
↓ 1 callersMethodextract_excel_content
(self, document_path: str)
server/excel_tool.py:32
↓ 1 callersMethodimage_to_text
Return a detailed caption of *image_path*.
server/image_tool.py:44
↓ 1 callersFunctionis_docker_running
r"""Check if the Docker daemon is running. Returns: bool: True if the Docker daemon is running, False otherwise.
server/interpreters/docker_interpreter.py:15
↓ 1 callersMethodlabels
(self)
memory/train_memory_retriever.py:111
↓ 1 callersFunctionllm_judge
(question: str, ground_truth: Any, pred_answer: str)
client/no_parametric_cbr.py:504
↓ 1 callersFunctionllm_judge
(question: str, ground_truth: Any, pred_answer: str)
client/parametric_memory_cbr.py:473
↓ 1 callersFunctionmain
()
client/no_parametric_cbr.py:529
↓ 1 callersFunctionmain
()
client/parametric_memory_cbr.py:524
↓ 1 callersFunctionmain
()
memory/parametric_memory.py:80
↓ 1 callersFunctionmain
()
memory/train_memory_retriever.py:194
↓ 1 callersFunctionmain_async
Main async function that sets up and runs the AgentFly client. Args: args: Parsed command line arguments
client/agent_local_server.py:615
↓ 1 callersFunctionmain_async
(args)
client/agent.py:280
↓ 1 callersFunctionparse_args
Parse command line arguments for the AgentFly client. Returns: Parsed arguments namespace
client/agent_local_server.py:581
↓ 1 callersFunctionparse_args
()
client/agent.py:258
↓ 1 callersMethodprocess_query
Process a user query through the hierarchical AI system. This is the main method that: 1. Gets the meta-planner to break dow
client/agent_local_server.py:467
↓ 1 callersMethodprocess_query
(self, query: str, file: str, task_id: str = "interactive")
client/agent.py:204
↓ 1 callersMethodprocess_query
(self, query: str, task_id: str)
client/no_parametric_cbr.py:399
↓ 1 callersMethodprocess_query
(self, query: str, task_id: str = "interactive")
client/parametric_memory_cbr.py:365
↓ 1 callersMethodrun_file
r"""Executes a code file in a subprocess and captures its output. Args: file (Path): The path object of the file to run.
server/interpreters/subprocess_interpreter.py:78
↓ 1 callersFunctionsave_memory_entry
(query: str, plan: str, case_label: str)
client/parametric_memory_cbr.py:513
↓ 1 callersFunctionsave_training_data
(query: str, retrieved_cases: List[Dict[str, Any]], is_correct: bool)
client/parametric_memory_cbr.py:499
↓ 1 callersFunctionstratified_split_indices
(labels: List[int], val_ratio: float, seed: int, stratify: bool = True)
memory/train_memory_retriever.py:149
↓ 1 callersFunctiontrim_messages
Trim message history to fit within token limit while preserving system message. Args: messages: List of message dictionaries
client/agent_local_server.py:315
↓ 1 callersFunctiontrim_messages
(messages: List[Dict[str, str]], max_tokens: int, model="gpt-3.5-turbo")
client/agent.py:142
↓ 1 callersFunctiontrim_messages
(messages: List[Dict[str, str]], max_tokens: int, model="gpt-3.5-turbo")
client/no_parametric_cbr.py:200
↓ 1 callersFunctiontrim_messages
(messages: List[Dict[str, str]], max_tokens: int = MAX_CTX)
client/parametric_memory_cbr.py:188
Method__call__
(self, batch: List[Dict[str, Any]])
memory/train_memory_retriever.py:119
Method__del__
r"""Destructor for the E2BInterpreter class. This method ensures that the e2b sandbox is killed when the interpreter is deleted.
server/interpreters/e2b_interpreter.py:43
Method__del__
r"""Clean up the kernel and client.
server/interpreters/ipython_interpreter.py:39
Method__del__
r"""Destructor for the DockerInterpreter class. This method ensures that the Docker container is removed when the interpreter is dele
server/interpreters/docker_interpreter.py:91
Method__getitem__
(self, idx)
memory/train_memory_retriever.py:108
Method__init__
Initialize OpenAI backend with specified model. Args: model: The OpenAI model to use (e.g., 'gpt-4', 'o3')
client/agent_local_server.py:83
Method__init__
( self, model: str = "qwen3-8b", server_url: str | None = None, api_key: str |
client/agent_local_server.py:167
Method__init__
Initialize the hierarchical client. Args: meta_model: Model name for the meta-planner agent exec_model: Mode
client/agent_local_server.py:360
Method__init__
(self, model: str, is_azure: bool)
client/agent.py:65
Method__init__
(self, meta_model: str, exec_model: str, is_azure: bool = True)
client/agent.py:162
Method__init__
(self, model: str, is_azure: bool)
client/no_parametric_cbr.py:224
Method__init__
(self, meta_model: str, exec_model: str, is_azure: bool)
client/no_parametric_cbr.py:320
Method__init__
(self, model: str, is_azure: bool)
client/parametric_memory_cbr.py:211
Method__init__
(self, meta_model: str, exec_model: str, is_azure: bool = False)
client/parametric_memory_cbr.py:294
Method__init__
( self, model_path: str, model_name: str = "princeton-nlp/sup-simcse-roberta-base",
memory/parametric_memory.py:11
Method__init__
(self, sentence_bert: AutoModel)
memory/train_memory_retriever.py:16
Method__init__
(self, max_calls: int, interval: int)
server/ai_crawl.py:47
Method__init__
(self)
server/ai_crawl.py:66
Method__init__
( self, workspace_dir: str, sandbox: Literal[ "internal_python", "jupyter"
server/code_agent.py:330
Method__init__
(self, cache_dir: Optional[str] = None)
server/documents_tool.py:89
Method__init__
(self, timeout: Optional[float] = None)
server/excel_tool.py:28
Method__init__
(self, timeout: float | None = None)
server/image_tool.py:40
Method__init__
( self, require_confirm: bool = True, )
server/interpreters/e2b_interpreter.py:34
Method__init__
( self, require_confirm: bool = True, print_stdout: bool = False, print_stderr
server/interpreters/subprocess_interpreter.py:64
Method__init__
( self, require_confirm: bool = True, print_stdout: bool = False, print_stderr
server/interpreters/ipython_interpreter.py:26
Method__init__
( self, require_confirm: bool = True, print_stdout: bool = False, print_stderr
server/interpreters/docker_interpreter.py:78
Method__init__
( self, action_space: Optional[Dict[str, Any]] = None, import_white_list: Optional[Lis
server/interpreters/internal_python_interpreter.py:87
Method__len__
(self)
memory/train_memory_retriever.py:105
Method_memory_prompt_for
(self, query: str)
client/parametric_memory_cbr.py:359
Functionadd
Return a + b.
server/math_tool.py:15
Methodchat
Send chat completion request to OpenAI with optional tool calling. Args: messages: List of message dictionaries with rol
client/agent_local_server.py:107
Methodchat
( self, messages: List[Dict[str, Any]], tools: List[Dict[str, Any]] | None = None,
client/agent_local_server.py:197
Methodchat
( self, messages: List[Dict[str, Any]], tools: List[Dict[str, Any]] | None = None,
client/agent.py:82
Methodchat
( self, messages: List[Dict[str, Any]], tools: List[Dict[str, Any]] | None = None,
client/no_parametric_cbr.py:241
Methodchat
( self, messages: List[Dict[str, Any]], tools: List[Dict[str, Any]] | None = None,
client/parametric_memory_cbr.py:224
Functioncrawl_extract
Crawl a URL to Markdown and extract only the content relevant to the query. Parameters ---------- url : str Target URL to cr
server/ai_crawl.py:148
Functioncrawl_page
Deep crawl and extract key content from a web page (Markdown format). This tool is designed to perform *deep analysis* on a specific link ret
server/craw_page.py:30
Functiondivide
Return a / b, rounded to *decimal_places* (default 2).
server/math_tool.py:33
Functiondownload_video
Downloads a video from the given URL using yt_dlp and returns the local file path. Parameters: - url (str): The URL of the video to down
server/video_tool.py:141
Methodexecute_code
Execute Python code with import whitelist validation and save to specified filename. 🔧 EXECUTION PROCESS: 1. Val
server/code_agent.py:390
Functionexecute_terminal_command
Execute terminal command in workspace directory context. Workflow Note: To run a script (e.g., Python, shell), first create it using `wr
server/code_agent.py:592
Methodextract_document_content
(self, document_path: str)
server/documents_tool.py:97
Functionextract_excel_content
Return a Markdown‑rich description of *document_path* (xls/xlsx/csv).
server/excel_tool.py:122
Functionextract_pairs
(items: List[dict], key_field: str, value_field: str)
memory/np_memory.py:25
Functionfetch_markdown
Fetch cleaned Markdown content from a web page via Jina Reader API. This tool uses Jina Reader (r.jina.ai) to fetch and clean web page content,
server/jina_fetch_tool.py:33
Methodforward
(self, ids1, mask1, ids2, mask2)
memory/train_memory_retriever.py:26
Functionget_video_bytes
Reads and returns the raw bytes of the video file located at *video_path*. Parameters: - video_path (str): The local path to the video f
server/video_tool.py:162
Functionget_video_screenshots
Captures uniformly distributed screenshots from the video file and returns them as base64-encoded JPEG strings. Parameters: - video_path
server/video_tool.py:177
Functionget_workspace_info
Get comprehensive information about the workspace. 📊 INFORMATION PROVIDED: • Workspace directory path • Total files and
server/code_agent.py:928
Functionget_workspace_structure
Get detailed file structure and directory tree of the workspace. 🎯 WHEN TO USE THIS FUNCTION: ✅ USE get_workspace_structure() WHEN:
server/code_agent.py:989
Functiongoogle_search
Run a Google search via SerpAPI and return the organic results. Parameters ---------- query : str The search query strin
server/serp_search.py:15
Functionimage_to_text
Generates a detailed and descriptive caption of the image located at *image_path*. Parameters: - image_path (str): The file path or URL
server/image_tool.py:142
Functionlist_workspace_files
List all files in the unified workspace directory with tree structure using rich. Workflow Note: After listing files, you can read a fil
server/code_agent.py:657
Functionload_jsonl
(path: str)
memory/np_memory.py:10
Functionlog_block
(title: str, content: Any)
client/no_parametric_cbr.py:185
← previousnext →101–200 of 224, ranked by callers