MCPcopy Create free account

hub / github.com/HazyResearch/minions / functions

Functions1,660 in github.com/HazyResearch/minions

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
Methodachat
Handle async chat completions. Args: messages: List of message dictionaries with 'role' and 'content' keys
minions/clients/docker_model_runner.py:187
Methodachat
Asynchronously handle chat completions using the HuggingFace Inference API or Router. Args: messages: List of message di
minions/clients/huggingface.py:181
Methodachat
Asynchronously handle chat completions using the HuggingFace Inference API. Args: messages: List of message dictionaries
secure/utils/clients/huggingface.py:121
Functionadd
Add two numbers and return the result.
tests/mcp_server_example/calculator_mcp_server_example.py:16
Methodadd_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
Methodadd_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
Methodadd_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
Functionagent
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
Functionagent_card
Get agent card.
apps/minions-a2a/examples/webapp/app.py:141
Methodamultimodal_chat
Asynchronously handle multimodal chat completions using the Qwen2.5-Omni model. Args: messages: List of message dictiona
minions/clients/huggingface.py:519
Methodamultimodal_chat
Asynchronously handle multimodal chat completions using the Qwen2.5-Omni model. Args: messages: List of message dictiona
secure/utils/clients/huggingface.py:412
Methodarch_router
Lazy-load Arch Router to avoid loading model if not needed.
minions/minion_arch.py:115
Functionattestation
()
secure/remote/worker_server.py:156
Methodauthenticate
Return authentication dependency function.
apps/minions-a2a/a2a_minions/auth.py:305
Methodavailable_tools
Get the list of available tools
minions/minions_mcp.py:193
Methodbytes_per_tok
(self)
minions/utils/inference_estimator.py:202
Functioncalculate_context
Calculate required context size for given text.
apps/minions-a2a/examples/webapp/app.py:197
Methodcalibrate
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
Methodcapture_prompt
(prompt, **_)
tests/test_minion_arch.py:158
Methodchat
Process messages using the Agno Agent. Args: messages: List of message dicts with 'role' and 'content' keys
minions/minion_agent.py:91
Methodchat
Handle chat completions using the NousResearch API. Args: messages: List of message dictionaries with 'role' and 'conten
minions/clients/nousresearch.py:83
Methodchat
Handle chat completions via the MiniMax API. Args: messages: List of message dictionaries with 'role' and 'content' keys.
minions/clients/minimax.py:87
Methodchat
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
Methodchat
Handle chat completions using the Cloudflare AI Gateway. Args: messages: List of message dictionaries with 'role' and 'c
minions/clients/cloudflare.py:87
Methodchat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
minions/clients/tokasaurus.py:66
Methodchat
Handle chat completions using the Mistral API. If websearch is enabled, uses the websearch agent for conversations. Args:
minions/clients/mistral.py:80
Methodchat
Handle chat completions using the Modular MAX OpenAI-compatible endpoint. Args: messages: List of message dictionaries w
minions/clients/modular.py:84
Methodchat
Handle chat completions using the Azure OpenAI API. Supports both standard models and reasoning models (o1, o3, o4).
minions/clients/azure_openai.py:76
Methodchat
Primary chat interface that all clients must implement. Args: messages: List of message dictionaries with 'role'
minions/clients/base.py:65
Methodchat
Handle chat completions with support for reasoning models. Args: messages: List of message dictionaries with 'role' and '
minions/clients/novita.py:89
Methodchat
Handle chat completions with LMCache KV cache management. Args: messages: List of message dictionaries with 'role' and '
minions/clients/lmcache.py:154
Methodchat
(self, messages, **kwargs)
minions/clients/docker_model_runner.py:139
Methodchat
Main chat method: dispatches to schat or achat depending on use_async.
minions/clients/lemonade.py:59
Methodchat
Handle chat completions using the Cerebras API. Args: messages: List of message dictionaries with 'role' and 'content' k
minions/clients/cerebras.py:90
Methodchat
Handle chat completions using the Tencent Hunyuan API. Args: messages: List of message dictionaries with 'role' and 'con
minions/clients/tencent.py:78
Methodchat
Handle chat completions using the Osaurus server via OpenAI SDK. Args: messages: List of message dictionaries wi
minions/clients/osaurus.py:168
Methodchat
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
Methodchat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
secure/utils/clients/tokasaurus.py:58
Methodchat
Handle chat completions, routing to async or sync implementation.
secure/utils/clients/gemini.py:290
Methodchat
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
Methodchat
Handle chat completions using the OpenAI client, but route to perplexity Args: messages: List of message dictionaries w
secure/utils/clients/openrouter.py:54
Methodchat
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
Methodchat
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
Methodchat
Handle chat completions using the OpenAI client, but route to perplexity Args: messages: List of message dictionaries w
secure/utils/clients/perplexity.py:43
Methodchat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
secure/utils/clients/openai.py:104
Methodchat
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
Methodchat
Handle chat completions using the Together API. Args: messages: List of message dictionaries with 'role' and 'content' k
secure/utils/clients/together.py:34
Methodchat
Handle chat completions using the DeepSeek API. Args: messages: List of message dictionaries with 'role' and 'content' k
secure/utils/clients/deepseek.py:32
Methodchat
Handle chat completions using the Anthropic API. Args: messages: List of message dictionaries with 'role' and 'content'
secure/utils/clients/anthropic.py:34
Methodchat
Handle chat completions using the SambaNova API. Args: messages: List of message dictionaries with 'role' and 'content'
secure/utils/clients/sambanova.py:35
Methodchat
Handle chat completions using the HuggingFace Inference API. Args: messages: List of message dictionaries with 'role' an
secure/utils/clients/huggingface.py:74
Methodchat_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
Functionchunk_by_code
Splits Python code into chunks by function (with decorators). Optionally specify number of functions per chunk
minions/utils/chunking.py:154
Functionchunk_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
Functionchunk_by_page
(doc: str, page_markers: Optional[List[str]] = None)
minions/utils/chunking.py:19
Functionchunk_by_paragraph
( doc: str, max_chunk_size: int = 1500, overlap_sentences: int = 0 )
minions/utils/chunking.py:73
Functionchunk_by_section
( doc: str, max_chunk_size: int = 3000, overlap: int = 20 )
minions/utils/chunking.py:7
Methodcleanup
Clean up temporary files and old backups.
minions/utils/workspace.py:435
Methodcleanup_loop
()
apps/minions-a2a/a2a_minions/server.py:86
Methodclear_file_search_stores
Clear all File Search stores from being used in generations. Example: client.clear_file_search_stores()
minions/clients/gemini.py:972
Methodclear_files
Clear all file attachments from chat (does not delete the files).
minions/clients/grok.py:334
Functionclear_system_cache_after
Function decorator to clear ChromaDB system cache.
minions/utils/multimodal_retrievers.py:29
Methodclose
Close the client.
apps/minions-a2a/tests/integration/test_client_minion.py:178
Methodclose
Close the client.
apps/minions-a2a/tests/integration/test_client_minions.py:181
Functioncloud_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
Functioncloud_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
← previousnext →901–1,000 of 1,660, ranked by callers