Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HazyResearch/minions
/ functions
Functions
1,660 in github.com/HazyResearch/minions
⨍
Functions
1,660
◇
Types & classes
282
↳
Endpoints
40
↓ 1 callers
Function
embed_and_add
Embed content and add embeddings to the ChromaDB collection. :param chromadb: ChromaDBCollection instance to add embeddings to :param co
minions/utils/multimodal_retrievers.py:545
↓ 1 callers
Function
embed_and_add_qdrant
Embed content and add embeddings to the Qdrant collection. :param qdrant: QdrantCollection instance to add embeddings to :param content:
minions/utils/multimodal_retrievers.py:588
↓ 1 callers
Function
embed_and_retrieve
Embed query string find most relevant entries from the ChromaDB collection. :param chromadb: ChromaDBCollection instance to add embeddings t
minions/utils/multimodal_retrievers.py:569
↓ 1 callers
Function
embed_and_retrieve_qdrant
Embed query string find most relevant entries from the Qdrant collection. :param qdrant: QdrantCollection instance to add embeddings to
minions/utils/multimodal_retrievers.py:610
↓ 1 callers
Function
embedding_example
Example of using the embedding API.
tests/test_llama_cpp.py:41
↓ 1 callers
Method
end_session
End the secure session and clear all sensitive data
secure/minions_secure.py:708
↓ 1 callers
Method
end_session
End the secure session and clear all sensitive data
secure/minions_chat.py:491
↓ 1 callers
Function
estimate_hf_model_memory
Estimate and print inference memory requirements for a HuggingFace model. Uses hf-mem (https://github.com/alvarobartt/hf-mem) to fetch S
minions/utils/vram_perf_calculator.py:380
↓ 1 callers
Method
estimate_tokens
Estimate the number of prompt tokens and completion tokens using character-based approximation. Args: messages: List of
minions/clients/secure.py:143
↓ 1 callers
Function
estimate_vram
Return total VRAM and component breakdown (bytes). For MoE models, we use active_params for weight memory estimation since only active ex
minions/utils/vram_perf_calculator.py:254
↓ 1 callers
Method
evaluate_student_response
Have GPT-4o evaluate the student model's response to a test problem.
minions/utils/minion_evaluator.py:178
↓ 1 callers
Function
example_code_analysis
Show how to use MinionToolCalling to analyze Python code.
tests/test_minion_wtools.py:118
↓ 1 callers
Function
example_custom_tools
Show how to use MinionToolCalling with custom tools.
tests/test_minion_wtools.py:258
↓ 1 callers
Function
example_document_extraction
Show how to use MinionToolCalling to extract information from a document.
tests/test_minion_wtools.py:163
↓ 1 callers
Function
example_file_analysis
Show how to use MinionToolCalling to analyze files in a directory.
tests/test_minion_wtools.py:72
↓ 1 callers
Function
example_local_codebase
()
tests/test_minion_mcp.py:5
↓ 1 callers
Function
export_character_to_json
Export character data to JSON string. Args: character_expose: Character exposé dictionary Returns: JSON str
apps/minions-character-chat/utils.py:309
↓ 1 callers
Function
export_clients
Export OAuth2 clients to file (without secrets).
apps/minions-a2a/manage_oauth2_clients.py:57
↓ 1 callers
Function
export_keys
Export API keys to a file.
apps/minions-a2a/manage_api_keys.py:85
↓ 1 callers
Method
extract_credentials
Extract credentials from task or context using regex patterns. This stores credentials securely in memory for later use.
minions/minion_cua.py:1328
↓ 1 callers
Function
extract_function_header
(lines: List[str], start_line: int)
minions/utils/chunking.py:132
↓ 1 callers
Function
extract_imports
(lines: List[str], tree: ast.AST)
minions/utils/chunking.py:122
↓ 1 callers
Method
extract_metadata
Extracts the metadata for a given query using the firecrawl API and SERPAPI utility functions Returns: tuple: (metadata_l
minions/minions_deep_research.py:58
↓ 1 callers
Function
extract_story_title
Extract the story title from the generated text. Args: story_text: The full story text Returns: Extracted t
apps/minions-story-teller/utils.py:110
↓ 1 callers
Function
extract_text_from_image
Extract text from an image using OCR via Ollama. Args: path_to_file: Base64 encoded image or path to image file model_na
app.py:360
↓ 1 callers
Function
extract_text_from_pdf
Extract text content from a PDF file.
minions_secure_chat.py:79
↓ 1 callers
Function
extract_text_from_pdf
Extract text from a PDF file using PyMuPDF.
app.py:333
↓ 1 callers
Function
extract_text_from_pdf
Extract text from a PDF file using PyMuPDF or pypdf as fallback.
apps/minions-docker/minions_http_server.py:191
↓ 1 callers
Function
extract_text_with_gitingest
Extract text from a folder using gitingest for comprehensive code ingestion.
minions_cli.py:116
↓ 1 callers
Method
extract_urls_from_messages
Extract all URLs from message content. Args: messages: List of message dictionaries Returns
minions/clients/gemini.py:261
↓ 1 callers
Method
find_free_port
()
secure/utils/clients/utils.py:73
↓ 1 callers
Function
find_optimal_num_tasks_per_round
Convenience function to find optimal num_tasks_per_round Args: task: Task for minions to perform context: Context for th
minions/utils/parameter_optimizer.py:321
↓ 1 callers
Function
format_attempts_for_supervisor
Format worker attempts into a readable string for the supervisor.
minions/minion_reasoning.py:29
↓ 1 callers
Function
format_execution_time
Format execution time in a human-readable way.
apps/minions-tools/utils.py:12
↓ 1 callers
Method
from_dict
Create a ConversationTurn from a dictionary.
minions/utils/conversation_history.py:28
↓ 1 callers
Function
generate_attestation_keys
(attestation_key_path: str)
secure/utils/crypto_utils.py:176
↓ 1 callers
Function
generate_character
Generate a character exposé from the description.
apps/minions-character-chat/app.py:217
↓ 1 callers
Method
generate_image_with_together
Generate image using Together AI FLUX.1-schnell API
apps/minions-story-teller/app.py:167
↓ 1 callers
Function
generate_key
Generate a new API key.
apps/minions-a2a/manage_api_keys.py:50
↓ 1 callers
Function
generate_keywords_with_local_model
Use a local model to generate keywords and weights for BM25 search based on user query. Args: user_query: The user's natural lan
apps/minions-doc-search/local_rag_document_search.py:56
↓ 1 callers
Method
generate_skill_report
Generate a summary report for a specific skill based on all test evaluations.
minions/utils/minion_evaluator.py:234
↓ 1 callers
Method
generate_skill_test
Have GPT-4o generate specific test problems for a given skill.
minions/utils/minion_evaluator.py:122
↓ 1 callers
Method
generate_story
Generate a story using the turn-taking protocol. Args: story_idea: The basic idea for the story targ
apps/minions-story-teller/story_minion.py:99
↓ 1 callers
Method
generate_story
Generate the story using the simplified Story Minion protocol
apps/minions-story-teller/app.py:527
↓ 1 callers
Function
generate_story_metadata
Generate metadata for the story. Args: story_data: Story data dictionary Returns: Metadata dictionary
apps/minions-story-teller/utils.py:252
↓ 1 callers
Method
get_agent_card
Get the public agent card.
apps/minions-a2a/tests/integration/run_integration_tests.py:62
↓ 1 callers
Method
get_agent_card
Fetch the public agent card.
apps/minions-a2a/tests/integration/test_client_minion.py:28
↓ 1 callers
Method
get_agent_card
Fetch the public agent card.
apps/minions-a2a/tests/integration/test_client_minions.py:28
↓ 1 callers
Method
get_agent_card
Get agent card.
apps/minions-a2a/examples/webapp/app.py:47
↓ 1 callers
Function
get_available_gemma_model
Get the first available Gemma model.
apps/minions-character-chat/utils.py:101
↓ 1 callers
Method
get_available_models
Get a list of available Ollama Turbo models Returns: List[str]: List of model names
minions/clients/ollama.py:591
↓ 1 callers
Method
get_available_models
Return a list of model names available on the server.
minions/clients/lemonade.py:206
↓ 1 callers
Method
get_available_services
Get list of services with available API keys
tests/utils/env_checker.py:55
↓ 1 callers
Function
get_cached_character_expose
Get a cached character exposé.
apps/minions-character-chat/utils.py:225
↓ 1 callers
Function
get_character_generation_prompt
Generate the user prompt for character creation.
apps/minions-character-chat/prompts.py:32
↓ 1 callers
Function
get_character_sheet_display
Format character exposé for display in the UI.
apps/minions-character-chat/prompts.py:42
↓ 1 callers
Method
get_conversation_history
Return the current conversation history
secure/minions_chat.py:473
↓ 1 callers
Method
get_extended_agent_card
Fetch the extended agent card.
apps/minions-a2a/tests/integration/test_client_minion.py:34
↓ 1 callers
Method
get_extended_agent_card
Fetch the extended agent card.
apps/minions-a2a/tests/integration/test_client_minions.py:35
↓ 1 callers
Method
get_final_estimates
Compute final estimates for energy and average power based solely on the measured data. This estimation is based on: - The
minions/utils/energy_tracking.py:156
↓ 1 callers
Method
get_models
Return models available on the server.
minions/clients/lemonade.py:200
↓ 1 callers
Method
get_network_status
Get network health status from coordinator.
minions/clients/distributed_inference.py:126
↓ 1 callers
Method
get_oauth_token
Get OAuth2 access token.
apps/minions-a2a/tests/integration/run_integration_tests.py:78
↓ 1 callers
Method
get_project_summary
Generate a summary of the project in the workspace. Returns: Dictionary containing project summary information
minions/utils/workspace.py:339
↓ 1 callers
Method
get_server_config
Get configuration for a specific MCP server
minions/minions_mcp.py:81
↓ 1 callers
Function
get_server_tls_pubkey_hash
(host: str, port: int = 443)
secure/utils/crypto_utils.py:583
↓ 1 callers
Method
get_supported_providers
Returns a formatted string listing the supported AI providers. Returns: str: A string listing major AI providers
minions/clients/notdiamond.py:12
↓ 1 callers
Method
get_task
Get task status.
apps/minions-a2a/examples/webapp/app.py:72
↓ 1 callers
Function
get_tls_pubkey_hash
(cert_path: str)
secure/utils/crypto_utils.py:131
↓ 1 callers
Function
get_web_urls
Search the web for for relevant urls using SerpAPI Args: query: The query to search the web for Returns: A list of urls
minions/utils/serpapi_util.py:4
↓ 1 callers
Method
handlePdfFile
(file)
apps/minions-docker/web-minions/main.js:489
↓ 1 callers
Function
handle_chat_message
Handle a new chat message.
apps/minions-character-chat/app.py:296
↓ 1 callers
Method
health_check
Check server health.
apps/minions-a2a/tests/integration/test_client_minion.py:40
↓ 1 callers
Method
health_check
Check server health.
apps/minions-a2a/tests/integration/test_client_minions.py:41
↓ 1 callers
Method
health_check
Check server health.
apps/minions-a2a/examples/webapp/app.py:40
↓ 1 callers
Method
hidePdfProgress
()
apps/minions-docker/web-minions/main.js:581
↓ 1 callers
Function
img_to_markdown_smoldocling
Convert an image or PDF to markdown using SmolDocling. Args: image_data: Path to image file, URL, PIL Image object, image/PDF data a
minions/utils/doc_processing.py:213
↓ 1 callers
Function
import_character_from_json
Import character data from JSON string. Args: json_content: JSON string containing character data Returns:
apps/minions-character-chat/utils.py:284
↓ 1 callers
Method
initializeElements
()
apps/minions-docker/web-minions/main.js:33
↓ 1 callers
Method
initializeElements
()
apps/minions-docker/web/main.js:33
↓ 1 callers
Function
initialize_clients
Initialize the clients for both methods
apps/minions-tools/app.py:207
↓ 1 callers
Function
initialize_minion_on_startup
Initialize minion instance on startup if API key is available.
apps/minions-docker/minion_http_server.py:105
↓ 1 callers
Function
initialize_minions_on_startup
Initialize minions instance on startup if possible.
apps/minions-docker/minions_http_server.py:223
↓ 1 callers
Function
initialize_model
Initialize the model at server startup.
secure/remote/remote_model.py:146
↓ 1 callers
Method
initialize_secure_session
Set up the secure communication channel with attestation and key exchange
secure/minions_secure.py:156
↓ 1 callers
Function
initialize_session_state
Initialize Streamlit session state variables.
apps/minions-character-chat/utils.py:199
↓ 1 callers
Method
initialize_session_state
Initialize session state variables
apps/minions-story-teller/app.py:112
↓ 1 callers
Method
inject_credentials
Inject stored credentials into action if available. Returns the original action if no credentials are found.
minions/minion_cua.py:1351
↓ 1 callers
Method
interactions_chat
Handle chat using the Interactions API. The Interactions API provides a simpler interface for chat-like interactions
minions/clients/gemini.py:1050
↓ 1 callers
Function
interactive_mode
Run in interactive mode.
tests/test_multi_turn.py:63
↓ 1 callers
Function
interactive_mode
Run in interactive mode.
tests/test_summarization.py:65
↓ 1 callers
Method
is_action_safe
Enhanced safety validation with more flexible UI interaction support.
minions/minion_cua.py:642
↓ 1 callers
Function
is_dark_mode
()
minions_secure_chat.py:186
↓ 1 callers
Function
is_dark_mode
()
app.py:432
↓ 1 callers
Method
is_reasoning_model
Check if the current model is a reasoning model. Returns: bool: True if the model supports reasoning_content output
minions/clients/novita.py:63
↓ 1 callers
Method
key_combo
Execute a keyboard shortcut combo in an application.
minions/minion_cua.py:1046
↓ 1 callers
Method
launch_server
(self, launch_command: str, port: int, capture_output: bool = False)
secure/utils/clients/utils.py:8
↓ 1 callers
Function
launch_sglang_server
This function is kept for compatibility but now just returns the endpoint. The actual server should be started separately using the OpenAI-co
secure/remote/remote_model.py:167
↓ 1 callers
Function
list_available_gpus
Return sorted list of GPU keys.
minions/utils/vram_perf_calculator.py:283
↓ 1 callers
Function
list_available_models
Return sorted list of model keys.
minions/utils/vram_perf_calculator.py:278
← previous
next →
501–600 of 1,660, ranked by callers