Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,484 in github.com/crewAIInc/crewAI
⨍
Functions
19,484
◇
Types & classes
3,433
↳
Endpoints
991
Function
test_litellm_input_token_count_uses_formatted_messages_and_tools
()
lib/crewai/tests/test_llm.py:833
Function
test_litellm_keeps_provider_but_formats_multimodal_as_openai_schema
()
lib/crewai/tests/test_llm.py:1135
Function
test_litellm_loads_without_custom_tool_call_type
Older litellm lacks ChatCompletionDeltaCustomToolCall; it is only a type hint.
lib/crewai/tests/llms/litellm/test_litellm_import_compat.py:26
Function
test_litellm_map_includes_the_openai_gpt5_family
()
lib/crewai/tests/llms/test_context_window.py:103
Function
test_litellm_non_gpt5_sends_stop_in_params
Test that the LiteLLM fallback path still includes 'stop' in API params for models that support it.
lib/crewai/tests/test_llm.py:817
Function
test_litellm_path_preserves_provider_from_model_prefix
(model, expected_provider)
lib/crewai/tests/test_llm.py:1128
Function
test_litellm_retry_catches_litellm_unsupported_params_error
Test that the retry logic catches LiteLLM's UnsupportedParamsError format ("does not support parameters") in addition to the OpenAI API forma
lib/crewai/tests/test_llm.py:894
Function
test_litellm_retry_catches_openai_api_stop_error
Test that the retry logic still catches the OpenAI API error format ("Unsupported parameter: 'stop'").
lib/crewai/tests/test_llm.py:931
Function
test_litellm_strips_provider_prefix
(monkeypatch)
lib/cli/tests/test_model_catalog.py:399
Function
test_litellm_tier_for_uncurated_provider
(monkeypatch)
lib/cli/tests/test_model_catalog.py:370
Function
test_live_answer_of_the_wrong_type_fails
(record, answers, error)
lib/crewai/tests/test_jev_evaluation_runner.py:600
Function
test_live_answer_without_probabilities_or_usage
()
lib/crewai/tests/test_jev_evaluation_runner.py:627
Function
test_live_azure_documentdb_and_openai_with_entra
Use an explicitly selected identity without falling back to another login.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_e2e.py:154
Function
test_live_client_errors_become_failed_records
()
lib/crewai/tests/test_jev_evaluation_runner.py:540
Function
test_live_collection_builds_questions_and_records_metadata
(monkeypatch)
lib/crewai/tests/test_jev_evaluation_runner.py:487
Function
test_live_collection_requires_questions
(override)
lib/crewai/tests/test_jev_evaluation_runner.py:645
Function
test_live_collection_skips_recorded_decisions
()
lib/crewai/tests/test_jev_evaluation_runner.py:650
Method
test_live_llm_object_is_not_downgraded_by_the_definition
(self)
lib/crewai/tests/test_flow_conversation.py:3201
Method
test_live_router_response_format_is_not_downgraded
(self)
lib/crewai/tests/test_flow_conversation.py:3213
Method
test_llm_accepts_every_documented_effort
(self, effort)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:701
Method
test_llm_action_inside_flow_claims_flow_trace_batch
(self)
lib/crewai/tests/test_flow_conversation.py:1874
Function
test_llm_call
()
lib/crewai/tests/agents/test_agent.py:1387
Function
test_llm_call_events_share_call_id
All events from a single LLM call should share the same call_id.
lib/crewai/tests/utilities/test_events.py:1750
Function
test_llm_call_when_stop_is_unsupported
(caplog)
lib/crewai/tests/test_llm.py:763
Function
test_llm_call_when_stop_is_unsupported_when_additional_drop_params_is_provided
( caplog, )
lib/crewai/tests/test_llm.py:774
Function
test_llm_call_with_all_attributes
()
lib/crewai/tests/agents/test_agent.py:1524
Function
test_llm_call_with_error
()
lib/crewai/tests/agents/test_agent.py:1396
Function
test_llm_call_with_message_list
()
lib/crewai/tests/test_llm.py:80
Function
test_llm_call_with_ollama_llama3
()
lib/crewai/tests/agents/test_agent.py:1564
Function
test_llm_call_with_string_input
()
lib/crewai/tests/test_llm.py:55
Function
test_llm_call_with_string_input_and_callbacks
()
lib/crewai/tests/test_llm.py:64
Function
test_llm_call_with_tool_and_message_list
()
lib/crewai/tests/test_llm.py:144
Function
test_llm_call_with_tool_and_string_input
()
lib/crewai/tests/test_llm.py:108
Function
test_llm_callback_replacement
()
lib/crewai/tests/test_llm.py:29
Function
test_llm_completed_event_includes_usage
()
lib/crewai/tests/utilities/test_events.py:1345
Method
test_llm_creates_native_snowflake_provider
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/snowflake/test_snowflake.py:109
Method
test_llm_creates_openai_compatible_for_cerebras
Test LLM factory creates OpenAICompatibleCompletion for Cerebras.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:305
Method
test_llm_creates_openai_compatible_for_dashscope
Test LLM factory creates OpenAICompatibleCompletion for Dashscope.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:312
Method
test_llm_creates_openai_compatible_for_dashscope_non_qwen
Non-Qwen DashScope models must still use the native OpenAI-compatible path.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:319
Method
test_llm_creates_openai_compatible_for_deepinfra
Test LLM factory creates OpenAICompatibleCompletion for DeepInfra.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:333
Method
test_llm_creates_openai_compatible_for_deepinfra_explicit_provider
Explicit provider="deepinfra" routes natively without the model prefix.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:357
Method
test_llm_creates_openai_compatible_for_deepseek
Test LLM factory creates OpenAICompatibleCompletion for DeepSeek.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:275
Method
test_llm_creates_openai_compatible_for_hosted_vllm
Test LLM factory creates OpenAICompatibleCompletion for hosted_vllm.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:299
Method
test_llm_creates_openai_compatible_for_ollama
Test LLM factory creates OpenAICompatibleCompletion for Ollama.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:283
Method
test_llm_creates_openai_compatible_for_openrouter
Test LLM factory creates OpenAICompatibleCompletion for OpenRouter.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:290
Function
test_llm_emits_call_failed_event
()
lib/crewai/tests/utilities/test_events.py:1373
Function
test_llm_emits_call_started_event
()
lib/crewai/tests/utilities/test_events.py:1308
Function
test_llm_emits_event_with_lite_agent
()
lib/crewai/tests/utilities/test_events.py:1677
Function
test_llm_emits_event_with_task_and_agent_info
(base_agent, base_task)
lib/crewai/tests/utilities/test_events.py:1613
Function
test_llm_emits_stream_chunk_events
Test that LLM emits stream chunk events when streaming is enabled.
lib/crewai/tests/utilities/test_events.py:1403
Method
test_llm_events_have_parent
LLM call events should have a parent event.
lib/crewai/tests/events/test_event_ordering.py:228
Method
test_llm_exception_falls_back_to_simple_prompting
Test that LLM exception triggers fallback to simple prompting.
lib/crewai/tests/test_async_human_feedback.py:1138
Method
test_llm_explicit_deepinfra_provider_rejects_malformed_model
provider="deepinfra" applies the org/model check before building a client.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:373
Method
test_llm_factory_passes_api_kwarg
LLM(model='azure/gpt-4o', api='responses') should create AzureCompletion with api='responses' and a delegate.
lib/crewai/tests/llms/azure/test_azure_responses.py:376
Function
test_llm_messages_and_response_arrive_whole
()
lib/crewai/tests/telemetry/test_span_attribute_bound.py:201
Function
test_llm_no_stream_chunks_when_streaming_disabled
Test that LLM doesn't emit stream chunk events when streaming is disabled.
lib/crewai/tests/utilities/test_events.py:1426
Function
test_llm_passes_additional_params
()
lib/crewai/tests/test_llm.py:182
Method
test_llm_passes_kwargs_to_completion
Test LLM passes kwargs to OpenAICompatibleCompletion.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:422
Function
test_llm_property_shares_default_model_cache
(mock_llm_cls: MagicMock)
lib/crewai-tools/tests/tools/test_vision_tool.py:166
Method
test_llm_rejects_malformed_deepinfra_prefixed_model
A malformed deepinfra/... id raises the org/model error, never reaching LiteLLM.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:388
Method
test_llm_with_explicit_provider
Test LLM with explicit provider parameter.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:414
Method
test_load_acquires_lock_for_zero_size_file
(self)
lib/crewai/tests/utilities/test_training_handler.py:64
Method
test_load_agent_accepts_public_agent_config_fields
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:220
Method
test_load_agent_accepts_serialized_tool_dict
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/project/test_json_loader.py:246
Method
test_load_agent_accepts_static_mcp_tool_filter
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:299
Method
test_load_agent_file_not_found
(self)
lib/crewai/tests/project/test_json_loader.py:406
Method
test_load_agent_from_jsonc
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:355
Method
test_load_agent_from_jsonc_with_a_utf8_bom
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:370
Method
test_load_agent_missing_required_fields
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:380
Method
test_load_agent_rejects_null_required_fields
( self, tmp_path: Path, field: str )
lib/crewai/tests/project/test_json_loader.py:389
Method
test_load_agent_rejects_runtime_fields
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:326
Method
test_load_agent_rejects_tool_dict_that_is_not_a_tool
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/project/test_json_loader.py:280
Method
test_load_agent_with_llm
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:121
Method
test_load_agent_with_llm_config_object
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:134
Method
test_load_agent_with_planning_config_llm_object
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:157
Method
test_load_agent_with_settings_block
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:183
Method
test_load_agent_with_top_level_settings
(self, tmp_path: Path)
lib/crewai/tests/project/test_json_loader.py:205
Method
test_load_basic_mdx_file
(self)
lib/crewai-tools/tests/rag/test_mdx_loader.py:26
Method
test_load_basic_webpage
(self, mock_bs, mock_get)
lib/crewai-tools/tests/rag/test_webpage_loader.py:27
Method
test_load_basic_webpage
(self, mock_bs, mock_get)
lib/crewai-tools/tests/rag/test_xml_loader.py:27
Method
test_load_complex_nested_json
(self)
lib/crewai-tools/tests/rag/test_json_loader.py:103
Method
test_load_corrupt_pdf_raises_value_error
Bytes that are not a parseable PDF produce a read error.
lib/crewai-tools/tests/rag/test_pdf_loader.py:124
Method
test_load_corrupted_file
(self)
lib/crewai/tests/utilities/test_file_handler.py:42
Function
test_load_crew_and_name_loads_json_crew_definition
( tmp_path: Path, project_env: pytest.MonkeyPatch )
lib/crewai/tests/cli/test_crew_chat.py:202
Function
test_load_crew_and_name_reports_missing_classic_crew_module
( tmp_path: Path, project_env: pytest.MonkeyPatch )
lib/crewai/tests/cli/test_crew_chat.py:228
Function
test_load_crew_and_name_still_imports_classic_crew_module
( tmp_path: Path, project_env: pytest.MonkeyPatch )
lib/crewai/tests/cli/test_crew_chat.py:216
Method
test_load_crew_from_inline_definition
(self)
lib/crewai/tests/project/test_crew_loader.py:75
Method
test_load_csv_empty_file
(self, temp_csv_file)
lib/crewai-tools/tests/rag/test_csv_loader.py:62
Method
test_load_csv_from_file
(self, temp_csv_file)
lib/crewai-tools/tests/rag/test_csv_loader.py:29
Method
test_load_csv_from_url
(self, mock_get)
lib/crewai-tools/tests/rag/test_csv_loader.py:89
Method
test_load_csv_malformed
(self, temp_csv_file)
lib/crewai-tools/tests/rag/test_csv_loader.py:54
Method
test_load_csv_text_input
(self)
lib/crewai-tools/tests/rag/test_csv_loader.py:69
Method
test_load_csv_with_custom_headers
(self, mock_get)
lib/crewai-tools/tests/rag/test_csv_loader.py:103
Method
test_load_csv_with_empty_values
(self, temp_csv_file)
lib/crewai-tools/tests/rag/test_csv_loader.py:46
Function
test_load_declarative_flow_reports_invalid_declarations
( tmp_path: Path, capsys: pytest.CaptureFixture[str], contents: str, expected_error: str, )
lib/cli/tests/test_run_declarative_flow.py:97
Method
test_load_docx_empty_document
(self, mock_docx_class)
lib/crewai-tools/tests/rag/test_docx_loader.py:131
Method
test_load_docx_from_file
(self, mock_docx_class)
lib/crewai-tools/tests/rag/test_docx_loader.py:12
Method
test_load_docx_from_url
( self, mock_unlink, mock_tempfile, mock_docx_class, mock_get )
lib/crewai-tools/tests/rag/test_docx_loader.py:48
Method
test_load_docx_from_url_with_custom_headers
(self, mock_docx_class, mock_get)
lib/crewai-tools/tests/rag/test_docx_loader.py:82
Method
test_load_docx_invalid_source
(self)
lib/crewai-tools/tests/rag/test_docx_loader.py:116
← previous
next →
15,401–15,500 of 19,484, ranked by callers