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_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
Function
test_azure_message_names_the_keyless_alternative
()
lib/crewai/tests/llms/test_missing_api_key.py:211
Function
test_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
Function
test_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
Method
test_azure_mock_structured_response
Test parsing Azure OpenAI structured response (same format as OpenAI).
lib/crewai/tests/utilities/test_structured_planning.py:557
Function
test_azure_model_capabilities
Test that model capabilities are correctly identified
lib/crewai/tests/llms/azure/test_azure.py:490
Function
test_azure_model_detection
Test that various Azure model formats are properly detected
lib/crewai/tests/llms/azure/test_azure.py:537
Function
test_azure_no_detail_fields
Test Azure extraction without detail fields.
lib/crewai/tests/llms/azure/test_azure.py:1488
Function
test_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
Function
test_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
Function
test_azure_openai_endpoint_url_construction
Test that Azure OpenAI endpoint URLs are automatically constructed correctly
lib/crewai/tests/llms/azure/test_azure.py:869
Function
test_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
Function
test_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
Function
test_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
Method
test_azure_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:774
Method
test_azure_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:751
Method
test_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
Method
test_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
Method
test_azure_provider_with_minimal_config
Test Azure provider with minimal required configuration.
lib/crewai/tests/rag/embeddings/test_factory_azure.py:81
Function
test_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
Function
test_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
Method
test_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
Function
test_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
Function
test_azure_requires_settings
(azure_mock, missing)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:119
Method
test_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
Function
test_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
Function
test_azure_specific_models_use_official_context_windows
( model: str, context_window: int )
lib/crewai/tests/llms/azure/test_azure.py:679
Function
test_azure_specific_parameters
Test Azure-specific parameters like stop sequences, streaming, and API version
lib/crewai/tests/llms/azure/test_azure.py:167
Function
test_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
Function
test_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
Function
test_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
Function
test_azure_streaming_completion
Test that streaming completions work properly
lib/crewai/tests/llms/azure/test_azure.py:835
Method
test_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
Function
test_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
Function
test_azure_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/azure/test_azure.py:730
Function
test_azure_streaming_returns_usage_metrics
Test that Azure streaming calls return proper token usage metrics.
lib/crewai/tests/llms/azure/test_azure.py:1259
Function
test_azure_supports_stop_words
Test that Azure models support stop sequences
lib/crewai/tests/llms/azure/test_azure.py:554
Function
test_azure_timeout_and_max_retries_stored
Test that timeout and max_retries parameters are stored
lib/crewai/tests/llms/azure/test_azure.py:1086
Function
test_azure_token_usage_tracking
Test that token usage is properly tracked for Azure responses
lib/crewai/tests/llms/azure/test_azure.py:786
Function
test_azure_tool_conversion
Test that tools are properly converted to Azure OpenAI format
lib/crewai/tests/llms/azure/test_azure.py:741
Function
test_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
Function
test_azure_uses_azure_client
(azure_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:97
Function
test_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
Method
test_azure_with_nested_config
Test Azure configuration with nested config key.
lib/crewai/tests/rag/embeddings/test_factory_azure.py:14
Method
test_azure_without_interceptor_works
Test that Azure LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:84
Method
test_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
Method
test_backend_initialized_false_on_failure
backend_initialized is False when _initialize_backend_batch fails.
lib/crewai/tests/tracing/test_tracing.py:1512
Method
test_backend_initialized_false_on_non_2xx
backend_initialized stays False when server returns non-2xx.
lib/crewai/tests/tracing/test_tracing.py:1211
Method
test_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
Method
test_backend_initialized_true_on_success
backend_initialized is True when _initialize_backend_batch succeeds.
lib/crewai/tests/tracing/test_tracing.py:1480
Function
test_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
Function
test_background_save_propagates_dimension_mismatch
(tmp_path: Path)
lib/crewai/tests/memory/test_dimension_mismatch.py:146
Function
test_background_save_still_swallows_shutdown_runtime_error
(tmp_path: Path)
lib/crewai/tests/memory/test_dimension_mismatch.py:166
Method
test_backward_compat_reasoning_true_enables_planning
Test that reasoning=True (deprecated) still enables planning.
lib/crewai/tests/agents/test_agent_executor.py:1644
Function
test_bad_cache_json_does_not_crash
(monkeypatch)
lib/cli/tests/test_model_catalog.py:529
Function
test_baggage_exception_handling
()
lib/crewai/tests/utilities/crew/test_crew_context.py:73
Function
test_baggage_nested_contexts
()
lib/crewai/tests/utilities/crew/test_crew_context.py:40
Method
test_bands_are_inclusive_at_every_boundary
( self, cores: int, expected: str, monkeypatch: pytest.MonkeyPatch )
lib/crewai-core/tests/test_runtime_env.py:163
Function
test_bank_items_are_well_formed
()
lib/devtools/tests/test_agents_md_eval.py:20
Function
test_bare_context_windows_uses_the_majority_limit
()
lib/crewai/tests/llms/test_context_window.py:248
Function
test_bare_context_windows_uses_the_smaller_limit_when_votes_tie
()
lib/crewai/tests/llms/test_context_window.py:260
Method
test_bare_conversational_flow_defers_by_default
(self)
lib/crewai/tests/test_flow_conversation.py:1906
Method
test_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
Method
test_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
Function
test_bare_lookup_uses_the_full_catalog_when_the_provider_map_misses
()
lib/crewai/tests/llms/test_context_window.py:37
Function
test_bare_model_name_matches_catalog_variants
( model: str, raw_context_window: int )
lib/crewai/tests/llms/test_context_window.py:240
Function
test_bare_run_forwards_absent_inputs
(tmp_path, monkeypatch)
lib/cli/tests/test_run_agent.py:251
Function
test_bare_run_needs_terminal_before_loading_project
(monkeypatch)
lib/cli/tests/test_run_agent.py:242
Function
test_bare_run_opens_conversation_tui
(tmp_path, monkeypatch)
lib/cli/tests/test_run_agent.py:230
Method
test_bare_slug
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:187
Method
test_bare_slug_with_empty_tool
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:197
Method
test_bare_slug_with_tool
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:192
Method
test_bare_string_is_wrapped_in_list
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:119
Function
test_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
Function
test_base_agent_adapter_inherits_base_agent
Test that BaseAgentAdapter inherits from BaseAgent.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:116
Function
test_base_agent_adapter_initialization
Test initialization of the concrete agent adapter.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:67
Function
test_base_agent_adapter_initialization_with_config
Test initialization with agent_config.
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:79
Method
test_base_defaults_to_max_tokens
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:293
Function
test_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
Function
test_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
Function
test_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
Function
test_base_dir_survives_a_serialization_round_trip
(temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:325
Function
test_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
Function
test_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
Method
test_base_format_text_content
Test base text formatting uses OpenAI/Anthropic style.
lib/crewai/tests/llms/test_multimodal.py:548
Function
test_base_llm_acall_is_automatically_wrapped
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/test_retry.py:137
Function
test_base_llm_call_is_automatically_wrapped
(monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/test_retry.py:125
Function
test_base_llm_input_token_count_estimates_text_characters
Custom providers have a conservative fallback without native support.
lib/crewai/tests/test_custom_llm.py:144
Function
test_base_llm_summarize_messages_compacts_history
BaseLLM owns the context-compaction behavior.
lib/crewai/tests/test_custom_llm.py:152
Method
test_base_supports_multimodal_false
Test base implementation returns False.
lib/crewai/tests/llms/test_multimodal.py:537
Method
test_base_tool_does_not_infer_non_pydantic_return_annotation
(self)
lib/crewai/tests/tools/test_base_tool.py:475
Function
test_base_tool_fields_excluded_from_init_params
BaseTool internal fields (including computed_field like tool_type) must never appear in init_params_schema. Studio reads this schema to render
lib/crewai-tools/tests/test_generate_tool_specs.py:208
Function
test_base_tool_passes_cache_function_to_structured_tool
Test that BaseTool.to_structured_tool propagates cache_function.
lib/crewai/tests/tools/test_structured_tool.py:58
Method
test_base_tools_return_raw_result_and_json_agent_text
( self, tool_cls: type[BaseTool], expected_raw: object, expected_agent_payload
lib/crewai/tests/tools/test_base_tool.py:460
Method
test_base_url
(self)
lib/cli/tests/authentication/providers/test_entra_id.py:140
Method
test_base_url
(self)
lib/crewai/tests/cli/authentication/providers/test_entra_id.py:140
Method
test_base_url_from_config
Test base URL is set from provider config.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:207
Method
test_base_url_from_env
Test base URL is read from environment variable.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:215
Method
test_basellm_object_model_string_survives_roundtrip
Test that when llm is a BaseLLM object, its model string is stored in context so that outcome collapsing works after async pause/resume.
lib/crewai/tests/test_async_human_feedback.py:1166
Method
test_basic_crew_streaming_from_docs
Test basic streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:37
← previous
next →
11,601–11,700 of 19,663, ranked by callers