Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,735 in github.com/crewAIInc/crewAI
⨍
Functions
19,735
◇
Types & classes
3,466
↳
Endpoints
994
Function
test_declared_content_type_wins_over_the_body_bytes
A usable header is still authoritative; the sniff never overrides it.
lib/crewai-tools/tests/url_read_tool_test.py:578
Method
test_declared_description_reaches_the_catalog
(self)
lib/crewai/tests/test_flow_conversation.py:3444
Function
test_declared_file_is_reachable_the_way_an_agent_calls_it
The label in the description must resolve to the declared file. The description only shows a redacted label, so that label is all the model h
lib/crewai-tools/tests/file_read_tool_test.py:236
Function
test_declared_path_survives_a_serialization_round_trip
model_dump drops private attrs, so the pin must be rebuilt on restore.
lib/crewai-tools/tests/file_read_tool_test.py:324
Function
test_declared_relative_path_survives_chdir
The declared file is pinned at construction, not re-resolved per call.
lib/crewai-tools/tests/file_read_tool_test.py:265
Method
test_declared_route_labels_reach_the_router_catalog
(self)
lib/crewai/tests/test_flow_conversation.py:2495
Method
test_declared_sizes_over_the_cap_are_refused_unread
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:175
Method
test_declared_state_still_runs_a_turn
(self)
lib/crewai/tests/test_flow_conversation.py:2871
Method
test_declared_state_survives_on_both_paths
(self)
lib/crewai/tests/test_flow_conversation.py:3158
Function
test_declaring_the_conversational_block_opts_in_without_enabled
()
lib/crewai/tests/test_flow_definition.py:466
Function
test_declining_the_branch_reset_restores_the_catalog
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, calls: list[list[str]] )
lib/devtools/tests/test_release_catalog_phase.py:58
Function
test_decode_error_names_the_encoding
(tmp_path, monkeypatch)
lib/crewai-tools/tests/file_read_tool_test.py:439
Method
test_decorated_hook_executes_correctly
Test that decorated hook executes and modifies behavior.
lib/crewai/tests/hooks/test_decorators.py:72
Method
test_decorator_alone_defers_trace_finalization
(self)
lib/crewai/tests/test_flow_conversation.py:2320
Method
test_decorator_alone_enables_conversational_mode
(self)
lib/crewai/tests/test_flow_conversation.py:2278
Method
test_decorator_alone_registers_the_builtin_methods
(self)
lib/crewai/tests/test_flow_conversation.py:2292
Method
test_decorator_alone_runs_a_turn
(self)
lib/crewai/tests/test_flow_conversation.py:2305
Method
test_decorator_and_manual_registration_work_together
Test that decorators and manual registration can be mixed.
lib/crewai/tests/hooks/test_decorators.py:335
Method
test_decorator_does_not_leak_the_flag_onto_other_flows
(self)
lib/crewai/tests/test_flow_conversation.py:2349
Method
test_decorator_preserves_function_name
Test that @on_signal preserves function metadata.
lib/crewai/tests/events/types/test_system_events.py:167
Method
test_decorator_registers_for_all_signals
Test that @on_signal registers handler for all signal event types.
lib/crewai/tests/events/types/test_system_events.py:132
Method
test_decorator_returns_original_function
Test that @on_signal returns the original function.
lib/crewai/tests/events/types/test_system_events.py:158
Method
test_decorator_tool_does_not_infer_non_pydantic_return_annotation
( self, )
lib/crewai/tests/tools/test_base_tool.py:521
Method
test_decorator_tool_positional_args_still_work
Positional args to decorator tools should bypass validation.
lib/crewai/tests/tools/test_base_tool.py:356
Method
test_decorator_tool_run_rejects_missing_required
Decorator tools should reject missing required args via validation.
lib/crewai/tests/tools/test_base_tool.py:346
Method
test_decorator_tool_run_validates_kwargs
Decorator-created tools should also validate kwargs against schema.
lib/crewai/tests/tools/test_base_tool.py:336
Method
test_decorator_tools_return_raw_result_and_json_agent_text
( self, make_tool: Callable[[], BaseTool], expected_raw: object, expected_agen
lib/crewai/tests/tools/test_base_tool.py:506
Method
test_decorator_with_provider_parameter
Test that decorator accepts provider parameter.
lib/crewai/tests/test_async_human_feedback.py:878
Method
test_dedicated_config_dir_is_owner_only
(self)
lib/cli/tests/test_config.py:179
Method
test_deduplicates_equivalent_records
(self)
lib/crewai/tests/tools/test_tool_failure.py:1026
Method
test_deduplicates_slugs
( self, mock_fetch, mock_client_class, agent, mock_tool_definitions )
lib/crewai/tests/mcp/test_amp_mcp.py:366
Method
test_deepinfra_base_url_env_override
DEEPINFRA_BASE_URL redirects DeepInfra to a proxy or private endpoint.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:344
Method
test_deepinfra_config
Test DeepInfra provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:100
Method
test_deepinfra_missing_api_key_names_env_var
DeepInfra requires a key; the error tells the user which env var to set.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:174
Method
test_deepinfra_requires_an_org_and_a_model
DeepInfra references are exactly org/model: one slash, both parts present.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:410
Method
test_deeply_nested_chain_triggered_by
Deeply nested listener chains (5+) should maintain correct triggered_by.
lib/crewai/tests/events/test_event_ordering.py:1376
Function
test_deeply_nested_conditions
Test deeply nested AND/OR conditions to ensure proper evaluation.
lib/crewai/tests/test_flow.py:1556
Method
test_deepseek_config
Test DeepSeek provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:55
Function
test_deepseek_r1_with_open_router
()
lib/crewai/tests/test_llm.py:586
Method
test_default_agent_warns
No explicit policy anywhere still records the failure.
lib/crewai/tests/tools/test_tool_failure.py:400
Function
test_default_anthropic_completion_uses_sonnet_4_6_context_window
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:126
Method
test_default_api_is_completions
Default api should be 'completions' (existing behaviour).
lib/crewai/tests/llms/azure/test_azure_responses.py:83
Method
test_default_api_key_for_optional_providers
Test default API key is used for providers that don't require it.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:201
Method
test_default_async_not_implemented
Test that default async methods raise NotImplementedError.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:277
Function
test_default_attributes
()
lib/crewai-tools/tests/tools/brave_search_tool_test.py:112
Function
test_default_cache_function_is_true
()
lib/crewai-tools/tests/base_tool_test.py:91
Function
test_default_cache_function_is_true
()
lib/crewai/tests/tools/test_base_tool.py:109
Function
test_default_cache_function_restores_without_opt_in
()
lib/crewai/tests/tools/test_deserialization_guard.py:74
Function
test_default_callable_is_chromadbs_function_when_installed
( module, provider, chroma_module, chroma_class )
lib/crewai/tests/rag/embeddings/test_chromadb_optional_providers.py:148
Method
test_default_config
Test default configuration values.
lib/crewai-files/tests/test_resolver.py:30
Method
test_default_config
Test default configuration values.
lib/crewai-tools/tests/rag/test_embedding_service.py:15
Function
test_default_crew_name
(researcher, writer)
lib/crewai/tests/test_crew.py:5369
Method
test_default_does_not_enrich
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:682
Function
test_default_embedder_is_native_openai_function
(openai_mock)
lib/crewai/tests/memory/test_default_embedder.py:34
Function
test_default_falls_back_to_sqlite
()
lib/crewai/tests/test_flow_persistence_factory.py:37
Function
test_default_folder_gets_the_process_id_and_is_removed_at_exit
( tmp_path, monkeypatch )
lib/crewai/tests/rag/qdrant/test_local_client_sharing.py:150
Function
test_default_header_still_comes_from_the_environment
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/tools/test_weaviate_tool.py:43
Function
test_default_headers
()
lib/crewai-tools/tests/tools/brave_search_tool_test.py:139
Function
test_default_identity_is_closed_by_tool
Verify the tool closes credentials it creates for OIDC authentication.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:378
Function
test_default_initialization
(tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:30
Method
test_default_lineage_fields
(self)
lib/crewai/tests/test_checkpoint.py:230
Function
test_default_models_are_the_four_the_action_runs
()
lib/devtools/tests/test_agents_md_eval.py:276
Method
test_default_outcome_must_be_in_emit
Test that default_outcome must be one of the emit values.
lib/crewai/tests/test_human_feedback_decorator.py:77
Method
test_default_outcome_requires_emit
Test that specifying default_outcome without emit raises ValueError.
lib/crewai/tests/test_human_feedback_decorator.py:64
Method
test_default_outcome_routes_correctly
Test that default_outcome routes when no feedback provided.
lib/crewai/tests/test_human_feedback_integration.py:65
Method
test_default_packages_cover_all_workspace_members
Every workspace member must be in the default rewrite list. Without this, a version bump silently leaves stale pins behind for any wo
lib/devtools/tests/test_toml_updates.py:428
Function
test_default_provider_is_qdrant
()
lib/crewai/tests/knowledge/test_knowledge_storage_providers.py:62
Function
test_default_provider_is_qdrant_with_the_default_embedder
(created_config)
lib/crewai-tools/tests/tools/rag/test_rag_tool_default_provider.py:32
Method
test_default_reason_is_tool_reported
(self)
lib/crewai/tests/tools/test_tool_failure.py:147
Method
test_default_reexecutes_identical_tool_calls
EPD-180: with no opt-in, both identical calls must really execute.
lib/crewai/tests/test_tool_cache_default.py:149
Function
test_default_target_uses_single_settings_snapshot
(mock_settings_class)
lib/crewai/tests/cli/test_plus_api.py:513
Method
test_default_threshold_keeps_result_above_it
(self, cosine_client)
lib/crewai/tests/rag/qdrant/test_client.py:822
Function
test_default_trust_remote_completion_status_is_false
Verify that default value of trust_remote_completion_status is False.
lib/crewai/tests/agents/test_a2a_trust_completion_status.py:147
Function
test_default_unlimited_usage
Test that tools have unlimited usage by default.
lib/crewai/tests/tools/test_tool_usage_limit.py:61
Function
test_default_uses_medium_complexity_model
Without a model, llm, or complexity level, the default (medium) is used.
lib/crewai-tools/tests/tools/test_vision_tool.py:70
Function
test_default_uses_registered_factory
()
lib/crewai/tests/test_flow_persistence_factory.py:30
Function
test_default_value_override
Test that persisted state values override class defaults.
lib/crewai/tests/test_flow_default_override.py:14
Method
test_default_values
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:141
Method
test_default_values
Test default values for OpenRouterProvider.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:102
Function
test_default_values_in_schema
Test handling of default values in schema
lib/crewai/tests/tools/test_structured_tool.py:303
Method
test_default_version
AgentCard should have default version 1.0.0.
lib/crewai/tests/a2a/utils/test_agent_card.py:222
Function
test_default_wizard_offers_no_gemini_model_new_accounts_cannot_use
With no key, `crewai create crew` shows the curated Gemini list, so it must hold only models a new account can call; the first is the default.
lib/cli/tests/test_constants.py:61
Method
test_defaults
(self)
lib/crewai/tests/test_checkpoint.py:194
Function
test_defaults_applied_through_run
overwrite/directory defaults come from the schema, not from _run kwargs.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:132
Function
test_defaults_satisfy_required_and_are_not_prompted
( tmp_path: Path, capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:315
Method
test_defaults_to_cli
(self, telemetry: tuple[Telemetry, MagicMock])
lib/crewai-core/tests/test_telemetry_deploy.py:48
Method
test_defaults_to_cli_and_keeps_the_uuid
( self, telemetry: tuple[Telemetry, MagicMock] )
lib/crewai-core/tests/test_telemetry_deploy.py:138
Method
test_defaults_to_completions_for_unknown_models
Nothing is assumed up front; the 404 is what teaches us.
lib/crewai/tests/llms/openai/test_responses_only_models.py:173
Method
test_defaults_to_cwd
When no base_dir is given, use cwd.
lib/crewai-tools/tests/utilities/test_safe_path.py:59
Method
test_defaults_to_http
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:81
Method
test_defaults_to_none
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:50
Method
test_defaults_to_warn
(self)
lib/crewai/tests/tools/test_tool_failure.py:175
Method
test_defer_trace_finalization_follows_the_class_config
Deferral is a behavior knob, so it follows the same precedence. The class config and the declaration can disagree on the hybrid path;
lib/crewai/tests/test_flow_conversation.py:3223
Method
test_defer_trace_finalization_skips_per_turn_finalize
``defer_trace_finalization = True`` suppresses per-turn ``finalize_batch``. Without deferral, each ``handle_turn()`` ends with a trace-batch
lib/crewai/tests/test_flow_conversation.py:1142
Method
test_deferred_conversation_emits_one_flow_started
Deferred conversational sessions emit one flow_started for the session.
lib/crewai/tests/test_flow_conversation.py:1173
Method
test_deferred_flow_kickoff_leaves_legacy_trace_manager_untouched
( self, )
lib/crewai/tests/test_flow_conversation.py:2044
Method
test_deferred_init_uses_ephemeral_and_skip_context_check
Deferred backend init always uses ephemeral=True and skip_context_check=True.
lib/crewai/tests/tracing/test_tracing.py:1263
Method
test_deferred_multi_turn_emits_single_flow_finished
A deferred multi-turn session lands as one trace: exactly one ``FlowFinishedEvent`` is emitted at ``finalize_session_traces()``, not o
lib/crewai/tests/test_flow_conversation.py:243
Method
test_deferred_reader_result_is_not_deferred_again
(self)
lib/crewai/tests/agents/test_agent_executor.py:2579
Method
test_deferred_reader_stays_callable_after_text_tool_downgrade
(self)
lib/crewai/tests/agents/test_agent_executor.py:2726
← previous
next →
13,001–13,100 of 19,735, ranked by callers