MCPcopy Create free account

hub / github.com/HewlettPackard/llmesh / functions

Functions1,350 in github.com/HewlettPackard/llmesh

↓ 183 callersMethodcreate
Return the game class. :param config: Configuration dictionary containing the type of game. :return: An instance of the sele
src/platform/app_games/game.py:32
↓ 69 callersMethodget_logger
Retrieve the singleton logger instance with an adapter for additional context. :return: A LoggerAdapter instance with the component
src/lib/core/log.py:124
↓ 29 callersMethodload
Load data from a pickle file. :param file_path: The path to the original file. :return: The loaded data, or None if loading
src/lib/core/file_cache.py:88
↓ 28 callersMethodrun
Run the multi-agent task force. :param message: Message to be processed by the task force. :return: Result object containing
src/lib/services/agents/task_forces/base.py:97
↓ 24 callersMethodparse
Abstract method to parse the document. :param file_path: Path to the document to be parsed. :return: Result object containin
src/lib/services/rag/data_extractors/base.py:75
↓ 24 callersMethodsave_message
Save a new chat message to memory. :param message: The message object to save. :return: Result object indicating success or e
src/lib/services/chat/memories/base.py:71
↓ 19 callersMethodconfigure
Reconfigure the logger with new settings. :param config: Dictionary with new configuration settings. :return: The reconfigur
src/lib/core/log.py:109
↓ 19 callersMethodinvoke
Manually invoke the decorated function with the provided arguments. :return: The result of the function invocation.
src/lib/system_services/tool_client.py:221
↓ 18 callersMethodget_model
Return the LLM model instance. :return: The LLM model instance.
src/lib/services/chat/models/base.py:67
↓ 14 callersMethodget_messages
Retrieve messages from memory. :param limit: Optional max number of messages to return (default: all or as configured). :retu
src/lib/services/chat/memories/base.py:79
↓ 13 callersMethodclear
Clear context memory. :return: Result object containing the status of the clear operation.
src/lib/services/chat/memories/base.py:63
↓ 13 callersMethodparse
Parse a PDF file. :param file_path: Path to the PDF file :return: Result object containing the extracted elements
src/lib/services/rag/data_extractors/pymupdf/sections.py:69
↓ 11 callersMethodget_memory
Return the memory instance. :return: The memory instance.
src/lib/services/chat/memories/base.py:55
↓ 11 callersMethodget_settings
Get the settings of the game. :return: Result object containing the status of the clear operation.
src/platform/app_games/games/base.py:77
↓ 11 callersMethodis_cached
Check if a file is cached at the given path. :param file_path: The path to the original file. :return: Boolean indicating if
src/lib/core/file_cache.py:50
↓ 10 callersMethodparse
Parse a document file. :param file_path: Path to the document file :return: Result object containing the extracted elements
src/lib/services/rag/data_extractors/unstructured/sections.py:67
↓ 9 callersFunctionchat
Answer chat discussion
src/platform/chat/main.py:41
↓ 9 callersMethodcreate
Return the appropriate Task Force based on the provided configuration. :param config: Configuration dictionary containing the type o
src/lib/services/agents/task_force.py:32
↓ 9 callersMethodrender
Generates a tool prompt from a template etring passed as input, utilizing additional parameters for customization. :param te
src/lib/core/template_engine.py:23
↓ 9 callersMethodsave
Save data to a pickle file. :param file_path: The path to the original file. :param data: Data to be saved.
src/lib/core/file_cache.py:70
↓ 8 callersMethodget_collection
Retrieve the data collection. :return: The requested data collection.
src/lib/services/rag/data_storages/base.py:55
↓ 8 callersFunctionprint_response
Prints a formatted response object with optional extra information.
notebooks/platform_services/lablib/mcp/client_util.py:40
↓ 7 callersFunction_get_versioned_filepath
(file_name, version)
notebooks/meta_prompting/utils.py:155
↓ 7 callersMethodcreate_message
Create a new ChatMessage with a text block.
src/lib/services/chat/message_managers/base.py:53
↓ 7 callersMethodget_manifest
Retrieve the tool's manifest, optionally formatted as JSON. :param json_flag: Whether to return the manifest as JSON. :retur
src/lib/system_services/tool_client.py:235
↓ 7 callersMethodinsert
Insert data into the Chroma dB collection. :param collection: Chroma dB collection. :param elements: List of dictionaries co
src/lib/services/rag/data_loaders/base.py:43
↓ 7 callersFunctionprint_step
Prints a clear step header with optional description.
notebooks/platform_services/lablib/mcp/client_util.py:33
↓ 7 callersMethodrun_app
Initialize and run a Flask web application based on the tool's settings. :param test: Whether to run the app in test mode. :
src/lib/system_services/tool_client.py:254
↓ 6 callersMethodadd_tool
Add a tool to the repository based on the provided configuration and metadata. :param tool: tool object. :param metadata: Op
src/lib/services/agents/tool_repositories/langchain/structured_tool.py:46
↓ 6 callersMethodto_framework_messages
Code in specific framework message type.
src/lib/services/chat/message_managers/base.py:83
↓ 5 callersFunction_create_tool
(tool_info, partial=False)
src/platform/app_backpanel/main.py:195
↓ 5 callersMethodadd_messages
Insert messages into a list at the given index.
src/lib/services/chat/message_managers/base.py:59
↓ 5 callersMethodfrom_framework_messages
Decode in specific framework message type.
src/lib/services/chat/message_managers/base.py:89
↓ 5 callersMethodinvoke
Synchronously invoke the model with a list of messages. :param messages: List of messages formatted for the LLM input. :retu
src/lib/services/chat/models/base.py:75
↓ 5 callersMethodload_memory_variables
Load data from the remote memory endpoint. :param inputs: Inputs to load from memory. :return: Loaded memory data.
src/lib/services/chat/memories/langchain/custom_remote.py:47
↓ 5 callersFunctionretrieve
This function reads the documentations, builds or uses a vector store from them, and then uses a query engine to find and return relevant
src/platform/rag/main.py:53
↓ 5 callersMethodsave
Save prompt to file. :param prompt_name: The name of the prompt to save. :param content: The content to save.
src/lib/services/chat/prompt_renders/base.py:65
↓ 5 callersMethodsave_context
Store data to the remote memory endpoint. :param inputs: Inputs to save. :param outputs: Outputs to save.
src/lib/services/chat/memories/langchain/custom_remote.py:64
↓ 5 callersMethodselect
Retrieve data from the Chroma dB collection based on the provided query. :param collection: Chroma collection to query. :par
src/lib/services/rag/data_retrievers/base.py:55
↓ 5 callersMethodset_settings
Set the settings of the tool specified. :param tool_reference: The path or URL to the tool. :param settings: The dict with t
src/lib/system_services/tool_server.py:231
↓ 4 callersMethod_get_results_field
(self, results, field: str)
src/lib/services/rag/data_retrievers/chroma/sentences.py:177
↓ 4 callersFunction_get_tool_info
(tool_id)
src/platform/app_backpanel/main.py:107
↓ 4 callersMethod_normalize_messages
Normalize input messages to a list of ChatMessage. :param messages: A string, a ChatMessage, or a list of them. :return: Lis
src/lib/services/chat/models/llamaindex/openai.py:147
↓ 4 callersFunctiona
(e)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 4 callersMethodadd_tool
Add a tool to the repository based on the provided configuration and metadata. :param tool: Tool object. :param metadata: Op
src/lib/services/agents/tool_repositories/base.py:47
↓ 4 callersMethodclear_memory
Clear the memory of the reasoning engine.
src/lib/services/agents/reasoning_engines/base.py:83
↓ 4 callersFunctioncreateTaskTextArea
* Helper function to create the task field * @param {int} key - The task key * @param {string} type - The type of field * @returns {string} The HTM
src/platform/app_backpanel/html/static/js/agent_tool_handler.js:112
↓ 4 callersFunctiong
(e,r)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 4 callersMethodget_collection
Retrieve the Qdrant dB collection based on the current configuration. :return: Result object containing the collection name or error
src/lib/services/rag/data_storages/qdrant/collection.py:106
↓ 4 callersMethodget_settings
Retrieve the current configuration settings. :return: The dictionary of configuration settings.
src/lib/core/config.py:199
↓ 4 callersMethodget_settings
Retrieves the 'settings' dictionary from a given tool entry if it exists. Returns: dict or None: The 'settings' dictiona
src/platform/app_backpanel/tool_manager/rag.py:102
↓ 4 callersMethodload
Load prompt from file. :param prompt_name: The name of the prompt to load. :param params: Additional parameters for loading
src/lib/services/chat/prompt_renders/base.py:56
↓ 4 callersFunctionn
(e,r)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 4 callersFunctionr
(e,r,t,a,n,s,o)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 4 callersMethodset_tools
Set the tools for the reasoning engine. :param tool_list: List of tools to be used by the engine.
src/lib/services/agents/reasoning_engines/base.py:97
↓ 4 callersMethodto_text
Concatenate all text blocks into a single string. :return: Concatenated text.
src/lib/services/chat/message_managers/message.py:84
↓ 4 callersFunctionu
(e,r,t,a)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 4 callersMethodupdate_tool
Update an existing tool's configuration or metadata in the repository. :param tool_name: The name of the tool to update. :pa
src/lib/services/agents/tool_repositories/langchain/structured_tool.py:70
↓ 4 callersMethodvalidate_request
Validate that required fields are present in the request. :param request: Parsed chat request model. :raises HTTPException:
src/lib/core/chat_endpoint.py:152
↓ 3 callersFunction_concatenate_messages
(messages, new_messages)
src/platform/chat/main.py:67
↓ 3 callersMethod_convert_to_documents
Validate and split the input elements into documents, metadata, and embeddings. :param elements: List of dictionaries containing 'te
src/lib/services/rag/data_loaders/qdrant/sentences.py:60
↓ 3 callersMethod_convert_to_documents
Validate and split the input elements into documents and metadata. :param elements: List of dictionaries containing 'text' and 'meta
src/lib/services/rag/data_loaders/chroma/sentences.py:58
↓ 3 callersMethod_convert_to_documents
Validate and split the input elements into documents, metadata, and embeddings. :param elements: List of dictionaries containing 'te
src/lib/services/rag/data_loaders/milvus/sentences.py:59
↓ 3 callersMethod_create_args_schema
Dynamically create a Pydantic model for the tool's arguments. :param tool_name: The name of the tool. :param arguments: A li
src/lib/system_services/tool_server.py:183
↓ 3 callersMethod_get_cached_file_path
Generate the cached file path based on the original file path. :param file_path: The path to the original file. :return: The
src/lib/core/file_cache.py:60
↓ 3 callersMethod_get_endpoint_url
Construct the full endpoint URL. :param endpoint: Endpoint path. :return: Full endpoint URL.
src/lib/services/chat/memories/langchain/custom_remote.py:89
↓ 3 callersMethod_get_options
(self, options, label)
src/platform/app_backpanel/tool_manager/rag.py:215
↓ 3 callersMethod_is_running_in_jupyter
Checks if the code is likely running in a Jupyter/IPython environment.
notebooks/platform_services/lablib/bg_util.py:48
↓ 3 callersFunction_merge_elements_below_header
Merge elements below their respective headers. :param elements: List of elements with text data :return: List of merged elements below h
src/lib/services/rag/data_transformers/transform/section.py:71
↓ 3 callersMethod_post_request
Make a POST request to the given URL with the provided data. :param url: URL to make the POST request to. :param data: Data
src/lib/services/chat/memories/langchain/custom_remote.py:98
↓ 3 callersMethod_project_embeddings
(self, embeddings: List[np.ndarray], umap_transform)
src/lib/services/rag/data_retrievers/chroma/sentences.py:223
↓ 3 callersFunction_store_memory
(memory, element)
src/platform/app_memory/main.py:88
↓ 3 callersFunctionadd_metadata
Enrich metadata of elements based on the configuration provided. If the configuration specifies enrichment for metadata, this function will
src/lib/services/rag/data_transformers/enrich/metadata.py:11
↓ 3 callersMethodbuild_response
Build a response compatible with OpenAI's chat completion format. :param request: The original chat request. :param content:
src/lib/core/chat_endpoint.py:165
↓ 3 callersMethodcall
Call the selected OpenAPI helper function
src/platform/tool_agents/openapi_tool.py:41
↓ 3 callersFunctionclearElement
* Clears the content of an HTML element. * @param {HTMLElement} element - The element to clear.
src/platform/app_games/html/static/js/settings.js:85
↓ 3 callersMethoddump_messages
Convert messages into a serializable format.
src/lib/services/chat/message_managers/base.py:70
↓ 3 callersFunctione
(e,r,t,a,n,s,o)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 3 callersMethodget_collection
Retrieve the Chroma dB collection based on the current configuration. :return: Result object containing the collection or error deta
src/lib/services/rag/data_storages/chroma/collection.py:99
↓ 3 callersMethodget_collection
Retrieve the Milvus dB collection based on the current configuration. :return: Result object containing the collection or error deta
src/lib/services/rag/data_storages/milvus/collection.py:152
↓ 3 callersMethodget_tools
Get the list of tools, optionally filtering by metadata. :param metadata_filter: Optional dictionary of metadata to filter tools.
src/lib/services/agents/tool_repositories/base.py:59
↓ 3 callersMethodget_tools
Get the list of tools, optionally filtering by metadata. :param metadata_filter: Optional dictionary of metadata to filter tools.
src/lib/services/agents/tool_repositories/langchain/structured_tool.py:108
↓ 3 callersFunctioni
(e)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 3 callersMethodinsert
Insert data into the Milvus collection. :param collection: Milvus collection dict with client and name. :param elements: Lis
src/lib/services/rag/data_loaders/milvus/sentences.py:35
↓ 3 callersMethodkill_process
Kills a managed background process by its name. Args: name: The name of the process to kill. verbose: Whethe
notebooks/platform_services/lablib/bg_util.py:120
↓ 3 callersMethodload_messages
Reconstruct messages from their dict representations.
src/lib/services/chat/message_managers/base.py:76
↓ 3 callersFunctionload_prompt
Load the prompt
notebooks/meta_prompting/utils.py:51
↓ 3 callersFunctionp
(e,r)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 3 callersMethodprocess
Perform the specified CTE actions on the provided elements. :param actiosn: List of actions to perform :param elemen
src/lib/services/rag/data_transformers/cte_action_runner.py:188
↓ 3 callersFunctionregister_prompts
Registers common prompts to the MCP instance.
notebooks/platform_services/lablib/mcp/definitions.py:45
↓ 3 callersFunctionregister_resources
Registers common resources to the MCP instance.
notebooks/platform_services/lablib/mcp/definitions.py:33
↓ 3 callersFunctionregister_tools
Registers common tools to the MCP instance.
notebooks/platform_services/lablib/mcp/definitions.py:20
↓ 3 callersFunctions
(u)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 3 callersFunctionscrollToBottom
* Scrolls to the bottom of the selected game's chat div.
src/platform/app_games/html/static/js/chat.js:276
↓ 3 callersMethodselect
Retrieve data from the Chroma dB collection based on the provided query. :param collection: Chroma collection to query. :par
src/lib/services/rag/data_retrievers/chroma/sentences.py:72
↓ 3 callersMethodset_memory
Set the memory configuration of the engine. :param memory: Memory configuration dictionary.
src/lib/services/agents/reasoning_engines/base.py:89
↓ 2 callersMethod_clean_header
(self, header: str)
src/lib/services/rag/data_extractors/unstructured/sections.py:206
↓ 2 callersFunction_clean_text
Clean text by replacing tabs with spaces and removing extra spaces. :param text: Text to be cleaned :return: Cleaned text
src/lib/services/rag/data_transformers/transform/section.py:94
↓ 2 callersMethod_convert_string_to_messages
Convert a string to a list of BaseMessage objects. :param input_str: Input string to be converted. :return: List of BaseMess
src/lib/services/chat/memories/langchain/chroma_store_retriever.py:74
↓ 2 callersMethod_convert_table_to_html
(self, current_table: list, table_metadata: dict)
src/lib/services/rag/data_extractors/pymupdf/sections.py:246
next →1–100 of 1,350, ranked by callers