Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
Function
test_resumed_flow_is_reported
A restored run is only visible here - there is no resume event. Without it, a paused flow that was abandoned cannot be told apart from one th
lib/crewai/tests/telemetry/test_flow_telemetry.py:540
Function
test_resumed_is_recorded_as_a_string
A boolean is encoded as the presence of a key, not as a value. ``false`` arrives as the key simply being absent, which is invisible in the sc
lib/crewai/tests/telemetry/test_telemetry.py:479
Method
test_resumed_pydantic_output_arrives_as_a_dict
(self, mock_emit: MagicMock)
lib/crewai/tests/test_async_human_feedback.py:1739
Method
test_retries_on_5xx_then_succeeds
Retries on 500 server error, succeeds on second attempt.
lib/crewai/tests/tracing/test_tracing.py:1004
Method
test_retries_on_none_response_then_succeeds
Retries when API returns None, succeeds on second attempt.
lib/crewai/tests/tracing/test_tracing.py:972
Method
test_retries_on_responses_and_remembers_the_model
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_responses_only_models.py:82
Method
test_retries_on_the_async_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:275
Method
test_retries_on_the_async_streaming_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:308
Method
test_retries_on_the_streaming_path
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:291
Method
test_retries_with_none_and_succeeds
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:226
Method
test_retries_without_the_key_and_succeeds
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:257
Function
test_retrieve
()
lib/crewai/tests/utilities/test_i18n.py:23
Function
test_retrieve_not_found
()
lib/crewai/tests/utilities/test_i18n.py:29
Method
test_retry_after_a_failed_completion_offers_the_lessons_again
(self)
lib/crewai/tests/test_async_human_feedback.py:1694
Function
test_retry_after_reads_seconds_or_a_date_and_anything_else_waits_a_minute
(header, wait)
lib/cli/tests/experimental/test_eval_crew.py:774
Function
test_retry_after_waits_until_a_date_still_ahead
()
lib/cli/tests/experimental/test_eval_crew.py:779
Function
test_retry_is_admitted_by_the_rpm_limiter
( replies: tuple[Any, ...], admitted: int, use_async: bool )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:179
Method
test_retry_limit_does_not_swallow_the_abort
A deliberate stop must not be retried as a transient error.
lib/crewai/tests/tools/test_tool_failure.py:689
Function
test_retry_uses_exponential_backoff_when_no_retry_after
Without Retry-After, backoff is 2^attempt (1s, 2s, ...).
lib/crewai-tools/tests/tools/brave_search_tool_test.py:754
Method
test_return_value_replaces_payload
(self)
lib/crewai/tests/hooks/test_dispatch.py:60
Method
test_returns_agent_card
to_agent_card should return an AgentCard instance.
lib/crewai/tests/a2a/utils/test_agent_card.py:81
Method
test_returns_all_records_newest_first
(self, storage: StorageBackend)
lib/crewai/tests/memory/test_storage_backend_contract.py:178
Method
test_returns_all_tools_without_hash
(self, mock_schemas, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:523
Method
test_returns_body_content_type_and_final_url
The helper reports the body alongside where it ended up.
lib/crewai-tools/tests/url_read_tool_test.py:818
Method
test_returns_empty_for_nonexistent_tool
(self, mock_schemas, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:540
Method
test_returns_empty_on_http_error
(self, mock_get_token, mock_plus_api_class, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:155
Method
test_returns_empty_on_network_error
(self, mock_get_token, mock_plus_api_class, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:168
Method
test_returns_empty_when_no_token
(self, mock_get_token, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:180
Method
test_returns_false_for_missing_file
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:266
Method
test_returns_false_on_fetch_failure
Test that fetch failure returns not yanked.
lib/cli/tests/test_version.py:390
Method
test_returns_false_on_fetch_failure
Test that fetch failure returns not yanked.
lib/crewai/tests/cli/test_version.py:354
Method
test_returns_false_when_already_current
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:235
Method
test_returns_false_when_no_matching_event
(self)
lib/crewai/tests/events/test_event_context.py:223
Method
test_returns_false_when_no_project_section
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:247
Method
test_returns_false_when_no_runtime_state
(self)
lib/crewai/tests/events/test_event_context.py:212
Method
test_returns_false_when_version_is_dynamic
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:253
Function
test_returns_float32_vectors_in_input_order
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_embedding_function.py:34
Method
test_returns_highest_non_yanked
Test that the highest non-yanked version is returned.
lib/cli/tests/test_version.py:192
Method
test_returns_highest_non_yanked
Test that the highest non-yanked version is returned.
lib/crewai/tests/cli/test_version.py:156
Method
test_returns_none_for_invalid_image
Test that None is returned for invalid image data.
lib/crewai-files/tests/processing/test_transformers.py:316
Method
test_returns_none_for_invalid_pdf
Test that None is returned for invalid PDF data.
lib/crewai-files/tests/processing/test_transformers.py:356
Method
test_returns_none_when_absent
Nothing left to drop -- the retry must not loop.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:251
Method
test_returns_none_when_all_yanked
Test that None is returned when all versions are yanked.
lib/cli/tests/test_version.py:201
Method
test_returns_none_when_all_yanked
Test that None is returned when all versions are yanked.
lib/crewai/tests/cli/test_version.py:165
Method
test_returns_none_when_already_none
Nothing left to try -- the retry must not loop.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:218
Method
test_returns_none_when_no_current_task
Cancel returns None when context has no current_task.
lib/crewai/tests/a2a/utils/test_task.py:298
Function
test_returns_none_when_no_id_configured
(pyproject)
lib/crewai/tests/telemetry/test_project_id.py:36
Method
test_returns_none_without_pillow
Test that None is returned when Pillow is not installed.
lib/crewai-files/tests/processing/test_transformers.py:324
Method
test_returns_relative_path_inside_base
(self, tmp_path)
lib/crewai-tools/tests/utilities/test_safe_path.py:88
Method
test_returns_results_as_json
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:397
Method
test_returns_updated_task_when_current_task_exists
Cancel returns updated task when context has current_task.
lib/crewai/tests/a2a/utils/test_task.py:311
Method
test_returns_zero_when_no_calls_happen
(self)
lib/crewai/tests/test_flow_usage_metrics.py:233
Method
test_review_hook_keeps_original_on_enter
Test that pressing Enter keeps original result.
lib/crewai/tests/hooks/test_human_approval.py:308
Method
test_review_hook_modifies_result
Test that review hook can modify tool results.
lib/crewai/tests/hooks/test_human_approval.py:280
Function
test_revokes_an_artifact_alias
(tmp_path)
lib/crewai/tests/tools/agent_tools/test_deferred_tool_result_reader.py:22
Method
test_rewrites_all_workspace_pins
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:449
Method
test_rewrites_openapi_refs_to_snapshot_yaml
(self, tmp_path: Path)
lib/devtools/tests/test_docs_versioning.py:115
Method
test_rewrites_stale_per_section_redirects_to_new_default
( self, tmp_path: Path )
lib/devtools/tests/test_docs_versioning.py:186
Function
test_role_with_special_characters_round_trips
(client)
lib/crewai/tests/rag/qdrant/test_collection_names.py:63
Function
test_root_config_without_pyproject
(tmp_path, monkeypatch)
lib/crewai/tests/project/test_agent_project.py:231
Method
test_root_empty_inner_value
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:118
Method
test_root_only_inner_none
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:106
Method
test_root_only_inner_slash
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:103
Method
test_root_only_returns_root
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:84
Method
test_root_path_with_query_does_not_double_slash
A root path alongside a query yields /v1, not //v1.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:148
Function
test_root_python_agent_without_package_directory
(data_project)
lib/crewai/tests/project/test_agent_project.py:221
Method
test_root_scope_with_root_inner_scope
When inner scope is '/', result is just the root_scope.
lib/crewai/tests/memory/test_memory_root_scope.py:357
Method
test_root_with_trailing_slash
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:100
Method
test_roots_multiple
(self)
lib/crewai/tests/test_event_record.py:249
Method
test_roots_single_root
(self)
lib/crewai/tests/test_event_record.py:243
Method
test_round_trips_all_fields
(self, storage: StorageBackend)
lib/crewai/tests/memory/test_storage_backend_contract.py:101
Method
test_round_trips_through_str
(self)
lib/crewai/tests/skills/test_registry.py:179
Method
test_roundtrip_preserves_edge_symmetry
(self)
lib/crewai/tests/test_event_record.py:301
Method
test_roundtrip_preserves_event_data
(self)
lib/crewai/tests/test_event_record.py:310
Method
test_roundtrip_serialization
Test that to_dict/from_dict roundtrips correctly.
lib/crewai/tests/test_async_human_feedback.py:124
Method
test_roundtrip_serialization
Test events can be serialized and deserialized.
lib/crewai/tests/events/types/test_system_events.py:190
Method
test_roundtrippable_callable_no_warning
( self, fn: Callable[..., Any], recwarn: pytest.WarningsChecker )
lib/crewai/tests/test_callback.py:143
Method
test_route_by_answer_type_action
Test routing for AgentAction.
lib/crewai/tests/agents/test_agent_executor.py:454
Method
test_route_by_answer_type_finish
Test routing for AgentFinish.
lib/crewai/tests/agents/test_agent_executor.py:464
Method
test_route_catalog_combines_docstrings_builtins_and_overrides
Catalog precedence: route_descriptions > built-in > docstring.
lib/crewai/tests/test_flow_conversation.py:864
Method
test_route_catalog_falls_back_to_empty_when_no_docstring
(self)
lib/crewai/tests/test_flow_conversation.py:895
Function
test_route_confidence_is_never_used_as_noul
()
lib/crewai/tests/test_jev_evaluation_runner.py:323
Method
test_route_event_uses_no_message_index_for_empty_transcript
Route events do not reference index zero when no message exists.
lib/crewai/tests/test_flow_conversation.py:1351
Method
test_route_label_output_is_not_promoted
(self)
lib/crewai/tests/test_flow_conversation.py:3726
Method
test_router_and_non_router_listeners_for_same_outcome
Test that both router and non-router listeners fire for the same outcome.
lib/crewai/tests/test_human_feedback_integration.py:447
Method
test_router_auto_enable_skipped_when_default_intents_set
Legacy ``default_intents`` opts out of router auto-enable.
lib/crewai/tests/test_flow_conversation.py:679
Method
test_router_auto_enable_skipped_when_only_builtin_routes
No custom routes → no auto-enable; falls through to converse.
lib/crewai/tests/test_flow_conversation.py:662
Method
test_router_auto_enables_when_custom_routes_declared_and_no_explicit_config
``ConversationConfig(llm=...)`` alone wires LLM routing for custom listeners. Users shouldn't have to pass ``router=RouterConfig()`` just to
lib/crewai/tests/test_flow_conversation.py:630
Function
test_router_cascade_chain
Test a chain of routers where each router triggers the next.
lib/crewai/tests/test_flow.py:1339
Function
test_router_compacts_single_context_payload_before_selecting_route
()
lib/crewai/tests/test_flow_context_compaction.py:235
Method
test_router_conditional_path_triggered_by
Router with conditional paths should have correct triggered_by for the selected path.
lib/crewai/tests/events/test_event_ordering.py:1443
Method
test_router_config_falls_back_for_invalid_intent
(self)
lib/crewai/tests/test_flow_conversation.py:398
Method
test_router_config_uses_conversational_defaults
(self)
lib/crewai/tests/test_flow_conversation.py:479
Method
test_router_config_uses_structured_intent_response
(self)
lib/crewai/tests/test_flow_conversation.py:362
Method
test_router_decision_persists_last_intent_and_passes_it_next_turn
Router must record its decision so the next turn's router LLM sees it.
lib/crewai/tests/test_flow_conversation.py:940
Method
test_router_effective_routes_include_builtins
(self)
lib/crewai/tests/test_flow_conversation.py:432
Function
test_router_events_not_in_and_conditions
Test that router events don't create edges to AND-nested conditions.
lib/crewai/tests/test_flow_visualization.py:450
Function
test_router_events_to_string_conditions
Test that router events correctly connect to listeners with string conditions.
lib/crewai/tests/test_flow_visualization.py:397
Function
test_router_falsy_result_emits_runtime_event
()
lib/crewai/tests/test_flow.py:437
Function
test_router_human_feedback_preserves_existing_router_metadata
()
lib/crewai/tests/test_flow_definition.py:1226
← previous
next →
17,401–17,500 of 19,482, ranked by callers