MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Functiontest_azure_credential_scopes_in_to_config_dict
Config round-trips the scopes so an LLM rebuilt from `to_config_dict` keeps the same audience.
lib/crewai/tests/llms/azure/test_azure.py:1608
Functiontest_azure_credential_scopes_lazy_env_read
When the LLM is built before ``AZURE_CREDENTIAL_SCOPES`` is exported (e.g. constructed at module import), the lazy client builder must still p
lib/crewai/tests/llms/azure/test_azure.py:1583
Functiontest_azure_credential_scopes_omitted_by_default
Without explicit scopes or env var, the kwarg must not be set so the Azure SDK chooses its own default audience.
lib/crewai/tests/llms/azure/test_azure.py:1526
Functiontest_azure_credential_scopes_passed_to_client
`credential_scopes` constructor arg flows through `_make_client_kwargs` so the underlying ChatCompletionsClient requests tokens for the requested
lib/crewai/tests/llms/azure/test_azure.py:1508
Functiontest_azure_deepseek_model_support
Test that DeepSeek and other non-OpenAI models work correctly with Azure AI Inference
lib/crewai/tests/llms/azure/test_azure.py:1181
Functiontest_azure_defaults_and_env_aliases
(azure_mock, monkeypatch)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:62
Functiontest_azure_endpoint_configuration
Test that Azure endpoint configuration works with multiple environment variable names
lib/crewai/tests/llms/azure/test_azure.py:450
Functiontest_azure_endpoint_detection_flags
Test that is_azure_openai_endpoint flag is set correctly
lib/crewai/tests/llms/azure/test_azure.py:1013
Functiontest_azure_endpoint_validation_with_azure_prefix
Test that 'azure/' prefix is properly stripped when constructing endpoint
lib/crewai/tests/llms/azure/test_azure.py:1138
Functiontest_azure_environment_variable_endpoint
Test that Azure endpoint is properly loaded from environment
lib/crewai/tests/llms/azure/test_azure.py:772
Methodtest_azure_error_message_is_clear
Test that Azure error message clearly states lack of support.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:195
Functiontest_azure_function_calling_support
Test that function calling is supported for OpenAI models
lib/crewai/tests/llms/azure/test_azure.py:858
Functiontest_azure_functions_are_not_reported_as_paas
Azure Functions run on the App Service host and inherit its marker.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:695
Functiontest_azure_gpt54_mini_keeps_its_window
()
lib/crewai/tests/llms/azure/test_azure.py:703
Functiontest_azure_gpt56_family_uses_official_context_window
Azure must not fall back to the 8k default for GPT-5.6 deployments.
lib/crewai/tests/llms/azure/test_azure.py:697
Functiontest_azure_gpt5_models_do_not_support_stop_words
Test that GPT-5 family models do not support stop words. GPT-5 models use the Responses API which doesn't support stop sequences. See: ht
lib/crewai/tests/llms/azure/test_azure.py:565
Functiontest_azure_http_error_handling
Test that Azure HTTP errors are properly handled
lib/crewai/tests/llms/azure/test_azure.py:819
Methodtest_azure_import_error
Test handling of import errors for Azure provider.
lib/crewai/tests/rag/embeddings/test_factory_azure.py:110
Functiontest_azure_improved_error_messages
Test that improved error messages are provided for common HTTP errors
lib/crewai/tests/llms/azure/test_azure.py:1032
Functiontest_azure_lazy_build_reads_env_vars_set_after_construction
When `LLM(model="azure/...")` is constructed before env vars are set, the lazy client builder must re-read `AZURE_API_KEY` / `AZURE_ENDPOINT`
lib/crewai/tests/llms/azure/test_azure.py:420
Methodtest_azure_llm_accepts_interceptor_parameter
Test that Azure LLM raises NotImplementedError with interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:53
Functiontest_azure_matches_chromadb_function
(azure_mock)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:91
Functiontest_azure_matches_chromadb_openai_function
(azure_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:192
Functiontest_azure_message_formatting
Test that messages are properly formatted for Azure API
lib/crewai/tests/llms/azure/test_azure.py:708
Functiontest_azure_message_formatting_default_role
Test that messages without a role default to 'user'
lib/crewai/tests/llms/azure/test_azure.py:998
Functiontest_azure_message_formatting_preserves_all_roles
Test that all message roles (system, user, assistant) are preserved correctly
lib/crewai/tests/llms/azure/test_azure.py:1154
Functiontest_azure_message_formatting_with_role
Test that messages are formatted with both 'role' and 'content' fields
lib/crewai/tests/llms/azure/test_azure.py:971
Functiontest_azure_message_names_the_keyless_alternative
()
lib/crewai/tests/llms/test_missing_api_key.py:211
Functiontest_azure_missing_deployment_id_gives_clear_error
Test that missing deployment_id for Azure gives a clear, focused error message.
lib/crewai-tools/tests/tools/rag/test_rag_tool_validation.py:12
Functiontest_azure_mistral_and_other_models
Test that various non-OpenAI models (Mistral, Llama, etc.) work with Azure AI Inference
lib/crewai/tests/llms/azure/test_azure.py:1207
Methodtest_azure_mock_structured_response
Test parsing Azure OpenAI structured response (same format as OpenAI).
lib/crewai/tests/utilities/test_structured_planning.py:557
Functiontest_azure_model_capabilities
Test that model capabilities are correctly identified
lib/crewai/tests/llms/azure/test_azure.py:490
Functiontest_azure_model_detection
Test that various Azure model formats are properly detected
lib/crewai/tests/llms/azure/test_azure.py:537
Functiontest_azure_no_detail_fields
Test Azure extraction without detail fields.
lib/crewai/tests/llms/azure/test_azure.py:1488
Functiontest_azure_o_series_models_do_not_support_stop_words
Test that o-series reasoning models do not support stop words.
lib/crewai/tests/llms/azure/test_azure.py:596
Functiontest_azure_openai_endpoint_already_complete
Test that already complete Azure OpenAI endpoint URLs are not modified
lib/crewai/tests/llms/azure/test_azure.py:902
Functiontest_azure_openai_endpoint_url_construction
Test that Azure OpenAI endpoint URLs are automatically constructed correctly
lib/crewai/tests/llms/azure/test_azure.py:869
Functiontest_azure_openai_endpoint_url_with_trailing_slash
Test that trailing slashes are handled correctly in endpoint URLs
lib/crewai/tests/llms/azure/test_azure.py:886
Functiontest_azure_openai_model_parameter_excluded
Test that model parameter is NOT included for Azure OpenAI endpoints
lib/crewai/tests/llms/azure/test_azure.py:930
Functiontest_azure_openai_uses_deployment_and_dimensions
Verify Azure embeddings use the configured deployment and dimensions.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:283
Methodtest_azure_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:774
Methodtest_azure_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:751
Methodtest_azure_provider_accepts_model_key
Test Azure provider accepts 'model' as alias for 'model_name'.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:121
Methodtest_azure_provider_ignores_openai_chat_model_env
Test Azure embeddings don't inherit the OpenAI chat model env var.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:81
Methodtest_azure_provider_with_minimal_config
Test Azure provider with minimal required configuration.
lib/crewai/tests/rag/embeddings/test_factory_azure.py:81
Functiontest_azure_raises_error_when_api_key_missing_without_azure_identity
Without an API key AND without ``azure-identity`` installed, client build raises the descriptive error.
lib/crewai/tests/llms/azure/test_azure.py:366
Functiontest_azure_raises_error_when_endpoint_missing
Credentials are validated lazily: construction succeeds, first client build raises the descriptive error.
lib/crewai/tests/llms/azure/test_azure.py:355
Methodtest_azure_raises_not_implemented_on_initialization
Test that Azure raises NotImplementedError when interceptor is used.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:68
Functiontest_azure_reasoning_tokens_and_cached_tokens
Test that reasoning_tokens and cached_tokens are extracted from Azure responses.
lib/crewai/tests/llms/azure/test_azure.py:1467
Functiontest_azure_requires_settings
(azure_mock, missing)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:119
Methodtest_azure_research_workflow_generates_steps
Test that Azure OpenAI generates structured plan steps for a research task.
lib/crewai/tests/utilities/test_structured_planning.py:480
Functiontest_azure_responses_api_models_do_not_support_stop_words
Test that models using the Responses API do not support stop words.
lib/crewai/tests/llms/azure/test_azure.py:614
Functiontest_azure_specific_models_use_official_context_windows
( model: str, context_window: int )
lib/crewai/tests/llms/azure/test_azure.py:679
Functiontest_azure_specific_parameters
Test Azure-specific parameters like stop sequences, streaming, and API version
lib/crewai/tests/llms/azure/test_azure.py:167
Functiontest_azure_stop_words_not_applied_to_structured_output
Test that stop words are NOT applied when response_model is provided. This ensures JSON responses containing stop word patterns (like "Observ
lib/crewai/tests/llms/azure/test_azure.py:1369
Functiontest_azure_stop_words_not_included_for_unsupported_models
Test that stop words are not included in completion params for models that don't support them.
lib/crewai/tests/llms/azure/test_azure.py:627
Functiontest_azure_stop_words_still_applied_to_regular_responses
Test that stop words ARE still applied for regular (non-structured) responses. This ensures the fix didn't break normal stop word behavior.
lib/crewai/tests/llms/azure/test_azure.py:1422
Functiontest_azure_streaming_completion
Test that streaming completions work properly
lib/crewai/tests/llms/azure/test_azure.py:835
Methodtest_azure_streaming_emits_tool_call_events
Test that Azure streaming emits tool call events with correct call_type.
lib/crewai/tests/llms/test_tool_call_streaming.py:272
Functiontest_azure_streaming_keeps_delta_when_chunk_also_carries_usage
A chunk with both content and usage must contribute its delta.
lib/crewai/tests/llms/azure/test_azure_streaming_usage.py:68
Functiontest_azure_streaming_parallel_tool_calls_are_keyed_by_wire_index
Both parallel tool calls must reach the executor intact. Each chunk carries exactly one tool_call tagged with its own wire ``index`` (0 and 1
lib/crewai/tests/llms/azure/test_azure_streaming_tool_calls.py:45
Functiontest_azure_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/azure/test_azure.py:730
Functiontest_azure_streaming_returns_usage_metrics
Test that Azure streaming calls return proper token usage metrics.
lib/crewai/tests/llms/azure/test_azure.py:1259
Functiontest_azure_streaming_still_records_usage_from_content_chunk
Usage attached to a content chunk is still tracked.
lib/crewai/tests/llms/azure/test_azure_streaming_usage.py:96
Functiontest_azure_supports_stop_words
Test that Azure models support stop sequences
lib/crewai/tests/llms/azure/test_azure.py:554
Functiontest_azure_timeout_and_max_retries_stored
Test that timeout and max_retries parameters are stored
lib/crewai/tests/llms/azure/test_azure.py:1086
Functiontest_azure_token_usage_tracking
Test that token usage is properly tracked for Azure responses
lib/crewai/tests/llms/azure/test_azure.py:786
Functiontest_azure_tool_conversion
Test that tools are properly converted to Azure OpenAI format
lib/crewai/tests/llms/azure/test_azure.py:741
Functiontest_azure_tool_use_conversation_flow
Test that the Azure completion properly handles tool use conversation flow
lib/crewai/tests/llms/azure/test_azure.py:51
Functiontest_azure_uses_azure_client
(azure_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:97
Functiontest_azure_uses_default_credential_when_api_key_missing
With ``azure-identity`` installed, a missing API key falls back to ``DefaultAzureCredential`` instead of raising. This is the path that enable
lib/crewai/tests/llms/azure/test_azure.py:382
Methodtest_azure_with_nested_config
Test Azure configuration with nested config key.
lib/crewai/tests/rag/embeddings/test_factory_azure.py:14
Methodtest_azure_without_interceptor_works
Test that Azure LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:84
Methodtest_backend_initialized_false_on_failure
backend_initialized stays False and events are NOT sent when batch creation fails.
lib/crewai/tests/tracing/test_tracing.py:1184
Methodtest_backend_initialized_false_on_failure
backend_initialized is False when _initialize_backend_batch fails.
lib/crewai/tests/tracing/test_tracing.py:1512
Methodtest_backend_initialized_false_on_non_2xx
backend_initialized stays False when server returns non-2xx.
lib/crewai/tests/tracing/test_tracing.py:1211
Methodtest_backend_initialized_true_on_success
Events are sent when batch creation succeeds, then state is cleaned up.
lib/crewai/tests/tracing/test_tracing.py:1139
Methodtest_backend_initialized_true_on_success
backend_initialized is True when _initialize_backend_batch succeeds.
lib/crewai/tests/tracing/test_tracing.py:1480
Functiontest_backfill_precedes_command_specific_work
The backfill runs before the command does anything of its own. Placement is the point: a command that fails partway must still leave the project
lib/crewai/tests/cli/test_project_id_backfill.py:81
Functiontest_background_save_propagates_dimension_mismatch
(tmp_path: Path)
lib/crewai/tests/memory/test_dimension_mismatch.py:146
Functiontest_background_save_still_swallows_shutdown_runtime_error
(tmp_path: Path)
lib/crewai/tests/memory/test_dimension_mismatch.py:166
Methodtest_backward_compat_reasoning_true_enables_planning
Test that reasoning=True (deprecated) still enables planning.
lib/crewai/tests/agents/test_agent_executor.py:1644
Functiontest_bad_cache_json_does_not_crash
(monkeypatch)
lib/cli/tests/test_model_catalog.py:529
Functiontest_baggage_exception_handling
()
lib/crewai/tests/utilities/crew/test_crew_context.py:73
Functiontest_baggage_nested_contexts
()
lib/crewai/tests/utilities/crew/test_crew_context.py:40
Methodtest_bands_are_inclusive_at_every_boundary
( self, cores: int, expected: str, monkeypatch: pytest.MonkeyPatch )
lib/crewai-core/tests/test_runtime_env.py:163
Functiontest_bank_items_are_well_formed
()
lib/devtools/tests/test_agents_md_eval.py:20
Functiontest_bare_context_windows_uses_the_majority_limit
()
lib/crewai/tests/llms/test_context_window.py:248
Functiontest_bare_context_windows_uses_the_smaller_limit_when_votes_tie
()
lib/crewai/tests/llms/test_context_window.py:260
Methodtest_bare_conversational_flow_defers_by_default
(self)
lib/crewai/tests/test_flow_conversation.py:1906
Methodtest_bare_host_gets_scheme_and_port
Bare host from OLLAMA_HOST gets http:// and the default port.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:128
Methodtest_bare_localhost_gets_scheme_and_port
Bare localhost gets http:// and the default port.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:132
Functiontest_bare_lookup_uses_the_full_catalog_when_the_provider_map_misses
()
lib/crewai/tests/llms/test_context_window.py:37
Functiontest_bare_model_name_matches_catalog_variants
( model: str, raw_context_window: int )
lib/crewai/tests/llms/test_context_window.py:240
Functiontest_bare_run_forwards_absent_inputs
(tmp_path, monkeypatch)
lib/cli/tests/test_run_agent.py:251
Functiontest_bare_run_needs_terminal_before_loading_project
(monkeypatch)
lib/cli/tests/test_run_agent.py:242
Functiontest_bare_run_opens_conversation_tui
(tmp_path, monkeypatch)
lib/cli/tests/test_run_agent.py:230
Methodtest_bare_slug
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:187
Methodtest_bare_slug_with_empty_tool
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:197
Methodtest_bare_slug_with_tool
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:192
← previousnext →11,601–11,700 of 19,735, ranked by callers