MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

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_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_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:246
Functiontest_bare_context_windows_uses_the_smaller_limit_when_votes_tie
()
lib/crewai/tests/llms/test_context_window.py:258
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:238
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
Methodtest_bare_string_is_wrapped_in_list
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:119
Functiontest_base_agent_adapter_fails_without_required_methods
Test that BaseAgentAdapter fails without required methods.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:125
Functiontest_base_agent_adapter_inherits_base_agent
Test that BaseAgentAdapter inherits from BaseAgent.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:116
Functiontest_base_agent_adapter_initialization
Test initialization of the concrete agent adapter.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:67
Functiontest_base_agent_adapter_initialization_with_config
Test initialization with agent_config.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:79
Methodtest_base_defaults_to_max_tokens
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:293
Functiontest_base_dir_anchors_relative_directories
With base_dir set, a relative (or omitted) directory resolves under it.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:287
Functiontest_base_dir_still_blocks_escapes
base_dir moves the sandbox; it does not remove it.
lib/crewai-tools/tests/file_read_tool_test.py:377
Functiontest_base_dir_still_blocks_escapes
base_dir moves the sandbox; it does not remove it.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:339
Functiontest_base_dir_survives_a_serialization_round_trip
(temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:325
Functiontest_base_dir_widens_the_sandbox
base_dir lets a developer authorize reads outside the working directory.
lib/crewai-tools/tests/file_read_tool_test.py:362
Functiontest_base_dir_widens_the_sandbox
base_dir lets a developer authorize writes outside the working directory.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:270
Methodtest_base_format_text_content
Test base text formatting uses OpenAI/Anthropic style.
lib/crewai/tests/llms/test_multimodal.py:376
Functiontest_base_llm_acall_is_automatically_wrapped
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/test_retry.py:137
Functiontest_base_llm_call_is_automatically_wrapped
(monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/test_retry.py:125
← previousnext →11,501–11,600 of 19,482, ranked by callers