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
Method
_authenticate
Authenticate request using any available method.
apps/minions-a2a/a2a_minions/auth.py:307
Method
_captured_print
(*args, **kwargs)
minions/minion_rlm.py:342
Function
_cb
(chunk: str)
minions_secure_chat.py:126
Method
_check_docker_installation
Check if Docker is installed and running, provide installation instructions if not.
minions/clients/docker_model_runner.py:42
Method
_check_scopes
( request: Request, token_data: TokenData = Depends(self.authenticate) )
apps/minions-a2a/a2a_minions/auth.py:360
Method
_ensure_model_available
Ensure the model is available, pull it if necessary.
minions/clients/docker_model_runner.py:102
Method
_execute_code
Execute code with MCP tools available
minions/minions_mcp.py:291
Method
_extract_pdf_sync
Synchronous PDF extraction to run in thread pool.
apps/minions-a2a/a2a_minions/converters.py:238
Method
_extract_text_from_txt
Extract text content from a .txt file
secure/minions_secure.py:259
Method
_extract_text_from_txt
Extract text content from a .txt file
secure/minions_chat.py:177
Method
_final
(answer)
minions/minion_rlm.py:325
Method
_final_var
(var_name: str)
minions/minion_rlm.py:328
Method
_get_api_key
Get API key from environment variables.
minions/utils/retrievers.py:461
Method
_get_api_key
Get API key from environment variables.
minions/utils/retrievers.py:810
Method
_llm_query
(prompt: str, context_chunk: str = "")
minions/minion_rlm.py:282
Method
_monitor
Internal method that polls the appropriate power tool until stopped.
minions/utils/energy_tracking.py:95
Method
_open_image_from_data_url
(data_url: str)
minions/clients/transformers.py:299
Method
_open_image_from_path
(path: str)
minions/clients/transformers.py:287
Method
_process_image
Process an image file and return base64 encoded data or None if processing fails
secure/minions_secure.py:232
Function
_retrieve_colbert
ColBERT late-interaction retrieval using Liquid AI's LFM2-ColBERT-350M.
apps/minions-doc-search/local_rag_document_search.py:440
Function
_retrieve_embedding
Dense embedding retrieval using SentenceTransformers + FAISS.
apps/minions-doc-search/local_rag_document_search.py:322
Function
_retrieve_embeddinggemma
EmbeddingGemma retrieval using Google's EmbeddingGemma-300m model.
apps/minions-doc-search/local_rag_document_search.py:365
Function
_retrieve_gemini
Gemini embedding retrieval using Google's Gemini embeddings.
apps/minions-doc-search/local_rag_document_search.py:347
Function
_retrieve_mlx
MLX embedding retrieval (Apple Silicon optimized).
apps/minions-doc-search/local_rag_document_search.py:334
Function
_retrieve_multimodal
Multimodal retrieval using ChromaDB + Ollama.
apps/minions-doc-search/local_rag_document_search.py:468
Function
_retrieve_ollama
Ollama embedding retrieval using local Ollama models.
apps/minions-doc-search/local_rag_document_search.py:414
Function
_retrieve_openrouter
OpenRouter embedding retrieval using OpenRouter API.
apps/minions-doc-search/local_rag_document_search.py:385
Function
_retrieve_qdrant
Qdrant retrieval using Qdrant + Ollama.
apps/minions-doc-search/local_rag_document_search.py:481
Method
_run_async_loop
Run the asyncio event loop in a separate thread
minions/minions_mcp.py:109
Method
_run_in_new_loop
Run the async chat in a new event loop in a separate thread
minions/clients/gemini.py:470
Method
_run_in_new_loop
Run the async chat in a new event loop in a separate thread
minions/clients/mlx_clients.py:314
Method
_run_in_new_loop
Run the async chat in a new event loop in a separate thread
minions/clients/ollama.py:232
Method
_run_minions_experiment
Run a single minions experiment with given parameters Args: task: Task for minions to perform contex
minions/utils/parameter_optimizer.py:141
Function
_timeout_handler
(signum, frame)
minions/minion_rlm.py:50
Method
achat
Handle async chat completions. Args: messages: List of message dictionaries with 'role' and 'content' keys
minions/clients/docker_model_runner.py:187
Method
achat
Asynchronously handle chat completions using the HuggingFace Inference API or Router. Args: messages: List of message di
minions/clients/huggingface.py:181
Method
achat
Asynchronously handle chat completions using the HuggingFace Inference API. Args: messages: List of message dictionaries
secure/utils/clients/huggingface.py:121
Function
add
Add two numbers and return the result.
tests/mcp_server_example/calculator_mcp_server_example.py:16
Method
add_entries
Add entries to the ChromaDB collection. :param embeddings: list of document embeddings to add, must be either TextEmbedding, ImageEm
minions/utils/multimodal_retrievers.py:330
Method
add_file
Add a file ID to be attached to chat messages. Example: file_info = client.upload_file("report.pdf") client.
minions/clients/grok.py:309
Method
add_file_search_store
Add a File Search store to be used in subsequent generations. Args: store_name: Name of the store to add (format
minions/clients/gemini.py:944
Function
agent
Use Firecrawl Agent to search, navigate, and gather data from the web. See: https://docs.firecrawl.dev/features/agent Example:
minions/utils/firecrawl_util.py:61
Function
agent_card
Get agent card.
apps/minions-a2a/examples/webapp/app.py:141
Method
amultimodal_chat
Asynchronously handle multimodal chat completions using the Qwen2.5-Omni model. Args: messages: List of message dictiona
minions/clients/huggingface.py:519
Method
amultimodal_chat
Asynchronously handle multimodal chat completions using the Qwen2.5-Omni model. Args: messages: List of message dictiona
secure/utils/clients/huggingface.py:412
Method
arch_router
Lazy-load Arch Router to avoid loading model if not needed.
minions/minion_arch.py:115
Function
attestation
()
secure/remote/worker_server.py:156
Method
authenticate
Return authentication dependency function.
apps/minions-a2a/a2a_minions/auth.py:305
Method
available_tools
Get the list of available tools
minions/minions_mcp.py:193
Method
bytes_per_tok
(self)
minions/utils/inference_estimator.py:202
Function
calculate_context
Calculate required context size for given text.
apps/minions-a2a/examples/webapp/app.py:197
Method
calibrate
Run a single timed generation to compute a correction factor and cache it. `model_client` must expose `.generate(prompt, max_tokens=.
minions/utils/inference_estimator.py:246
Method
capture_prompt
(prompt, **_)
tests/test_minion_arch.py:158
Method
chat
Process messages using the Agno Agent. Args: messages: List of message dicts with 'role' and 'content' keys
minions/minion_agent.py:91
Method
chat
Handle chat completions using the NousResearch API. Args: messages: List of message dictionaries with 'role' and 'conten
minions/clients/nousresearch.py:83
Method
chat
Handle chat completions via the MiniMax API. Args: messages: List of message dictionaries with 'role' and 'content' keys.
minions/clients/minimax.py:87
Method
chat
Handle chat completions via the Vercel AI Gateway. Supports sending `providerOptions` using the OpenAI SDK `extra_body` parameter. Yo
minions/clients/vercel_gateway.py:81
Method
chat
Handle chat completions using the Cloudflare AI Gateway. Args: messages: List of message dictionaries with 'role' and 'c
minions/clients/cloudflare.py:87
Method
chat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
minions/clients/tokasaurus.py:66
Method
chat
Handle chat completions using the Mistral API. If websearch is enabled, uses the websearch agent for conversations. Args:
minions/clients/mistral.py:80
Method
chat
Handle chat completions using the Modular MAX OpenAI-compatible endpoint. Args: messages: List of message dictionaries w
minions/clients/modular.py:84
Method
chat
Handle chat completions using the Azure OpenAI API. Supports both standard models and reasoning models (o1, o3, o4).
minions/clients/azure_openai.py:76
Method
chat
Primary chat interface that all clients must implement. Args: messages: List of message dictionaries with 'role'
minions/clients/base.py:65
Method
chat
Handle chat completions with support for reasoning models. Args: messages: List of message dictionaries with 'role' and '
minions/clients/novita.py:89
Method
chat
Handle chat completions with LMCache KV cache management. Args: messages: List of message dictionaries with 'role' and '
minions/clients/lmcache.py:154
Method
chat
(self, messages, **kwargs)
minions/clients/docker_model_runner.py:139
Method
chat
Main chat method: dispatches to schat or achat depending on use_async.
minions/clients/lemonade.py:59
Method
chat
Handle chat completions using the Cerebras API. Args: messages: List of message dictionaries with 'role' and 'content' k
minions/clients/cerebras.py:90
Method
chat
Handle chat completions using the Tencent Hunyuan API. Args: messages: List of message dictionaries with 'role' and 'con
minions/clients/tencent.py:78
Method
chat
Handle chat completions using the Osaurus server via OpenAI SDK. Args: messages: List of message dictionaries wi
minions/clients/osaurus.py:168
Method
chat
Handle chat completions using the MLX Omni Server. Args: messages: List of message dictionaries with 'role' and 'content
secure/utils/clients/mlx_omni.py:108
Method
chat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
secure/utils/clients/tokasaurus.py:58
Method
chat
Handle chat completions, routing to async or sync implementation.
secure/utils/clients/gemini.py:290
Method
chat
Handle chat completions using the Azure OpenAI API. Args: messages: List of message dictionaries with 'role' and 'conten
secure/utils/clients/azure_openai.py:55
Method
chat
Handle chat completions using the OpenAI client, but route to perplexity Args: messages: List of message dictionaries w
secure/utils/clients/openrouter.py:54
Method
chat
Handle chat completions using the Cartesia MLX client. Args: messages: List of message dictionaries with 'role' and 'con
secure/utils/clients/cartesia_mlx.py:71
Method
chat
Generate a response for a chat conversation using the MLX PARALLM model. Args: messages: List of message dictionaries, e
secure/utils/clients/mlx_parallm_model.py:44
Method
chat
Handle chat completions using the OpenAI client, but route to perplexity Args: messages: List of message dictionaries w
secure/utils/clients/perplexity.py:43
Method
chat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
secure/utils/clients/openai.py:104
Method
chat
Handle chat completions using the MLX LM client. Args: messages: List of message dictionaries with 'role' and 'content'
secure/utils/clients/mlx_lm.py:37
Method
chat
Handle chat completions using the Together API. Args: messages: List of message dictionaries with 'role' and 'content' k
secure/utils/clients/together.py:34
Method
chat
Handle chat completions using the DeepSeek API. Args: messages: List of message dictionaries with 'role' and 'content' k
secure/utils/clients/deepseek.py:32
Method
chat
Handle chat completions using the Anthropic API. Args: messages: List of message dictionaries with 'role' and 'content'
secure/utils/clients/anthropic.py:34
Method
chat
Handle chat completions using the SambaNova API. Args: messages: List of message dictionaries with 'role' and 'content'
secure/utils/clients/sambanova.py:35
Method
chat
Handle chat completions using the HuggingFace Inference API. Args: messages: List of message dictionaries with 'role' an
secure/utils/clients/huggingface.py:74
Method
chat_with_websearch
Convenience method to perform a websearch-enabled chat with a single query. Args: query: The search query or question
minions/clients/mistral.py:182
Function
chunk_by_code
Splits Python code into chunks by function (with decorators). Optionally specify number of functions per chunk
minions/utils/chunking.py:154
Function
chunk_by_function_and_class
Splits Python code into chunks by function and class definitions. For stand-alone functions, the chunk is the entire function (with decorato
minions/utils/chunking.py:182
Function
chunk_by_page
(doc: str, page_markers: Optional[List[str]] = None)
minions/utils/chunking.py:19
Function
chunk_by_paragraph
( doc: str, max_chunk_size: int = 1500, overlap_sentences: int = 0 )
minions/utils/chunking.py:73
Function
chunk_by_section
( doc: str, max_chunk_size: int = 3000, overlap: int = 20 )
minions/utils/chunking.py:7
Method
cleanup
Clean up temporary files and old backups.
minions/utils/workspace.py:435
Method
cleanup_loop
()
apps/minions-a2a/a2a_minions/server.py:86
Method
clear_file_search_stores
Clear all File Search stores from being used in generations. Example: client.clear_file_search_stores()
minions/clients/gemini.py:972
Method
clear_files
Clear all file attachments from chat (does not delete the files).
minions/clients/grok.py:334
Function
clear_system_cache_after
Function decorator to clear ChromaDB system cache.
minions/utils/multimodal_retrievers.py:29
Method
close
Close the client.
apps/minions-a2a/tests/integration/test_client_minion.py:178
Method
close
Close the client.
apps/minions-a2a/tests/integration/test_client_minions.py:181
Function
cloud_inference_energy_estimate
Estimate the energy consumption of a GPU inference task based on approximations from epoch ai https://epoch.ai/gradient-updates/how-much-ener
minions/utils/energy_tracking.py:241
Function
cloud_inference_energy_estimate_w_model_attributes
( input_tokens=0, output_tokens=500, model_name="gpt-4o", gpu_name="H100", attention_mode=
minions/utils/energy_tracking.py:275
← previous
next →
901–1,000 of 1,660, ranked by callers