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
Method
_detect_urls_in_messages
Detect if there are any URLs in the messages. Args: messages: List of message dictionaries
minions/clients/anthropic.py:134
↓ 1 callers
Method
_embed_image
Generate embeddings for an image using the ollama model. Theoretically, OllamaClient.embed could directly be called from self.genera
minions/utils/multimodal_retrievers.py:122
↓ 1 callers
Method
_embed_native
Generate embeddings using native Cohere SDK. Args: texts: List of texts to embed model: Embedding mo
minions/clients/cohere.py:234
↓ 1 callers
Method
_embed_openai_compat
Generate embeddings using OpenAI compatibility API. Args: texts: List of texts to embed model: Embed
minions/clients/cohere.py:267
↓ 1 callers
Method
_embed_text
Generate embeddings for an image using the ollama model. Theoretically, OllamaClient.embed could directly be called from self.genera
minions/utils/multimodal_retrievers.py:144
↓ 1 callers
Method
_embed_video
Generate embeddings for a video using the ollama model. Currently, an embedding of a video is represented by a set of embeddings for
minions/utils/multimodal_retrievers.py:158
↓ 1 callers
Method
_embedding_from_result
Converts ChromaDB query result to Embedding Object.
minions/utils/multimodal_retrievers.py:280
↓ 1 callers
Method
_embedding_from_result
Converts Qdrant query result to Embedding Object.
minions/utils/multimodal_retrievers.py:423
↓ 1 callers
Method
_enforce_task_limit
Enforce task limit by evicting oldest tasks if necessary.
apps/minions-a2a/a2a_minions/server.py:157
↓ 1 callers
Method
_ensure_model_available
(self)
minions/clients/ollama.py:105
↓ 1 callers
Method
_ensure_model_available
Ensure the specified model is available on the Lemonade server.
minions/clients/lemonade.py:211
↓ 1 callers
Method
_ensure_model_available
(self)
secure/utils/clients/ollama.py:69
↓ 1 callers
Method
_ensure_new_textedit_document
Robust method to ensure a new TextEdit document is created. :return: Tuple of (success, message)
minions/minion_cua.py:550
↓ 1 callers
Function
_escape_newlines_in_strings
Escape newline characters within JSON string values.
minions/minion_arch.py:30
↓ 1 callers
Function
_escape_newlines_in_strings
(json_str: str)
minions/minion.py:43
↓ 1 callers
Function
_escape_newlines_in_strings
(json_str: str)
minions/minion_wtools.py:32
↓ 1 callers
Function
_escape_newlines_in_strings
Escape newline characters within JSON string values.
minions/utils/arch_router.py:21
↓ 1 callers
Function
_escape_newlines_in_strings
Escape newlines in JSON strings for better parsing.
secure/minions_secure.py:49
↓ 1 callers
Method
_evaluate_minions_run
Evaluate a single minions run based on the specified metric Args: result: Result dictionary from minions run
minions/utils/parameter_optimizer.py:95
↓ 1 callers
Method
_execute_action
Execute the appropriate action based on the action type in the JSON. WARNING: This method executes actions on the host machine based
minions/minion_cua.py:971
↓ 1 callers
Method
_execute_development_step
Execute a single development step with local LLM and remote review.
minions/minion_code.py:325
↓ 1 callers
Method
_execute_minions_query
Execute Minions (parallel) query.
apps/minions-a2a/a2a_minions/server.py:451
↓ 1 callers
Method
_execute_skill
Execute a specific Minions skill. Expected metadata format for Minions integration: - skill_id: "minion_query" or "minions_qu
apps/minions-a2a/a2a_minions/server.py:352
↓ 1 callers
Method
_execute_tool_calls
Execute tool calls and return the results. Args: tool_calls: List of tool call objects from the LLM custom_tool_execu
minions/minion_wtools.py:1017
↓ 1 callers
Function
_extract_balanced_json
Extract a complete JSON object by counting balanced braces.
minions/minion_code.py:42
↓ 1 callers
Method
_extract_citations
Extract citations from response if available.
minions/clients/exa.py:249
↓ 1 callers
Method
_extract_first_image
Extract and load the first image referenced in messages. Supports keys: 'images' (list/str), 'image' (str), 'image_url' (data URL or
minions/clients/transformers.py:278
↓ 1 callers
Method
_extract_interaction_texts
Extract text content from an Interactions API response. Args: response: The Interactions API response object
minions/clients/gemini.py:1161
↓ 1 callers
Method
_extract_interaction_usage
Extract usage information from an Interactions API response. Args: response: The Interactions API response objec
minions/clients/gemini.py:1187
↓ 1 callers
Function
_extract_json
Extract JSON from text that may be wrapped in markdown code blocks.
minions/utils/arch_router.py:31
↓ 1 callers
Method
_extract_text_from_pdf
Extract text content from a PDF file
secure/minions_secure.py:255
↓ 1 callers
Method
_extract_usage
Extract token usage from Agno response if available.
minions/minion_agent.py:166
↓ 1 callers
Method
_find_first_user_message_index
Find the index of the first user message in the messages list.
minions/clients/grok.py:170
↓ 1 callers
Method
_format_completed_steps
Format completed steps summary with test results.
minions/minion_code.py:735
↓ 1 callers
Method
_format_conversation_history
Format the conversation history for inclusion in prompts.
minions/minion.py:764
↓ 1 callers
Method
_format_interactions_input
Format messages for the Interactions API. Args: messages: List of message dictionaries with 'role' and 'content'
minions/clients/gemini.py:389
↓ 1 callers
Method
_format_multimodal_message
Format a message with multimodal content for the Qwen2.5-Omni model. Args: message: Message dictionary with 'role' and '
minions/clients/huggingface.py:329
↓ 1 callers
Method
_format_multimodal_message
Format a message with multimodal content for the Qwen2.5-Omni model. Args: message: Message dictionary with 'role' and '
secure/utils/clients/huggingface.py:222
↓ 1 callers
Method
_format_variables_for_log
Format namespace variables for JSON logging.
minions/minion_rlm.py:597
↓ 1 callers
Method
_generate
Generate text without streaming.
minions/clients/cartesia_mlx.py:117
↓ 1 callers
Method
_generate
Generate text without streaming.
secure/utils/clients/cartesia_mlx.py:108
↓ 1 callers
Function
_generate_markdown_with_mlx
Generate markdown using MLX implementation.
minions/utils/doc_processing.py:346
↓ 1 callers
Function
_generate_markdown_with_transformers
Generate markdown using Transformers implementation.
minions/utils/doc_processing.py:396
↓ 1 callers
Method
_generate_mcp_tools_info
Generate explanation of available MCP tools for supervisor.
minions/minion.py:741
↓ 1 callers
Method
_generate_runbook
Generate the development runbook using the remote LLM.
minions/minion_code.py:250
↓ 1 callers
Method
_get_device_and_dtype
Determine the appropriate device and dtype to use. Returns: tuple: (device, dtype)
minions/clients/transformers.py:499
↓ 1 callers
Method
_get_extra_body
Get Tencent-specific extra_body parameters for API requests. Returns: Dictionary of extra_body parameters for Hunyuan API
minions/clients/tencent.py:65
↓ 1 callers
Method
_get_extra_headers
Get OpenRouter-specific headers.
minions/clients/openrouter.py:147
↓ 1 callers
Method
_handle_cancel_task
Handle tasks/cancel requests.
apps/minions-a2a/a2a_minions/server.py:914
↓ 1 callers
Method
_handle_get_task
Handle tasks/get requests.
apps/minions-a2a/a2a_minions/server.py:886
↓ 1 callers
Method
_handle_send_task
Handle tasks/send requests.
apps/minions-a2a/a2a_minions/server.py:781
↓ 1 callers
Method
_handle_send_task_streaming
Handle tasks/sendSubscribe requests with streaming.
apps/minions-a2a/a2a_minions/server.py:810
↓ 1 callers
Method
_handle_stream_response
Handle streaming response and collect full content.
minions/clients/exa.py:209
↓ 1 callers
Method
_import_minions_modules
Import Minions modules and clients.
apps/minions-a2a/a2a_minions/client_factory.py:42
↓ 1 callers
Method
_initialize
Initialize the client in a separate thread
minions/minions_mcp.py:177
↓ 1 callers
Method
_initialize_client
Initialize the appropriate client based on configuration.
minions/clients/mlx_clients.py:424
↓ 1 callers
Method
_initialize_client
Initialize the appropriate client based on configuration.
secure/utils/clients/mlx_omni.py:43
↓ 1 callers
Method
_initialize_llm
Initialize vLLM with LMCache integration.
minions/clients/lmcache.py:105
↓ 1 callers
Method
_initialize_secure_session
Set up the secure communication channel with attestation and key exchange
minions/clients/secure.py:172
↓ 1 callers
Method
_is_apriel_model
Detect ServiceNow Apriel models which use AutoModelForImageTextToText.
minions/clients/transformers.py:245
↓ 1 callers
Method
_is_fastvlm_model
Detect Apple FastVLM models which require special image handling.
minions/clients/transformers.py:238
↓ 1 callers
Method
_is_hunyuan_model
Check if the current model is a Hunyuan model. Returns: bool: True if the model is a Hunyuan model, False otherw
minions/clients/transformers.py:252
↓ 1 callers
Method
_is_mac
Check if the system is a Mac.
minions/utils/energy_tracking.py:52
↓ 1 callers
Method
_is_mobilellm_model
Detect Facebook MobileLLM models which use subfolders for different versions.
minions/clients/transformers.py:231
↓ 1 callers
Method
_is_nemotron_model
Check if the model is a Nemotron model. Args: model_name: The model name to check Returns:
minions/clients/transformers.py:261
↓ 1 callers
Method
_is_nvidia_available
Check if nvidia-smi is available on the system.
minions/utils/energy_tracking.py:39
↓ 1 callers
Method
_is_reasoning_model
Check if the given model supports reasoning. Args: model_name: The model name to check Returns: boo
minions/clients/grok.py:150
↓ 1 callers
Method
_is_session_valid
Check if the current session is still valid
minions/clients/secure.py:231
↓ 1 callers
Function
_iv_from_nonce
(nonce: int)
secure/utils/crypto_utils.py:762
↓ 1 callers
Function
_jwks_fallback
Last-chance attempt: download the JWKS and try every key until one verifies the signature. Works even when there's no `kid` or `x5c`.
secure/utils/crypto_utils.py:90
↓ 1 callers
Method
_load_api_keys
Load API keys from file.
apps/minions-a2a/a2a_minions/auth.py:63
↓ 1 callers
Method
_load_calib
(self)
minions/utils/inference_estimator.py:277
↓ 1 callers
Method
_load_clients
Load OAuth2 clients from storage.
apps/minions-a2a/a2a_minions/auth.py:193
↓ 1 callers
Method
_load_config
Load MCP configuration from file
minions/minions_mcp.py:49
↓ 1 callers
Method
_load_default_config
Load default configuration from environment variables.
apps/minions-a2a/a2a_minions/config.py:94
↓ 1 callers
Method
_load_embedding_model
Load a separate model for generating embeddings.
minions/clients/transformers.py:531
↓ 1 callers
Method
_local_implement_step
Have local LLM implement a development step.
minions/minion_code.py:450
↓ 1 callers
Method
_log_session
Log the story generation session.
apps/minions-story-teller/story_minion.py:429
↓ 1 callers
Method
_make_chat_request
Make a chat request to the Docker Model Runner API
minions/clients/docker_model_runner.py:114
↓ 1 callers
Method
_make_chat_request_async
Make an async chat request to the Docker Model Runner API
minions/clients/docker_model_runner.py:161
↓ 1 callers
Method
_messages_to_prompt
Convert chat messages to a single prompt string for the Agno Agent. The Agno Agent expects a single prompt, so we need to co
minions/minion_agent.py:129
↓ 1 callers
Method
_messages_to_prompt
Convert chat messages to a single prompt string. This is a simple implementation - you may want to use proper chat templates
minions/clients/lmcache.py:229
↓ 1 callers
Function
_mk_session_header
Create a session header by hashing all slice metadata.
secure/utils/crypto_utils.py:789
↓ 1 callers
Function
_open_slice
Verify and decrypt a single chunk of data.
secure/utils/crypto_utils.py:777
↓ 1 callers
Method
_parse_apriel_response
Parse Apriel model response to extract thinking content and final answer. Args: completion_text: Raw completion
minions/clients/transformers.py:771
↓ 1 callers
Method
_parse_hunyuan_response
Parse Hunyuan model response to extract thinking content and answer content. Args: completion_text: Raw completi
minions/clients/transformers.py:337
↓ 1 callers
Method
_prepare_nemotron_kwargs
Prepare kwargs for Nemotron models, including reasoning budget control. Args: **kwargs: Original kwargs
minions/clients/transformers.py:459
↓ 1 callers
Method
_prepare_nemotron_messages
Prepare messages for Nemotron models by adding appropriate reasoning control. Args: messages: Original messages
minions/clients/transformers.py:412
↓ 1 callers
Method
_prepare_schema
Prepare the structured output schema. Args: schema: Pydantic model class or JSON Schema dict
minions/clients/distributed_inference.py:76
↓ 1 callers
Method
_process_folder
Process a folder containing text, PDF, and image files.
secure/minions_secure.py:263
↓ 1 callers
Function
_process_image_input
Process various image input types and return a PIL Image.
minions/utils/doc_processing.py:274
↓ 1 callers
Method
_process_media_file
Process a media file (image, audio, video) from a file path or URL. Args: file_path_or_url: Path to local file or URL
minions/clients/huggingface.py:292
↓ 1 callers
Method
_process_media_file
Process a media file (image, audio, video) from a file path or URL. Args: file_path_or_url: Path to local file or URL
secure/utils/clients/huggingface.py:185
↓ 1 callers
Method
_pull_model
Pull the model using Docker Model Runner.
minions/clients/docker_model_runner.py:79
↓ 1 callers
Method
_raise_docker_not_installed
Raise an exception with Docker installation instructions.
minions/clients/docker_model_runner.py:33
↓ 1 callers
Method
_remote_review_step
Have remote LLM review the implementation.
minions/minion_code.py:553
↓ 1 callers
Method
_run_adaptive
Run the task with per-turn decisions between local and remote models while following minion protocol.
minions/minion_tunable.py:269
↓ 1 callers
Method
_run_local_only
Run the entire task using only the local model.
minions/minion_tunable.py:159
↓ 1 callers
Method
_run_remote_only
Run the entire task using only the remote model.
minions/minion_tunable.py:218
↓ 1 callers
Method
_save_calib
(self)
minions/utils/inference_estimator.py:284
← previous
next →
301–400 of 1,660, ranked by callers