Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
Method
mock_anthropic_api_key
Mock ANTHROPIC_API_KEY for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:455
Method
mock_anthropic_env
(self)
lib/crewai/tests/llms/test_multimodal.py:235
Function
mock_api_keys
Mock API keys for all providers.
lib/crewai/tests/llms/test_multimodal.py:47
Function
mock_async_chromadb_client
Create a mock async ChromaDB client.
lib/crewai/tests/rag/chromadb/test_client.py:22
Function
mock_async_qdrant_client
Create a mock async Qdrant client.
lib/crewai/tests/rag/qdrant/test_client.py:22
Method
mock_auth_token
Mock authentication token for all tests in this class
lib/crewai/tests/tracing/test_tracing.py:120
Function
mock_aws_credentials
Mock AWS credentials and boto3 Session for tests only if real credentials are not set.
lib/crewai/tests/llms/bedrock/test_bedrock.py:48
Function
mock_azure_credentials
Mock Azure credentials for tests that need them.
lib/crewai/tests/llms/azure/test_azure.py:17
Method
mock_azure_credentials
Mock Azure credentials for tests.
lib/crewai/tests/utilities/test_structured_planning.py:468
Method
mock_azure_env
Mock Azure-specific environment variables.
lib/crewai/tests/llms/test_multimodal.py:376
Method
mock_azure_env
Mock Azure environment variables for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:677
Method
mock_bedrock_env
Mock AWS-specific environment variables.
lib/crewai/tests/llms/test_multimodal.py:418
Function
mock_call
(messages, tools=None, callbacks=None, available_functions=None)
lib/crewai/tests/utilities/test_events.py:1460
Function
mock_chromadb_client
Create a mock ChromaDB client.
lib/crewai/tests/rag/chromadb/test_client.py:14
Function
mock_cluster
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:95
Function
mock_completion
(*args, **kwargs)
lib/crewai/tests/test_llm.py:913
Function
mock_config
()
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:21
Function
mock_context
Create a mock RequestContext.
lib/crewai/tests/a2a/utils/test_task.py:39
Function
mock_create
(**kwargs: Any)
lib/crewai/tests/llms/openai/test_openai.py:2500
Function
mock_crew
()
lib/crewai/tests/cli/test_cli.py:23
Function
mock_crew
()
lib/crewai/tests/cli/test_utils.py:175
Function
mock_crew
Create a mock crew for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:46
Method
mock_crew
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:18
Method
mock_crew
(self)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:33
Method
mock_dependencies
Create mock dependencies for executor.
lib/crewai/tests/agents/test_agent_executor.py:376
Method
mock_dependencies
Create mock dependencies for AgentExecutor tests in this class.
lib/crewai/tests/agents/test_agent_executor.py:812
Method
mock_dependencies
Create mock dependencies.
lib/crewai/tests/agents/test_agent_executor.py:1158
Method
mock_dependencies
Create mock dependencies.
lib/crewai/tests/agents/test_agent_executor.py:1231
Method
mock_dependencies
(self)
lib/crewai/tests/agents/test_agent_executor.py:1335
Function
mock_embedder
Embedder mock that returns one embedding per input text (batch-aware).
lib/crewai/tests/memory/test_unified_memory.py:306
Function
mock_embedder
Embedder mock that returns one embedding per input text (batch-aware).
lib/crewai/tests/memory/test_memory_root_scope.py:125
Function
mock_embedding_function
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:129
Function
mock_emit
()
lib/crewai/tests/test_llm.py:655
Function
mock_emit
()
lib/crewai/tests/test_llm_litellm_streaming_errors.py:64
Function
mock_emit
()
lib/crewai/tests/test_llm_streaming_finish_reason.py:20
Function
mock_emit
()
lib/crewai/tests/test_llm_litellm_usage_events.py:49
Function
mock_emit
()
lib/crewai/tests/llms/test_tool_call_streaming.py:40
Function
mock_emit
()
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:33
Method
mock_emit
(self)
lib/crewai/tests/events/test_llm_usage_event.py:204
Function
mock_env
()
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:13
Method
mock_evaluator_results
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:22
Function
mock_event_queue
Create a mock EventQueue.
lib/crewai/tests/a2a/utils/test_task.py:52
Function
mock_exa_api_key
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:14
Function
mock_exa_base_url
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:63
Function
mock_execute_task
(*args, **kwargs)
lib/crewai/tests/test_task_guardrails.py:417
Function
mock_executor
Create a mock executor for LLM hook context.
lib/crewai/tests/hooks/test_human_approval.py:13
Function
mock_executor
Create a mock executor for testing.
lib/crewai/tests/hooks/test_llm_hooks.py:23
Function
mock_fetch_crews
(module_attr)
lib/crewai/tests/cli/test_utils.py:220
Function
mock_flow
()
lib/crewai/tests/cli/test_cli.py:163
Function
mock_get_auth_token
()
lib/crewai/tests/agents/test_agent.py:2185
Function
mock_get_crews
(mock_crew)
lib/crewai/tests/cli/test_cli.py:30
Function
mock_get_flows
(mock_flow)
lib/crewai/tests/cli/test_cli.py:172
Method
mock_get_path
()
lib/cli/tests/test_token_manager.py:152
Method
mock_get_path
()
lib/crewai/tests/cli/test_token_manager.py:148
Function
mock_google_api_key
Mock GOOGLE_API_KEY for tests only if real keys are not set.
lib/crewai/tests/llms/google/test_google.py:14
Method
mock_google_api_key
Mock API key if not set.
lib/crewai/tests/utilities/test_structured_planning.py:433
Method
mock_google_api_key
Mock GOOGLE_API_KEY for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:566
Method
mock_handle
(*args, **kwargs)
lib/crewai/tests/llms/hooks/test_transport.py:145
Method
mock_handle
(*args, **kwargs)
lib/crewai/tests/llms/hooks/test_transport.py:213
Function
mock_kickoff_async
(**kwargs)
lib/crewai/tests/test_crew.py:1528
Method
mock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:214
Method
mock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:338
Method
mock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:451
Method
mock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:565
Method
mock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:673
Method
mock_kickoff_side_effect
()
lib/crewai/tests/agents/test_agent_executor.py:1273
Function
mock_knowledge_source
Create a mock knowledge source with test content. Returns: StringKnowledgeSource: A knowledge source containing AI-relate
lib/crewai/tests/utilities/test_knowledge_planning.py:16
Function
mock_openai_completion
Mock OpenAICompletion to avoid real client creation. Patches at the source module so that the dynamic import inside _init_responses_delegate
lib/crewai/tests/llms/azure/test_azure_responses.py:40
Function
mock_original_fn
(self, task, context, tools)
lib/crewai/tests/agents/test_a2a_trust_completion_status.py:109
Method
mock_output
(self)
lib/crewai/tests/experimental/evaluation/metrics/test_reasoning_metrics.py:19
Method
mock_plus_api_calls
Mock all PlusAPI HTTP calls to avoid network requests
lib/crewai/tests/tracing/test_tracing.py:198
Function
mock_qdrant_client
Create a mock Qdrant client.
lib/crewai/tests/rag/qdrant/test_client.py:16
Function
mock_rag_client
()
lib/crewai-tools/tests/tools/test_mysql_search_tool.py:11
Function
mock_rag_client
Create a mock RAG client for testing.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:23
Function
mock_rag_client
()
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:13
Method
mock_results
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_result.py:9
Function
mock_search_iter
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:160
Method
mock_send_message
(*args, **kwargs)
lib/crewai/tests/a2a/test_a2a_integration.py:200
Function
mock_serper_api_key
()
lib/crewai-tools/tests/tools/serper_dev_tool_test.py:9
Function
mock_settings
()
lib/cli/tests/organization/test_main.py:26
Function
mock_snowflake_connection
()
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:10
Function
mock_stagehand_instance
()
lib/crewai-tools/tests/tools/stagehand_tool_test.py:101
Function
mock_stagehand_modules
Mock stagehand modules at the start of this test module.
lib/crewai-tools/tests/tools/stagehand_tool_test.py:29
Function
mock_task
Create a mock Task.
lib/crewai/tests/a2a/utils/test_task.py:29
Function
mock_task
Create a mock task.
lib/crewai/tests/hooks/test_human_approval.py:43
Function
mock_task
Create a mock task for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:38
Method
mock_task
Create a minimal valid task for testing.
lib/crewai/tests/a2a/test_a2a_integration.py:165
Method
mock_task
(self)
lib/crewai/tests/experimental/evaluation/metrics/test_base_evaluation_metrics.py:19
Function
mock_tool
Create a mock tool for tool hook context.
lib/crewai/tests/hooks/test_human_approval.py:26
Function
mock_tool
Create a mock tool for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:21
Function
mock_tool_1
()
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:16
Function
mock_tool_2
()
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:23
Function
mock_tool_definitions
Create mock MCP tool definitions (as returned by list_tools).
lib/crewai/tests/mcp/test_mcp_config.py:13
Function
mock_tool_definitions
()
lib/crewai/tests/mcp/test_amp_mcp.py:27
Function
mock_tool_execute_response
Mock response for tools/call MCP request.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:67
Function
mock_tool_extractor
(extractor)
lib/crewai-tools/tests/test_generate_tool_specs.py:98
Function
mock_tool_pack_response
Mock response for tools/list MCP request.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:19
Method
mock_user_data_file_io
Mock user data file I/O to prevent file system pollution between tests
lib/crewai/tests/tracing/test_tracing.py:111
Function
mock_vector_db
Mock vector database operations.
lib/crewai/tests/knowledge/test_knowledge.py:17
Function
mock_weather_tool
(location: str)
lib/crewai/tests/llms/bedrock/test_bedrock.py:890
← previous
next →
8,701–8,800 of 19,663, ranked by callers