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
↓ 2 callers
Method
chat
Handle chat completions using the Anthropic API. Args: messages: List of message dictionaries with 'role' and 'content'
minions/clients/anthropic.py:162
↓ 2 callers
Method
chat
Handle chat completions using the SambaNova API. Args: messages: List of message dictionaries with 'role' and 'content'
minions/clients/sambanova.py:58
↓ 2 callers
Method
checkBackendStatus
()
apps/minions-docker/web-minions/main.js:225
↓ 2 callers
Method
checkBackendStatus
()
apps/minions-docker/web/main.js:124
↓ 2 callers
Method
check_key
Check if API key exists for service
tests/utils/env_checker.py:34
↓ 2 callers
Function
check_ollama_status
Check if Ollama is running and has the required model.
apps/minions-character-chat/utils.py:33
↓ 2 callers
Method
cleanup_streaming
Clean up streaming for a task.
apps/minions-a2a/a2a_minions/server.py:519
↓ 2 callers
Method
cleanup_temp_files
Clean up temporary files.
apps/minions-a2a/a2a_minions/converters.py:481
↓ 2 callers
Function
create_attestation_report
( agent_name: str, public_key, nonce: bytes, tls_cert_path: str )
secure/utils/crypto_utils.py:553
↓ 2 callers
Function
create_client
Create a client based on configuration.
minion_stdin_interface.py:101
↓ 2 callers
Function
create_client
Create a client based on the provider type.
apps/minions-docker/minions_http_server.py:92
↓ 2 callers
Method
create_client
Create or retrieve a cached client instance for the specified provider.
apps/minions-a2a/a2a_minions/client_factory.py:98
↓ 2 callers
Method
create_client_pair
Create local and remote client pair.
apps/minions-a2a/a2a_minions/client_factory.py:161
↓ 2 callers
Function
create_directory
Create a new directory or ensure it exists. Args: path: Path to the directory to create Returns: Success message or error
minions/minion_wtools.py:276
↓ 2 callers
Function
create_metrics_endpoint
Create FastAPI endpoint for metrics.
apps/minions-a2a/a2a_minions/metrics.py:228
↓ 2 callers
Function
create_minion_instance
Create and return a new minion instance with configured clients.
apps/minions-docker/minion_http_server.py:52
↓ 2 callers
Function
deserialize_private_key
(pem_data)
secure/utils/crypto_utils.py:74
↓ 2 callers
Method
encode
(self, texts)
minions/utils/retrievers.py:121
↓ 2 callers
Function
enhance_image_prompt
Create an enhanced image prompt based on chapter content and story theme. Args: chapter_content: The text content of the chapter
apps/minions-story-teller/utils.py:10
↓ 2 callers
Function
extract_final_answer
(text: str)
minions/minion_reasoning.py:15
↓ 2 callers
Method
extract_pii
Extract PII from the given text and return as a dictionary. Args: text (str): The text to extract PII from Retu
minions/utils/pii_extraction.py:41
↓ 2 callers
Function
extract_text_from_file
Extract text from a PDF, TXT, Python, or Markdown file.
minions_cli.py:34
↓ 2 callers
Function
extract_text_from_folder
Extract text from all supported files in a folder.
minions_cli.py:61
↓ 2 callers
Method
find_free_port
()
minions/clients/utils.py:73
↓ 2 callers
Method
flush
(self)
minion_stdin_interface.py:44
↓ 2 callers
Method
format_output
Format the output of a tool
minions/minions_mcp.py:225
↓ 2 callers
Method
format_summaries
Formats the summaries into a string for the remote client, organized by search query Args: query_results: Dictio
minions/minions_deep_research.py:163
↓ 2 callers
Method
generate_story_images
Generate images for each chapter
apps/minions-story-teller/app.py:671
↓ 2 callers
Function
get_extended_agent_card
Get the extended agent card for authenticated users.
apps/minions-a2a/a2a_minions/agent_cards.py:142
↓ 2 callers
Method
get_file_contents
Get contents of a specific file in the workspace. Args: file_path: Path to the file relative to workspace direct
minions/utils/workspace.py:81
↓ 2 callers
Function
get_file_info
Get detailed file/directory metadata. Args: path: Path to the file or directory Returns: Dictionary with file metadata
minions/minion_wtools.py:294
↓ 2 callers
Function
get_public_key_hash
Return the base64-encoded SHA256 hash of an ECDSA public key in DER format. :param public_key: A cryptography public key object :return:
secure/utils/crypto_utils.py:239
↓ 2 callers
Function
get_security_schemes
Get security schemes for the agent card.
apps/minions-a2a/a2a_minions/agent_cards.py:89
↓ 2 callers
Method
initialize
Initialize the voice generator model.
minions/utils/voice_generator.py:109
↓ 2 callers
Function
initialize_client
Initialize a client based on provider name.
minions_cli.py:295
↓ 2 callers
Function
initialize_clients
Initialize the local and remote clients outside of the run_protocol function.
app.py:742
↓ 2 callers
Function
is_mobile
Check if we're in mobile mode (based on session state toggle).
minions_secure_chat.py:43
↓ 2 callers
Method
launch_server
(self, launch_command: str, port: int, capture_output: bool = False)
minions/clients/utils.py:8
↓ 2 callers
Function
list_directory
List directory contents with [FILE] or [DIR] prefixes. Args: path: Path to directory (defaults to current directory) Returns:
minions/minion_wtools.py:173
↓ 2 callers
Method
makeRequest
(endpoint, options = {})
apps/minions-docker/web-minions/main.js:198
↓ 2 callers
Method
makeRequest
(endpoint, options = {})
apps/minions-docker/web/main.js:97
↓ 2 callers
Method
open_url
Open a URL in the specified browser or default browser.
minions/minion_cua.py:1159
↓ 2 callers
Function
parse_model_string
Parse a model string in the format provider/model_name.
minions_cli.py:169
↓ 2 callers
Function
process_folder
Process a folder containing text, PDF, and image files. Returns: Tuple containing: - Concatenated text content from all text and
secure/utils/processing_utils.py:80
↓ 2 callers
Method
profile
Profile a model, with optional manual quantization parameters. Args: name: The model name from the model_to_params table
minions/utils/inference_estimator.py:162
↓ 2 callers
Function
read_file
Read the contents of a file. Args: file_path: Path to the file to read Returns: Contents of the file as a string
minions/minion_wtools.py:203
↓ 2 callers
Function
read_multiple_files
Read the contents of multiple files at once. Args: file_paths: List of paths to the files to read Returns: Dictionary mappin
minions/minion_wtools.py:404
↓ 2 callers
Function
render_deep_research_ui
Render the Deep Research UI component. Args: minions_instance: An initialized DeepResearchMinions instance
minions/utils/app_utils.py:8
↓ 2 callers
Method
require_scopes
Dependency to require specific scopes.
apps/minions-a2a/a2a_minions/auth.py:358
↓ 2 callers
Method
revoke_api_key
Revoke an API key.
apps/minions-a2a/a2a_minions/auth.py:102
↓ 2 callers
Method
revoke_client
Revoke an OAuth2 client.
apps/minions-a2a/a2a_minions/auth.py:244
↓ 2 callers
Method
run_tests
Run tests in the workspace. Args: test_commands: List of test commands to run Returns:
minions/utils/workspace.py:201
↓ 2 callers
Method
sanitize_credentials_for_display
Sanitize credentials in action objects for safe display in logs and UI. Returns a copy with passwords masked.
minions/minion_cua.py:1372
↓ 2 callers
Function
save_uploaded_file
Save uploaded file to a temporary directory and return the path.
minions_secure_chat.py:61
↓ 2 callers
Function
search_files
Recursively search for files/directories. Args: path: Starting directory for search pattern: Search pattern (glob format)
minions/minion_wtools.py:327
↓ 2 callers
Method
send_message
Send a message to the supervisor and get a response
secure/minions_chat.py:191
↓ 2 callers
Method
send_message_stream
Send a message to the supervisor and get a streaming response
secure/minions_chat.py:323
↓ 2 callers
Function
serialize_private_key
(private_key)
secure/utils/crypto_utils.py:66
↓ 2 callers
Function
setup_test_env
Set up a test environment with some sample files.
tests/test_minion_wtools.py:20
↓ 2 callers
Function
show_history
Show the conversation history.
tests/test_multi_turn.py:120
↓ 2 callers
Function
show_history
Show the conversation history.
tests/test_summarization.py:144
↓ 2 callers
Function
sign_attestation
(attestation_json, private_key)
secure/utils/crypto_utils.py:576
↓ 2 callers
Method
startMinions
()
apps/minions-docker/web-minions/main.js:292
↓ 2 callers
Method
to_dict
Convert TextEmbedding to dictionary representation. :returns Dict representation of the TextEmbedding
minions/utils/multimodal_retrievers.py:49
↓ 2 callers
Method
track_pdf_processing
Context manager to track PDF processing.
apps/minions-a2a/a2a_minions/metrics.py:178
↓ 2 callers
Method
track_request
(method)
apps/minions-a2a/tests/unit/test_metrics.py:219
↓ 2 callers
Method
track_task
(skill_id)
apps/minions-a2a/tests/unit/test_metrics.py:247
↓ 2 callers
Method
update_client_pool_stats
Update client pool statistics.
apps/minions-a2a/a2a_minions/metrics.py:210
↓ 2 callers
Function
validate_secure_endpoint
Validate secure endpoint by checking if it uses HTTPS and is reachable.
app.py:1758
↓ 2 callers
Method
wait_for_server
Wait for server to be ready.
apps/minions-a2a/tests/integration/run_integration_tests.py:48
↓ 2 callers
Function
write_file
Create new file or overwrite existing file. Args: file_path: Path to the file to write content: Content to write to the file
minions/minion_wtools.py:251
↓ 1 callers
Method
__init__
Initialize the synchronous MCP client
minions/minions_mcp.py:95
↓ 1 callers
Method
__init__
Initialize Ollama Client. Args: model_name: The Ollama model to use (default: "llama-3.2") temperature: Sampl
minions/clients/ollama.py:15
↓ 1 callers
Method
__str__
(self)
minions/utils/arch_router.py:281
↓ 1 callers
Method
_achat
(self, messages, temperature=0.0, max_tokens=None)
minions/clients/docker_model_runner.py:184
↓ 1 callers
Method
_authenticate_huggingface
Authenticate with Hugging Face using the provided token or environment variable.
minions/clients/transformers.py:518
↓ 1 callers
Method
_batch_chat
Handle multiple messages using the /batch endpoint for parallel processing.
minions/clients/distributed_inference.py:271
↓ 1 callers
Method
_build_apriel_model_and_processor
Build and return the Apriel model and processor. Apriel models use AutoModelForImageTextToText and AutoProcessor. Returns:
minions/clients/transformers.py:681
↓ 1 callers
Method
_build_model_and_tokenizer
Build and return the model and tokenizer from the checkpoint path. Supports HF Hub models, local paths, and PEFT adapters. R
minions/clients/transformers.py:557
↓ 1 callers
Method
_chat
(self, messages, temperature=0.0, max_tokens=None)
minions/clients/docker_model_runner.py:136
↓ 1 callers
Method
_chat_native
Handle chat using native Cohere SDK v2. Args: messages: List of message dictionaries with 'role' and 'content' k
minions/clients/cohere.py:105
↓ 1 callers
Method
_chat_openai_compat
Handle chat using OpenAI compatibility API. Args: messages: List of message dictionaries with 'role' and 'conten
minions/clients/cohere.py:163
↓ 1 callers
Method
_chat_with_native_sdk
Handle chat completions using the native xAI SDK with file support. Args: messages: List of message dictionaries with 'r
minions/clients/grok.py:407
↓ 1 callers
Method
_chat_with_openai_api
Handle chat completions using the OpenAI-compatible API. Args: messages: List of message dictionaries with 'role' and 'c
minions/clients/grok.py:479
↓ 1 callers
Method
_chat_with_websearch_agent
Handle chat using the websearch agent through the conversations API. Args: messages: List of message dictionaries with '
minions/clients/mistral.py:127
↓ 1 callers
Method
_check_dependencies
Check if required dependencies are installed.
minions/clients/mlx_clients.py:680
↓ 1 callers
Method
_check_dependencies
Check if required dependencies are installed.
secure/utils/clients/mlx_audio.py:47
↓ 1 callers
Method
_cleanup_old_tasks
Remove old completed tasks based on retention policy.
apps/minions-a2a/a2a_minions/server.py:125
↓ 1 callers
Method
_conduct_final_review
Conduct final integration review of the completed project.
minions/minion_code.py:630
↓ 1 callers
Method
_convert_mcp_tools_to_ollama_format
Convert MCP tools to Ollama tools format.
minions/clients/ollama.py:122
↓ 1 callers
Method
_convert_messages_to_apriel_format
Convert standard message format to Apriel format with content as list of dicts. Text-only version. Args:
minions/clients/transformers.py:733
↓ 1 callers
Method
_create_file_search_tool
Create File Search tool for RAG capabilities.
minions/clients/gemini.py:229
↓ 1 callers
Method
_create_google_search_tool
Create Google Search tool for web search capabilities.
minions/clients/gemini.py:220
↓ 1 callers
Method
_create_namespace
Create a sandboxed namespace for code execution.
minions/minion_rlm.py:521
↓ 1 callers
Method
_create_url_context_tool
Create URL context tool for retrieving content from URLs.
minions/clients/gemini.py:214
↓ 1 callers
Method
_create_websearch_agent
Create a websearch agent with the specified configuration.
minions/clients/mistral.py:55
↓ 1 callers
Method
_decide_model_for_turn
Decide whether to use local or remote model for the current turn based on cost sensitivity.
minions/minion_tunable.py:69
↓ 1 callers
Method
_default_metadata
Generate default metadata for clients if not provided. Returns: Dictionary mapping client names to default metadata in A
minions/minion_arch.py:123
↓ 1 callers
Method
_detect_test_commands
Auto-detect appropriate test commands based on project structure. Returns: List of test commands to try
minions/utils/workspace.py:374
↓ 1 callers
Method
_detect_urls_in_messages
Detect if there are URLs in the message content. Args: messages: List of message dictionaries
minions/clients/gemini.py:240
← previous
next →
201–300 of 1,660, ranked by callers