MCPcopy Create free account

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

Functions224 in github.com/Memento-Teams/Memento

Functionmultiply
Return a * b, rounded to *decimal_places* (default 2).
server/math_tool.py:27
Functionprocess_document
Process a document at the given *document_path*. The document can be multimedia (image, audio, video), a presentation (PPTX), a spreadsheet,
server/documents_tool.py:257
Functionread_workspace_file
Read content of a file from workspace directory. Workflow Note: After reading a script, you can execute it using the `execute_termin
server/code_agent.py:743
Functionretrieve
( task: str, pairs: List[Tuple[str, object, int]], tokenizer, model, device_str: str = "a
memory/np_memory.py:65
Methodrun
r"""Executes the given code in the e2b sandbox. Args: code (str): The code string to execute. code_type (str): The ty
server/interpreters/e2b_interpreter.py:56
Methodrun
r"""Generates a temporary file with the given code, executes it, and deletes the file afterward. Args: code (str): Th
server/interpreters/subprocess_interpreter.py:260
Methodrun
r"""Executes the given code in the Jupyter kernel. Args: code (str): The code string to execute. code_type (str): The
server/interpreters/ipython_interpreter.py:107
Methodrun
r"""Executes the given code with specified code type in the interpreter. This method takes a string of code and its type, checks if t
server/interpreters/internal_python_interpreter.py:105
Functionsearch
Run a web search via any SearxNG instance (defaults to *nicfab.eu*). Args: query: The search string. num_results: Max results to
server/search_tool.py:55
Functionsub
Return a - b.
server/math_tool.py:21
Methodsupported_code_types
r"""Provides supported code types by the interpreter.
server/interpreters/e2b_interpreter.py:117
Methodsupported_code_types
r"""Provides supported code types by the interpreter.
server/interpreters/subprocess_interpreter.py:375
Methodsupported_code_types
r"""Provides supported code types by the interpreter. Returns: List[str]: Supported code types.
server/interpreters/ipython_interpreter.py:133
Methodsupported_code_types
r"""Provides supported code types by the interpreter.
server/interpreters/base.py:29
Methodsupported_code_types
r"""Provides supported code types by the interpreter.
server/interpreters/docker_interpreter.py:257
Methodsupported_code_types
r"""Provides supported code types by the interpreter.
server/interpreters/internal_python_interpreter.py:161
Functiontopk_select
(model, tokenizer, device, natural_prompt, icl_pool, k=5, max_len=256)
memory/train_memory_retriever.py:178
Methodupdate_action_space
r"""Updates action space for *python* interpreter
server/interpreters/e2b_interpreter.py:121
Methodupdate_action_space
r"""Updates action space for *python* interpreter
server/interpreters/subprocess_interpreter.py:379
Methodupdate_action_space
r"""Updates the action space for the interpreter. Args: action_space (Dict[str, Any]): A dictionary representing the
server/interpreters/ipython_interpreter.py:141
Methodupdate_action_space
r"""Updates action space for *python* interpreter
server/interpreters/base.py:34
Methodupdate_action_space
r"""Updates action space for *python* interpreter
server/interpreters/docker_interpreter.py:261
Methodupdate_action_space
r"""Updates action space for *python* interpreter.
server/interpreters/internal_python_interpreter.py:157
Functionwrite_workspace_file
Write content to a file in workspace directory WITHOUT execution. Workflow Note: After writing an executable script (e.g., a `.py` or `.sh`
server/code_agent.py:830
← previous201–224 of 224, ranked by callers