Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HewlettPackard/llmesh
/ functions
Functions
1,350 in github.com/HewlettPackard/llmesh
⨍
Functions
1,350
◇
Types & classes
202
↳
Endpoints
133
↓ 2 callers
Method
_convert_tools_to_function_tools
Convert tools to function tool format. :return: A list of tools converted to function tools.
src/lib/services/agents/reasoning_engines/llamaindex/react.py:103
↓ 2 callers
Method
_create_collection
Create or retrieve a MilvusCollectionDataStorage dB collection. : param: Milvus client
src/lib/services/rag/data_storages/milvus/collection.py:90
↓ 2 callers
Function
_create_llm_app
Create the FastAPI application and configure its routes.
src/platform/orchestrator/main.py:51
↓ 2 callers
Method
_create_tool_from_local_manifest
Create a tool object based on the configuration in the provided manifest. :param manifest: A dictionary containing the tool's config
src/lib/system_services/tool_server.py:95
↓ 2 callers
Method
_expand_with_section_window
(self, collection: Any, results: List[ScoredPoint])
src/lib/services/rag/data_retrievers/qdrant/sentences.py:115
↓ 2 callers
Method
_expand_with_section_window
(self, chroma_collection, results)
src/lib/services/rag/data_retrievers/chroma/sentences.py:118
↓ 2 callers
Method
_expand_with_sentence_window
(self, collection: Any, results: List[ScoredPoint])
src/lib/services/rag/data_retrievers/qdrant/sentences.py:139
↓ 2 callers
Method
_expand_with_sentence_window
(self, chroma_collection, results)
src/lib/services/rag/data_retrievers/chroma/sentences.py:140
↓ 2 callers
Method
_fetch_remote_manifest
Fetch the manifest of a remote tool. :param manifest_url: The URL to the tool's manifest. :return: A dictionary containing t
src/lib/system_services/tool_server.py:130
↓ 2 callers
Function
_get_collection
(storage_config)
src/platform/app_memory/main.py:78
↓ 2 callers
Function
_get_collection
(storage_config)
src/platform/app_games/games/fantasia_genesis_tools.py:144
↓ 2 callers
Method
_get_html_content
(self, file_path)
src/lib/services/rag/data_extractors/unstructured/sections.py:153
↓ 2 callers
Method
_get_or_create_collection
Helper method to create or retrieve a collection from QdrantDb. :param qdrant_client: The QdrantClient instance. :return: Th
src/lib/services/rag/data_storages/qdrant/collection.py:80
↓ 2 callers
Method
_get_or_create_collection
Helper method to create or retrieve a collection from Chroma dB. :param chroma_client: The Chroma PersistentClient instance.
src/lib/services/rag/data_storages/chroma/collection.py:77
↓ 2 callers
Function
_get_text
(key, element)
src/platform/app_games/games/fantasia_genesis_tools.py:129
↓ 2 callers
Method
_get_tools
Retrieve tools from the tool repository. :param tool_list: Optional list of tool names to filter the tools. :return: A list
src/lib/services/agents/reasoning_engines/llamaindex/react.py:83
↓ 2 callers
Method
_get_tools
Retrieve tools from the tool repository. :param tool_list: Optional list of tool names to filter the tools. :return: A list
src/lib/services/agents/reasoning_engines/langchain/agent_executor.py:94
↓ 2 callers
Method
_init_agent
Initialize the execution agent. :return: The initialized Agent
src/lib/services/agents/reasoning_engines/langchain/agent_executor.py:148
↓ 2 callers
Method
_init_executor
Initialize the ReAct agent executor. :return: The initialized ReActAgent.
src/lib/services/agents/reasoning_engines/llamaindex/react.py:156
↓ 2 callers
Method
_init_executor
Initialize the agent executor. :return: The initialized AgentExecutor.
src/lib/services/agents/reasoning_engines/langchain/agent_executor.py:159
↓ 2 callers
Method
_init_segment
(self, file_name)
src/lib/services/rag/data_extractors/markitdown/sections.py:89
↓ 2 callers
Method
_init_settings
Initialize the selected settings.
src/platform/app_games/games/who_am_i.py:66
↓ 2 callers
Method
_insert_documents_into_collection
Insert documents, their embeddings, and corresponding metadata into the Qdrant collection. :param collection: Qdrant collection dict
src/lib/services/rag/data_loaders/qdrant/sentences.py:98
↓ 2 callers
Method
_insert_documents_into_collection
Insert documents and their corresponding metadata into the Chroma collection. :param chroma_collection: Chroma dB collection.
src/lib/services/rag/data_loaders/chroma/sentences.py:82
↓ 2 callers
Method
_insert_documents_into_collection
Insert documents, their embeddings, and corresponding metadata into the Milvus collection. :param collection: Milvus collection dict
src/lib/services/rag/data_loaders/milvus/sentences.py:94
↓ 2 callers
Function
_invoke_llm
(messages)
src/platform/rag/main.py:109
↓ 2 callers
Method
_load_local_tool
Load a local tool from the specified path. :param tool_path: The path to the tool directory. :return: A tuple containing the
src/lib/system_services/tool_server.py:77
↓ 2 callers
Method
_load_remote_tool
Load a remote tool from the specified URL. :param tool_url: The base URL of the remote tool. :return: A tuple containing the
src/lib/system_services/tool_server.py:113
↓ 2 callers
Method
_order_and_merge
(self, ids: List[str], documents: List[str])
src/lib/services/rag/data_retrievers/qdrant/sentences.py:134
↓ 2 callers
Method
_order_and_merge
(self, ids: List[str], documents: List[str])
src/lib/services/rag/data_retrievers/chroma/sentences.py:135
↓ 2 callers
Function
_prepare_engine_input
(engine, messages: list)
src/platform/orchestrator/main.py:183
↓ 2 callers
Function
_read_dataframe
(file_path)
notebooks/meta_prompting/utils.py:174
↓ 2 callers
Method
_render_system_prompt
Render system prompt template with task information. :param task_config: Configuration for the task. :return: System prompt.
src/lib/services/agents/task_forces/langgraph/state_graph.py:172
↓ 2 callers
Method
_replace_placeholders_in_data
Recursively replace placeholders with environment variable values in a nested structure. :param data: The data structure containing
src/lib/core/config.py:77
↓ 2 callers
Function
_replace_tabs_in_text
Replace tabs with spaces in a given text. :param text: Text to process :return: Text with tabs replaced by spaces
src/lib/services/rag/data_transformers/clean/regex.py:38
↓ 2 callers
Method
_reset_collection
(self, storage_config)
src/platform/app_games/games/fantasia_genesis.py:315
↓ 2 callers
Method
_reset_table_state
(self)
src/lib/services/rag/data_extractors/pymupdf/sections.py:214
↓ 2 callers
Function
_retrieve_elements
(storage_config, query)
src/platform/app_games/games/fantasia_genesis_tools.py:138
↓ 2 callers
Function
_retrieve_from_collection
(collection, query)
src/platform/app_memory/main.py:180
↓ 2 callers
Function
_save_element
(storage_config, element)
src/platform/app_games/games/fantasia_genesis_tools.py:115
↓ 2 callers
Method
_setup_stdout_handler
Set up the stdout handler for logging to the console.
src/lib/core/log.py:84
↓ 2 callers
Function
_transform_with_llm
Use an LLM to transform the input text. :param llm_config: Configuration object for the LLM. :param system_prompt: Prompt for setting th
src/lib/services/rag/data_transformers/transform/llm.py:86
↓ 2 callers
Method
_update_situation
Update the situation with LLM.
src/platform/app_games/games/fantasia_genesis.py:220
↓ 2 callers
Function
_write_file
(file_path, content)
notebooks/meta_prompting/utils.py:170
↓ 2 callers
Function
appendMessageToChat
* Appends a message to the selected game's chat div. * @param {string} htmlContent - The HTML content to append.
src/platform/app_games/html/static/js/chat.js:98
↓ 2 callers
Function
attachTypeChangeHandlers
* Attaches change event handlers to the type dropdowns. * @param {Object} toolConfig - The tool configuration object.
src/platform/app_backpanel/html/static/js/prompt_tool_handler.js:71
↓ 2 callers
Function
bindAddRemoveEvents
* Function to bind events for add and remove buttons
src/platform/app_backpanel/html/static/js/prompt_tool_handler.js:226
↓ 2 callers
Function
c
(e,r)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 2 callers
Function
clearToolDetailsAndSettings
* Clears existing tool details and settings.
src/platform/app_backpanel/html/static/js/tool_handler.js:184
↓ 2 callers
Method
convert_to_strings
Convert each message to a dictionary with a type field. :param prompts: List of message objects. :return: Result object cont
src/lib/services/chat/memories/langchain/custom_remote.py:171
↓ 2 callers
Function
createInterfaceField
* Helper function to create a single interface field * @param {int} key - The interface key * @param {string} name - The name of interface * @param
src/platform/app_backpanel/html/static/js/prompt_tool_handler.js:249
↓ 2 callers
Method
find_processes_by_port
Find processes using a specific port. Args: port: The port number to search for. Returns:
notebooks/platform_services/lablib/bg_util.py:225
↓ 2 callers
Method
get_models
Return a list of available models in OpenAI-compatible format. :return: ModelsResponse object
src/lib/core/chat_endpoint.py:208
↓ 2 callers
Function
get_services_env
Get the chat model environment variables.
notebooks/platform_services/lablib/env_util.py:57
↓ 2 callers
Method
get_settings
Get the settings of the tool specified. :param tool_reference: The path or URL to the tool. :return: A dictionary with the t
src/lib/system_services/tool_server.py:207
↓ 2 callers
Method
get_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/prompt.py:100
↓ 2 callers
Method
get_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/agent.py:100
↓ 2 callers
Function
h
(e,r)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 2 callers
Function
handleAdditionalFields
* Handles additional fields based on the type selected. * @param {string} key - The key identifier for the field. * @param {string} type - The type
src/platform/app_backpanel/html/static/js/prompt_tool_handler.js:386
↓ 2 callers
Method
insert
Insert data into the Qdrant collection. :param collection: Qdrant collection dict with client and name. :param elements: Lis
src/lib/services/rag/data_loaders/qdrant/sentences.py:36
↓ 2 callers
Method
insert
Insert data into the Chroma dB collection. :param collection: Chroma dB collection. :param elements: List of dictionaries co
src/lib/services/rag/data_loaders/chroma/sentences.py:35
↓ 2 callers
Method
kill_process_by_port
Kill all processes using a specific port. Args: port: The port number. verbose: Whether to print det
notebooks/platform_services/lablib/bg_util.py:295
↓ 2 callers
Function
load_files
Function to load files into the tool
src/platform/rag/load.py:39
↓ 2 callers
Function
load_tools
Dynamically imports tool modules and extracts metadata into the TOOLS list. Returns: List[Any]: List of tool objects. List[D
notebooks/meta_prompting/tool_manager.py:13
↓ 2 callers
Function
mcp_messages_to_langchain
Convert MCP prompt messages to LangChain message format.
notebooks/platform_services/lablib/mcp/client_util.py:55
↓ 2 callers
Function
o
(n,s)
src/platform/app_games/html/static/js/showdown.min.js:2
↓ 2 callers
Method
process
Perform the specified CTE actions on the provided elements. :param actiosn: List of actions to perform :param elemen
src/lib/services/rag/data_transformers/base.py:82
↓ 2 callers
Method
reset
Reset the game. :return: Result object containing the status of the clear operation.
src/platform/app_games/games/base.py:85
↓ 2 callers
Method
reset
Reset the game. :return: Result object containing the status of the clear operation.
src/platform/app_games/games/fantasia_genesis.py:303
↓ 2 callers
Method
respond
Takes the user’s input, appends it to the transcript, and gets a response from the agent LLM. :param transcript: The
notebooks/meta_prompting/agent_simulator.py:46
↓ 2 callers
Function
run_demo
Runs the comprehensive MCP demonstration.
notebooks/platform_services/lablib/mcp/client_util.py:240
↓ 2 callers
Method
select
Retrieve data from the Qdrant collection based on the provided query. :param collection: Qdrant collection to query. :param
src/lib/services/rag/data_retrievers/qdrant/sentences.py:66
↓ 2 callers
Method
select
Retrieve data from the Milvus collection based on the provided query. :param collection: Milvus collection to query. :param
src/lib/services/rag/data_retrievers/milvus/sentences.py:60
↓ 2 callers
Method
to_dict
Serialize the message to a dictionary. :return: Dictionary representation of the message.
src/lib/services/chat/message_managers/message.py:105
↓ 2 callers
Function
transform_chunk
Transform the text of elements into chunks. :param chunk_size: Size of character chunks :param chunk_overlap: Overlap among chunks :
src/lib/services/rag/data_transformers/transform/chunk.py:15
↓ 2 callers
Function
transform_qa
Transform the text of elements into QA pairs using an LLM. :param llm_config: Configuration object for the LLM. :param system_prompt: Pr
src/lib/services/rag/data_transformers/transform/llm.py:46
↓ 2 callers
Function
transform_summary
Transform the text of elements into summaries using an LLM. :param llm_config: Configuration object for the LLM. :param system_prompt: P
src/lib/services/rag/data_transformers/transform/llm.py:16
↓ 2 callers
Function
updateFormFields
* Creates form fields based on the selected setting. * @param {string} gameId - The ID of the selected setting.
src/platform/app_games/html/static/js/settings.js:62
↓ 1 callers
Method
__init__
Initialize the memory with the given configuration. :param config: Configuration dictionary for the memory.
src/lib/services/chat/memories/langchain/custom_remote.py:238
↓ 1 callers
Method
_add_custom_graph_edges
Add custom graph edges for non-sequential plans. :param workflow: The graph to which custom edges will be added. :raises Val
src/lib/services/agents/task_forces/langgraph/state_graph.py:255
↓ 1 callers
Method
_add_edges_to_graph
Add edges to the graph based on the planning type. :param workflow: The graph to which edges will be added.
src/lib/services/agents/task_forces/langgraph/state_graph.py:232
↓ 1 callers
Method
_add_nodes_to_graph
Add nodes to the graph from the task configurations. :param workflow: The graph to which nodes will be added.
src/lib/services/agents/task_forces/langgraph/state_graph.py:132
↓ 1 callers
Method
_add_sequential_edges
Add sequential edges to the graph from 'START' to 'END'. :param workflow: The graph to which edges will be added.
src/lib/services/agents/task_forces/langgraph/state_graph.py:243
↓ 1 callers
Function
_augment_query_generated
(query, augmentation)
src/platform/rag/main.py:80
↓ 1 callers
Method
_auto_detect_config_from_caller
Auto-detects a config by deriving a default path from the caller's file. If the file exists, load it. Otherwise return an empty dict
src/lib/system_services/tool_client.py:150
↓ 1 callers
Function
_build_result_dict
Safely builds a result dictionary from ranked results.
src/platform/rag/main.py:187
↓ 1 callers
Function
_build_streaming_response
(chat_endpoint, content: str)
src/platform/orchestrator/main.py:188
↓ 1 callers
Function
_calculate_dict
(messages)
src/platform/app_memory/main.py:215
↓ 1 callers
Method
_calculate_dict
Convert a list of message objects to a list of dictionaries. :param messages: List of message objects. :return: List of dict
src/lib/services/chat/memories/langchain/custom_remote.py:193
↓ 1 callers
Method
_calculate_metadata
(self, element, header_elements)
src/lib/services/rag/data_extractors/unstructured/sections.py:209
↓ 1 callers
Method
_calculate_to_messages
Convert a dictionary of messages into Langchain message objects. :param prompts_dict: Dictionary containing the messages. :r
src/lib/services/chat/memories/langchain/custom_remote.py:146
↓ 1 callers
Method
_call_tool
(self, transcript, response)
notebooks/meta_prompting/agent_simulator.py:79
↓ 1 callers
Function
_clean_generated_code
(code)
src/platform/tool_analyzer/main.py:92
↓ 1 callers
Method
_combine_elements
(self, documents, metadatas, embeddings, distances)
src/lib/services/rag/data_retrievers/qdrant/sentences.py:176
↓ 1 callers
Method
_combine_elements
(self, documents, metadatas, embeddings, distances)
src/lib/services/rag/data_retrievers/chroma/sentences.py:181
↓ 1 callers
Method
_combine_elements
(self, documents, metadatas, embeddings, distances)
src/lib/services/rag/data_retrievers/milvus/sentences.py:115
↓ 1 callers
Function
_configure_engine
(engine, project: dict)
src/platform/orchestrator/main.py:178
↓ 1 callers
Function
_configure_routes
Configures the routes for the Flask application.
src/platform/app_memory/main.py:145
↓ 1 callers
Function
_configure_routes
Configures the routes for the Flask application.
src/platform/app_games/main.py:45
↓ 1 callers
Function
_configure_routes
Configures the routes for the Flask application.
src/platform/app_backpanel/main.py:54
← previous
next →
101–200 of 1,350, ranked by callers