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,131 callers
Function
print
(*args, **kwargs)
minion_stdin_interface.py:31
↓ 791 callers
Method
get
(self, key, default=None)
minions/usage.py:39
↓ 159 callers
Method
chat
Handle chat completions using Exa's OpenAI-compatible API. This routes to Exa's /chat/completions endpoint which provides
minions/clients/exa.py:82
↓ 69 callers
Method
write
(self, data)
minion_stdin_interface.py:40
↓ 49 callers
Method
assert_response_content
Assert response contains expected content
tests/test_base_client_integration.py:81
↓ 48 callers
Method
log_test
Log test result.
apps/minions-a2a/tests/integration/run_integration_tests.py:170
↓ 46 callers
Method
run
Run the server.
apps/minions-a2a/a2a_minions/server.py:949
↓ 34 callers
Method
encode
Encode texts to create embeddings using MLX model. Args: texts: Single text or list of texts to encode model
minions/utils/retrievers.py:175
↓ 29 callers
Method
log_test
Log test result.
apps/minions-a2a/tests/integration/test_client_minion.py:190
↓ 28 callers
Method
logMessage
(message, type = 'info')
apps/minions-docker/web-minions/main.js:178
↓ 27 callers
Method
log_test
Log test result.
apps/minions-a2a/tests/integration/test_client_minions.py:193
↓ 25 callers
Method
assert_valid_chat_response
Assert that chat response has correct format
tests/test_base_client_integration.py:58
↓ 22 callers
Method
close
Close the test client.
apps/minions-a2a/tests/integration/test_client_minion.py:610
↓ 21 callers
Method
get_metrics
Generate current metrics in Prometheus format.
apps/minions-a2a/a2a_minions/metrics.py:219
↓ 20 callers
Method
get_test_messages
Standard test messages for consistency
tests/test_base_client_integration.py:52
↓ 18 callers
Method
to_dict
(self)
minions/usage.py:42
↓ 17 callers
Method
create_task
Create a new task.
apps/minions-a2a/a2a_minions/server.py:182
↓ 17 callers
Method
search
Search the web using Exa's native search API. Supports multiple search types including instant search for sub-150ms latency.
minions/clients/exa.py:269
↓ 15 callers
Function
_retrieve_bm25
BM25 retrieval using keywords and weights.
apps/minions-doc-search/local_rag_document_search.py:312
↓ 15 callers
Method
logMessage
(message, type = 'info')
apps/minions-docker/web/main.js:78
↓ 14 callers
Method
addMetric
(label, value, container)
apps/minions-docker/web-minions/main.js:453
↓ 11 callers
Function
deserialize_public_key
(pem_data)
secure/utils/crypto_utils.py:62
↓ 11 callers
Method
send_request
Send JSON-RPC request with authentication.
apps/minions-a2a/tests/integration/run_integration_tests.py:94
↓ 11 callers
Function
serialize_public_key
(public_key)
secure/utils/crypto_utils.py:55
↓ 10 callers
Method
create_client
()
apps/minions-a2a/tests/unit/test_client_factory.py:360
↓ 10 callers
Method
track_auth_attempt
Track authentication attempt.
apps/minions-a2a/a2a_minions/metrics.py:189
↓ 9 callers
Method
addMetric
(label, value, container)
apps/minions-docker/web/main.js:261
↓ 9 callers
Function
extract_query_and_document_from_parts
Extract query and document from A2A message parts. Args: parts: List of A2A parts (text, file, or data) Returns:
apps/minions-a2a/a2a_minions/agent_cards.py:149
↓ 8 callers
Method
_find_matches
Find all unique matches for a regex pattern in the text.
minions/utils/pii_extraction.py:101
↓ 8 callers
Method
_is_image_file
Check if file is an image.
apps/minions-a2a/a2a_minions/converters.py:278
↓ 8 callers
Method
check_scopes
Check if token has required scopes.
apps/minions-a2a/a2a_minions/auth.py:351
↓ 8 callers
Method
embed
Generate embeddings for the given content. Args: content: Text content to embed (single string or list of string
minions/clients/base.py:92
↓ 8 callers
Method
generate_api_key
Generate a new API key.
apps/minions-a2a/a2a_minions/auth.py:81
↓ 8 callers
Method
get_model
Get or initialize the MLX embedding model and tokenizer.
minions/utils/retrievers.py:168
↓ 8 callers
Method
register_client
Register a new OAuth2 client.
apps/minions-a2a/a2a_minions/auth.py:219
↓ 8 callers
Method
start
Start background tasks. Must be called when event loop is running.
apps/minions-a2a/a2a_minions/server.py:74
↓ 7 callers
Method
__new__
(cls, model_name=None, **kwargs)
minions/utils/retrievers.py:154
↓ 7 callers
Method
_extract_file_content
Extract text content from file information.
apps/minions-a2a/a2a_minions/converters.py:190
↓ 7 callers
Function
_extract_json
Extract JSON from text that may be wrapped in markdown code blocks.
minions/minion_code.py:20
↓ 7 callers
Method
_get_client_key
Generate a unique key for client configuration.
apps/minions-a2a/a2a_minions/client_factory.py:87
↓ 7 callers
Method
_make_request
Make HTTP request with error handling.
minions/clients/distributed_inference.py:101
↓ 7 callers
Function
decrypt_and_verify
(payload, key, verifying_key)
secure/utils/crypto_utils.py:703
↓ 7 callers
Function
do_rerun
Streamlit renamed `experimental_rerun` → `rerun` in v1.27. Call the one that exists.
minions_secure_chat.py:33
↓ 7 callers
Function
embedding_retrieve_top_k_chunks
Retrieves top k chunks using dense vector embeddings and FAISS similarity search Args: queries: List of query strings chunks
minions/utils/retrievers.py:1060
↓ 7 callers
Function
encrypt_and_sign
(message, key, signing_key, nonce)
secure/utils/crypto_utils.py:689
↓ 7 callers
Method
extract_query_and_document_from_parts
Extract query and document from A2A parts following the new format. Expected: First part = query (text), Second part = document (text
apps/minions-a2a/a2a_minions/converters.py:114
↓ 7 callers
Method
route
Route a query to the most appropriate client using Arch-Router's XML format. Args: query: User query to route
minions/utils/arch_router.py:127
↓ 7 callers
Method
send_task
Send a task to the A2A server.
apps/minions-a2a/tests/integration/test_client_minion.py:46
↓ 6 callers
Function
_extract_json
Extract JSON from text that may be wrapped in markdown code blocks.
minions/minion.py:55
↓ 6 callers
Function
_make_mcp_minion
Start MCP server (e.g. 'github' or 'filesystem') and make a Minion with access to it
minions/utils/minion_mcp.py:33
↓ 6 callers
Method
chat
Handle synchronous chat completions. If you pass a list of message dicts, we do one call for that entire conversation. If you pass a
minions/clients/ollama.py:487
↓ 6 callers
Method
clear
Clear all turns from the history.
minions/utils/conversation_history.py:151
↓ 6 callers
Function
format_params
Format parameter count in human-readable form.
minions/utils/vram_perf_calculator.py:288
↓ 6 callers
Function
generate_key_pair
()
secure/utils/crypto_utils.py:49
↓ 6 callers
Method
get_available_models
Get a list of available models from Exa. Returns: List[str]: List of model names available through Exa API
minions/clients/exa.py:373
↓ 6 callers
Method
get_current_state
Get current state of the workspace. Returns: Dictionary containing file structure and contents
minions/utils/workspace.py:39
↓ 6 callers
Method
get_task
Get task status and results.
apps/minions-a2a/tests/integration/test_client_minion.py:120
↓ 6 callers
Method
send_task
Send a task to the A2A server.
apps/minions-a2a/tests/integration/test_client_minions.py:48
↓ 6 callers
Method
stop
Stop the background monitoring thread.
minions/utils/energy_tracking.py:226
↓ 6 callers
Method
to_dict
(self)
apps/minions-story-teller/story_minion.py:34
↓ 6 callers
Method
updateStartButtonState
()
apps/minions-docker/web-minions/main.js:138
↓ 6 callers
Method
update_task_status
Update task status.
apps/minions-a2a/a2a_minions/server.py:488
↓ 6 callers
Method
validate_api_key
Validate an API key.
apps/minions-a2a/a2a_minions/auth.py:95
↓ 6 callers
Method
wait_for_task_completion
Wait for a task to complete with progress logging.
apps/minions-a2a/tests/integration/run_integration_tests.py:183
↓ 5 callers
Method
_ensure_native_sdk
Ensure the native xAI SDK is initialized. Raises: ImportError: If xai_sdk is not installed
minions/clients/grok.py:350
↓ 5 callers
Method
chat
Handle chat completions using the OpenAI API. Args: messages: List of message dictionaries with 'role' and 'content' key
minions/clients/openai.py:250
↓ 5 callers
Method
chat
Handle chat completions using the Moonshot AI API. Args: messages: List of message dictionaries with 'role' and 'content
minions/clients/moonshot.py:46
↓ 5 callers
Method
create_minions_protocol
Create the appropriate Minions protocol instance.
apps/minions-a2a/a2a_minions/client_factory.py:131
↓ 5 callers
Function
derive_shared_key
(private_key, peer_public_key)
secure/utils/crypto_utils.py:78
↓ 5 callers
Method
execute_task
Execute a task.
apps/minions-a2a/a2a_minions/server.py:221
↓ 5 callers
Method
initialize_secure_session
Set up the secure communication channel with attestation and key exchange
secure/minions_chat.py:101
↓ 5 callers
Method
parse_a2a_metadata
Parse A2A task metadata to create Minions configuration.
apps/minions-a2a/a2a_minions/config.py:106
↓ 5 callers
Method
retrieve
Retrieve entries from the Qdrant collection based on query. :param query: embedding object (TextEmbedding) of query :param t
minions/utils/multimodal_retrievers.py:511
↓ 5 callers
Method
start
Start the background monitoring thread.
minions/utils/energy_tracking.py:87
↓ 5 callers
Method
track_streaming_event
Track a streaming event.
apps/minions-a2a/a2a_minions/metrics.py:194
↓ 5 callers
Method
updateProcessingMode
()
apps/minions-docker/web-minions/main.js:167
↓ 5 callers
Method
validate_client
Validate OAuth2 client credentials.
apps/minions-a2a/a2a_minions/auth.py:237
↓ 5 callers
Method
verify_token
Verify a JWT token.
apps/minions-a2a/a2a_minions/auth.py:136
↓ 4 callers
Method
_achat_internal
Handle async chat with multiple messages in parallel.
minions/clients/gemini.py:479
↓ 4 callers
Method
_achat_internal
Handle async chat with multiple messages in parallel. Args: messages: List of message dictionaries with 'role' and 'cont
minions/clients/mlx_clients.py:323
↓ 4 callers
Method
_achat_internal
Handle async chat with MCP tool calling support.
minions/clients/ollama.py:241
↓ 4 callers
Function
_extract_json
Extract JSON from text that may be wrapped in markdown code blocks.
minions/minion_arch.py:40
↓ 4 callers
Function
_extract_json
Extract JSON from text that may be wrapped in markdown code blocks.
minions/minion_wtools.py:382
↓ 4 callers
Method
_extract_json
Clean common LLM JSON issues and parse.
minions/minion_cua.py:604
↓ 4 callers
Method
_extract_pdf_text
Extract text from PDF bytes asynchronously.
apps/minions-a2a/a2a_minions/converters.py:224
↓ 4 callers
Method
_is_reasoning_model
Check if the current model is a reasoning model (GPT-5 family). Returns: True if the model supports reasoning ef
minions/clients/openai.py:117
↓ 4 callers
Method
_save_temp_file
Save file content to temporary file and return path.
apps/minions-a2a/a2a_minions/converters.py:283
↓ 4 callers
Method
_serialize_usage
Convert usage objects to JSON-serializable format.
apps/minions-a2a/a2a_minions/converters.py:366
↓ 4 callers
Function
bytes2gib
(x: float)
minions/utils/vram_perf_calculator.py:250
↓ 4 callers
Method
chat
Handle chat completions using the Qwen API. Args: messages: List of message dictionaries with 'role' and 'content' keys
minions/clients/qwen.py:46
↓ 4 callers
Method
chat
Handle chat completions using the HuggingFace Inference API or Router. Args: messages: List of message dictionaries with
minions/clients/huggingface.py:101
↓ 4 callers
Method
cleanup
Clean up LMCache resources.
minions/clients/lmcache.py:260
↓ 4 callers
Method
create_token
Create a JWT token from token data.
apps/minions-a2a/a2a_minions/auth.py:126
↓ 4 callers
Method
encode
Encode texts to create ColBERT embeddings. Args: texts: Single text or list of texts to encode is_qu
minions/utils/retrievers.py:677
↓ 4 callers
Function
extract_function
(lines: List[str], node: ast.FunctionDef)
minions/utils/chunking.py:144
↓ 4 callers
Method
extract_skill_id
Extract skill ID from metadata or raise error if missing.
apps/minions-a2a/a2a_minions/converters.py:467
↓ 4 callers
Function
generate
()
secure/remote/worker_server.py:294
↓ 4 callers
Method
generate_audio
Generate audio from text using CSM-MLX. Args: text (str): The text to convert to speech voice (str): Voice s
minions/utils/voice_generator.py:45
↓ 4 callers
Method
generate_embedding
( self, content, content_type: str = "text", upload: bool = False, pat
minions/utils/multimodal_retrievers.py:206
↓ 4 callers
Method
get_audio_html
Create HTML for audio playback from base64 encoded audio. Args: audio_base64 (str): Base64 encoded audio data R
minions/utils/voice_generator.py:78
next →
1–100 of 1,660, ranked by callers