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
Function
test_litellm_anthropic_error_handling
Test that AnthropicError from LiteLLM is handled correctly and not retried.
lib/crewai/tests/agents/test_agent.py:2080
Function
test_litellm_async_basic_call
Test basic async call with LiteLLM fallback.
lib/crewai/tests/llms/litellm/test_litellm_async.py:11
Function
test_litellm_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/litellm/test_litellm_async.py:70
Function
test_litellm_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/litellm/test_litellm_async.py:89
Function
test_litellm_async_streaming
Test async streaming call with LiteLLM fallback.
lib/crewai/tests/llms/litellm/test_litellm_async.py:126
Function
test_litellm_async_streaming_with_parameters
Test async streaming call with multiple parameters.
lib/crewai/tests/llms/litellm/test_litellm_async.py:140
Function
test_litellm_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/litellm/test_litellm_async.py:38
Function
test_litellm_async_with_parameters
Test async call with multiple parameters.
lib/crewai/tests/llms/litellm/test_litellm_async.py:105
Function
test_litellm_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/litellm/test_litellm_async.py:52
Function
test_litellm_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/litellm/test_litellm_async.py:25
Function
test_litellm_auth_error_handling
Test that LiteLLM authentication errors are handled correctly and not retried.
lib/crewai/tests/agents/test_agent.py:2050
Function
test_litellm_empty_stream_raises_typed_error_with_one_failed_event
( llm_events: list[Any], )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:329
Function
test_litellm_empty_then_text_retries_once_with_events_per_call
( stream: bool, use_async: bool, llm_events: list[Any] )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:353
Function
test_litellm_extra_matches_crewai_routing_for_every_prefix
The CLI copies crewAI's rule for which prefixes have a native provider and which names it takes; a model crewAI sends to LiteLLM must get the
lib/cli/tests/test_constants.py:328
Function
test_litellm_fetch_attempted_once_per_process
(monkeypatch)
lib/cli/tests/test_model_catalog.py:484
Function
test_litellm_fills_uncurated_bedrock
(monkeypatch)
lib/cli/tests/test_model_catalog.py:499
Function
test_litellm_gpt5_call_succeeds_without_stop_error
Integration test: GPT-5 call succeeds when stop words are configured, because stop is omitted from API params and applied client-side.
lib/crewai/tests/test_llm.py:790
Function
test_litellm_gpt5_does_not_send_stop_in_params
Test that the LiteLLM fallback path does not include 'stop' in API params for GPT-5.x models, since they reject it at the API level.
lib/crewai/tests/test_llm.py:801
Function
test_litellm_gpt5_uses_the_shared_openai_context_window
()
lib/crewai/tests/test_llm.py:395
Function
test_litellm_input_token_count_includes_structured_output_tool
()
lib/crewai/tests/test_llm.py:857
Function
test_litellm_input_token_count_uses_character_fallback
()
lib/crewai/tests/test_llm.py:887
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
Function
test_load_artifact_picks_the_highest_version_number
(store)
lib/crewai/tests/test_artifacts.py:897
Function
test_load_artifact_raises_when_missing
(store)
lib/crewai/tests/test_artifacts.py:908
← previous
next →
15,501–15,600 of 19,663, ranked by callers