MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

Methodmock_anthropic_api_key
Mock ANTHROPIC_API_KEY for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:455
Methodmock_anthropic_env
(self)
lib/crewai/tests/llms/test_multimodal.py:235
Functionmock_api_keys
Mock API keys for all providers.
lib/crewai/tests/llms/test_multimodal.py:47
Functionmock_async_chromadb_client
Create a mock async ChromaDB client.
lib/crewai/tests/rag/chromadb/test_client.py:22
Functionmock_async_qdrant_client
Create a mock async Qdrant client.
lib/crewai/tests/rag/qdrant/test_client.py:22
Methodmock_auth_token
Mock authentication token for all tests in this class
lib/crewai/tests/tracing/test_tracing.py:120
Functionmock_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
Functionmock_azure_credentials
Mock Azure credentials for tests that need them.
lib/crewai/tests/llms/azure/test_azure.py:17
Methodmock_azure_credentials
Mock Azure credentials for tests.
lib/crewai/tests/utilities/test_structured_planning.py:468
Methodmock_azure_env
Mock Azure-specific environment variables.
lib/crewai/tests/llms/test_multimodal.py:376
Methodmock_azure_env
Mock Azure environment variables for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:677
Methodmock_bedrock_env
Mock AWS-specific environment variables.
lib/crewai/tests/llms/test_multimodal.py:418
Functionmock_call
(messages, tools=None, callbacks=None, available_functions=None)
lib/crewai/tests/utilities/test_events.py:1460
Functionmock_chromadb_client
Create a mock ChromaDB client.
lib/crewai/tests/rag/chromadb/test_client.py:14
Functionmock_cluster
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:95
Functionmock_completion
(*args, **kwargs)
lib/crewai/tests/test_llm.py:913
Functionmock_config
()
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:21
Functionmock_context
Create a mock RequestContext.
lib/crewai/tests/a2a/utils/test_task.py:39
Functionmock_create
(**kwargs: Any)
lib/crewai/tests/llms/openai/test_openai.py:2500
Functionmock_crew
()
lib/crewai/tests/cli/test_cli.py:23
Functionmock_crew
()
lib/crewai/tests/cli/test_utils.py:175
Functionmock_crew
Create a mock crew for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:46
Methodmock_crew
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:18
Methodmock_crew
(self)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:33
Methodmock_dependencies
Create mock dependencies for executor.
lib/crewai/tests/agents/test_agent_executor.py:376
Methodmock_dependencies
Create mock dependencies for AgentExecutor tests in this class.
lib/crewai/tests/agents/test_agent_executor.py:812
Methodmock_dependencies
Create mock dependencies.
lib/crewai/tests/agents/test_agent_executor.py:1158
Methodmock_dependencies
Create mock dependencies.
lib/crewai/tests/agents/test_agent_executor.py:1231
Methodmock_dependencies
(self)
lib/crewai/tests/agents/test_agent_executor.py:1335
Functionmock_embedder
Embedder mock that returns one embedding per input text (batch-aware).
lib/crewai/tests/memory/test_unified_memory.py:306
Functionmock_embedder
Embedder mock that returns one embedding per input text (batch-aware).
lib/crewai/tests/memory/test_memory_root_scope.py:125
Functionmock_embedding_function
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:129
Functionmock_emit
()
lib/crewai/tests/test_llm.py:655
Functionmock_emit
()
lib/crewai/tests/test_llm_litellm_streaming_errors.py:64
Functionmock_emit
()
lib/crewai/tests/test_llm_streaming_finish_reason.py:20
Functionmock_emit
()
lib/crewai/tests/test_llm_litellm_usage_events.py:49
Functionmock_emit
()
lib/crewai/tests/llms/test_tool_call_streaming.py:40
Functionmock_emit
()
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:33
Methodmock_emit
(self)
lib/crewai/tests/events/test_llm_usage_event.py:204
Functionmock_env
()
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:13
Methodmock_evaluator_results
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_runner.py:22
Functionmock_event_queue
Create a mock EventQueue.
lib/crewai/tests/a2a/utils/test_task.py:52
Functionmock_exa_api_key
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:14
Functionmock_exa_base_url
()
lib/crewai-tools/tests/tools/exa_search_tool_test.py:63
Functionmock_execute_task
(*args, **kwargs)
lib/crewai/tests/test_task_guardrails.py:417
Functionmock_executor
Create a mock executor for LLM hook context.
lib/crewai/tests/hooks/test_human_approval.py:13
Functionmock_executor
Create a mock executor for testing.
lib/crewai/tests/hooks/test_llm_hooks.py:23
Functionmock_fetch_crews
(module_attr)
lib/crewai/tests/cli/test_utils.py:220
Functionmock_flow
()
lib/crewai/tests/cli/test_cli.py:163
Functionmock_get_auth_token
()
lib/crewai/tests/agents/test_agent.py:2185
Functionmock_get_crews
(mock_crew)
lib/crewai/tests/cli/test_cli.py:30
Functionmock_get_flows
(mock_flow)
lib/crewai/tests/cli/test_cli.py:172
Methodmock_get_path
()
lib/cli/tests/test_token_manager.py:152
Methodmock_get_path
()
lib/crewai/tests/cli/test_token_manager.py:148
Functionmock_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
Methodmock_google_api_key
Mock API key if not set.
lib/crewai/tests/utilities/test_structured_planning.py:433
Methodmock_google_api_key
Mock GOOGLE_API_KEY for tests.
lib/crewai/tests/agents/test_native_tool_calling.py:566
Methodmock_handle
(*args, **kwargs)
lib/crewai/tests/llms/hooks/test_transport.py:145
Methodmock_handle
(*args, **kwargs)
lib/crewai/tests/llms/hooks/test_transport.py:213
Functionmock_kickoff_async
(**kwargs)
lib/crewai/tests/test_crew.py:1528
Methodmock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:214
Methodmock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:338
Methodmock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:451
Methodmock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:565
Methodmock_kickoff_fn
(self: Any, inputs: Any = None, **kwargs: Any)
lib/crewai/tests/test_streaming.py:673
Methodmock_kickoff_side_effect
()
lib/crewai/tests/agents/test_agent_executor.py:1273
Functionmock_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
Functionmock_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
Functionmock_original_fn
(self, task, context, tools)
lib/crewai/tests/agents/test_a2a_trust_completion_status.py:109
Methodmock_output
(self)
lib/crewai/tests/experimental/evaluation/metrics/test_reasoning_metrics.py:19
Methodmock_plus_api_calls
Mock all PlusAPI HTTP calls to avoid network requests
lib/crewai/tests/tracing/test_tracing.py:198
Functionmock_qdrant_client
Create a mock Qdrant client.
lib/crewai/tests/rag/qdrant/test_client.py:16
Functionmock_rag_client
()
lib/crewai-tools/tests/tools/test_mysql_search_tool.py:11
Functionmock_rag_client
Create a mock RAG client for testing.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:23
Functionmock_rag_client
()
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:13
Methodmock_results
(self)
lib/crewai/tests/experimental/evaluation/test_experiment_result.py:9
Functionmock_search_iter
()
lib/crewai-tools/tests/tools/couchbase_tool_test.py:160
Methodmock_send_message
(*args, **kwargs)
lib/crewai/tests/a2a/test_a2a_integration.py:200
Functionmock_serper_api_key
()
lib/crewai-tools/tests/tools/serper_dev_tool_test.py:9
Functionmock_settings
()
lib/cli/tests/organization/test_main.py:26
Functionmock_snowflake_connection
()
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:10
Functionmock_stagehand_instance
()
lib/crewai-tools/tests/tools/stagehand_tool_test.py:101
Functionmock_stagehand_modules
Mock stagehand modules at the start of this test module.
lib/crewai-tools/tests/tools/stagehand_tool_test.py:29
Functionmock_task
Create a mock Task.
lib/crewai/tests/a2a/utils/test_task.py:29
Functionmock_task
Create a mock task.
lib/crewai/tests/hooks/test_human_approval.py:43
Functionmock_task
Create a mock task for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:38
Methodmock_task
Create a minimal valid task for testing.
lib/crewai/tests/a2a/test_a2a_integration.py:165
Methodmock_task
(self)
lib/crewai/tests/experimental/evaluation/metrics/test_base_evaluation_metrics.py:19
Functionmock_tool
Create a mock tool for tool hook context.
lib/crewai/tests/hooks/test_human_approval.py:26
Functionmock_tool
Create a mock tool for testing.
lib/crewai/tests/hooks/test_tool_hooks.py:21
Functionmock_tool_1
()
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:16
Functionmock_tool_2
()
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:23
Functionmock_tool_definitions
Create mock MCP tool definitions (as returned by list_tools).
lib/crewai/tests/mcp/test_mcp_config.py:13
Functionmock_tool_definitions
()
lib/crewai/tests/mcp/test_amp_mcp.py:27
Functionmock_tool_execute_response
Mock response for tools/call MCP request.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:67
Functionmock_tool_extractor
(extractor)
lib/crewai-tools/tests/test_generate_tool_specs.py:98
Functionmock_tool_pack_response
Mock response for tools/list MCP request.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:19
Methodmock_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
Functionmock_vector_db
Mock vector database operations.
lib/crewai/tests/knowledge/test_knowledge.py:17
Functionmock_weather_tool
(location: str)
lib/crewai/tests/llms/bedrock/test_bedrock.py:890
← previousnext →8,701–8,800 of 19,663, ranked by callers