MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

Methodtest_returns_zero_when_no_calls_happen
(self)
lib/crewai/tests/test_flow_usage_metrics.py:233
Methodtest_review_hook_keeps_original_on_enter
Test that pressing Enter keeps original result.
lib/crewai/tests/hooks/test_human_approval.py:308
Methodtest_review_hook_modifies_result
Test that review hook can modify tool results.
lib/crewai/tests/hooks/test_human_approval.py:280
Functiontest_revokes_an_artifact_alias
(tmp_path)
lib/crewai/tests/tools/agent_tools/test_deferred_tool_result_reader.py:22
Methodtest_rewrites_all_workspace_pins
(self, tmp_path: Path)
lib/devtools/tests/test_toml_updates.py:449
Methodtest_rewrites_openapi_refs_to_snapshot_yaml
(self, tmp_path: Path)
lib/devtools/tests/test_docs_versioning.py:115
Methodtest_rewrites_stale_per_section_redirects_to_new_default
( self, tmp_path: Path )
lib/devtools/tests/test_docs_versioning.py:186
Functiontest_role_with_special_characters_round_trips
(client)
lib/crewai/tests/rag/qdrant/test_collection_names.py:63
Functiontest_root_config_without_pyproject
(tmp_path, monkeypatch)
lib/crewai/tests/project/test_agent_project.py:231
Methodtest_root_empty_inner_value
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:118
Methodtest_root_only_inner_none
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:106
Methodtest_root_only_inner_slash
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:103
Methodtest_root_only_returns_root
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:84
Methodtest_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
Functiontest_root_python_agent_without_package_directory
(data_project)
lib/crewai/tests/project/test_agent_project.py:221
Methodtest_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
Methodtest_root_with_trailing_slash
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:100
Methodtest_roots_multiple
(self)
lib/crewai/tests/test_event_record.py:249
Methodtest_roots_single_root
(self)
lib/crewai/tests/test_event_record.py:243
Methodtest_round_trips_all_fields
(self, storage: StorageBackend)
lib/crewai/tests/memory/test_storage_backend_contract.py:101
Methodtest_round_trips_through_str
(self)
lib/crewai/tests/skills/test_registry.py:179
Methodtest_roundtrip_preserves_edge_symmetry
(self)
lib/crewai/tests/test_event_record.py:301
Methodtest_roundtrip_preserves_event_data
(self)
lib/crewai/tests/test_event_record.py:310
Methodtest_roundtrip_serialization
Test that to_dict/from_dict roundtrips correctly.
lib/crewai/tests/test_async_human_feedback.py:124
Methodtest_roundtrip_serialization
Test events can be serialized and deserialized.
lib/crewai/tests/events/types/test_system_events.py:190
Methodtest_roundtrippable_callable_no_warning
( self, fn: Callable[..., Any], recwarn: pytest.WarningsChecker )
lib/crewai/tests/test_callback.py:143
Methodtest_route_by_answer_type_action
Test routing for AgentAction.
lib/crewai/tests/agents/test_agent_executor.py:454
Methodtest_route_by_answer_type_finish
Test routing for AgentFinish.
lib/crewai/tests/agents/test_agent_executor.py:464
Methodtest_route_catalog_combines_docstrings_builtins_and_overrides
Catalog precedence: route_descriptions > built-in > docstring.
lib/crewai/tests/test_flow_conversation.py:864
Methodtest_route_catalog_falls_back_to_empty_when_no_docstring
(self)
lib/crewai/tests/test_flow_conversation.py:895
Functiontest_route_confidence_is_never_used_as_noul
()
lib/crewai/tests/test_jev_evaluation_runner.py:323
Methodtest_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
Methodtest_route_label_output_is_not_promoted
(self)
lib/crewai/tests/test_flow_conversation.py:3726
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_router_cascade_chain
Test a chain of routers where each router triggers the next.
lib/crewai/tests/test_flow.py:1340
Functiontest_router_compacts_single_context_payload_before_selecting_route
()
lib/crewai/tests/test_flow_context_compaction.py:235
Methodtest_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
Methodtest_router_config_falls_back_for_invalid_intent
(self)
lib/crewai/tests/test_flow_conversation.py:398
Methodtest_router_config_uses_conversational_defaults
(self)
lib/crewai/tests/test_flow_conversation.py:479
Methodtest_router_config_uses_structured_intent_response
(self)
lib/crewai/tests/test_flow_conversation.py:362
Methodtest_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
Methodtest_router_effective_routes_include_builtins
(self)
lib/crewai/tests/test_flow_conversation.py:432
Functiontest_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
Functiontest_router_events_to_string_conditions
Test that router events correctly connect to listeners with string conditions.
lib/crewai/tests/test_flow_visualization.py:397
Functiontest_router_falsy_result_emits_runtime_event
()
lib/crewai/tests/test_flow.py:438
Functiontest_router_human_feedback_preserves_existing_router_metadata
()
lib/crewai/tests/test_flow_definition.py:1226
Methodtest_router_infers_custom_routes_without_internal_routes
(self)
lib/crewai/tests/test_flow_conversation.py:456
Functiontest_router_label_parity_for_each_branch
()
lib/crewai/tests/test_flow_from_definition.py:581
Methodtest_router_messages_include_route_catalog
The router system prompt must enumerate routes with descriptions.
lib/crewai/tests/test_flow_conversation.py:907
Functiontest_router_node_has_correct_metadata
Test that router nodes have correct type and event metadata.
lib/crewai/tests/test_flow_visualization.py:297
Methodtest_router_response_format_takes_a_python_ref_not_a_module_ref
The contract declares the same `{"python": ...}` shape crews use. A bare `module:qualname` ref used to be accepted and silently dropped;
lib/crewai/tests/test_flow_conversation.py:2547
Functiontest_router_runtime_uses_flow_definition_without_legacy_router_metadata
()
lib/crewai/tests/test_flow.py:360
Functiontest_router_self_listening_method_is_rejected
()
lib/crewai/tests/test_flow.py:2251
Functiontest_router_start_false_without_listen_is_allowed
(caplog)
lib/crewai/tests/test_flow_definition.py:1205
Methodtest_router_triggered_by
Events from router-triggered paths should have correct triggered_by_event_id.
lib/crewai/tests/events/test_event_ordering.py:896
Functiontest_router_with_multiple_conditions
Test a router that triggers when any of multiple steps complete (OR condition), and another router that triggers only after all specified steps co
lib/crewai/tests/test_flow.py:608
Functiontest_routers_with_shared_output_strings
Test that routers with shared output strings don't create incorrect edges. This tests a scenario where multiple routers can output the same strin
lib/crewai/tests/test_flow_visualization.py:580
Methodtest_routes_to_ephemeral_endpoint_when_ephemeral
Ephemeral batches must use mark_ephemeral_trace_batch_as_failed.
lib/crewai/tests/tracing/test_tracing.py:1448
Methodtest_routes_to_matching_listener
Test that collapsed outcome routes to the matching @listen method.
lib/crewai/tests/test_human_feedback_integration.py:26
Methodtest_routes_to_non_ephemeral_endpoint_when_not_ephemeral
Non-ephemeral batches must use mark_trace_batch_as_failed.
lib/crewai/tests/tracing/test_tracing.py:1462
Methodtest_routing_still_works_with_downstream_listener
When @human_feedback has a downstream listener, routing still triggers the listener.
lib/crewai/tests/test_human_feedback_decorator.py:1200
Methodtest_rows_still_show_it
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:626
Functiontest_run_again_runs_the_crew_whatever_the_record_says
The run app's Evaluate on a run that was not traced: the project's last traced run is some other run, and grading it would answer the wrong press.
lib/cli/tests/experimental/test_eval_crew.py:3462
Functiontest_run_again_runs_the_run_the_person_pressed_evaluate_on
Its definition and inputs travel with it; a flow named by its definition needs no project around it.
lib/cli/tests/experimental/test_eval_crew.py:3724
Methodtest_run_binary_file_returns_base64
Test reading a binary file returns base64 encoded content.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:62
Functiontest_run_calls_asyncio_run_for_async_tools
Test that asyncio.run is called when using async tools.
lib/crewai/tests/tools/test_base_tool.py:187
Functiontest_run_chat_offers_json_crew_as_a_tool
( tmp_path: Path, project_env: pytest.MonkeyPatch )
lib/crewai/tests/cli/test_crew_chat.py:242
Functiontest_run_conversational_flow_tui_initializes_event_listener
(monkeypatch, options)
lib/cli/tests/test_kickoff_flow.py:150
Methodtest_run_converts_expected_failure
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:56
Functiontest_run_crew_conversational_flow_in_dmn_mode_exits_with_guidance
CREWAI_DMN counts as headless even when stdin is a terminal.
lib/cli/tests/test_run_crew.py:1665
Functiontest_run_crew_conversational_flow_without_terminal_exits_with_guidance
No stdin TTY (a coding agent, CI): the chat TUI would wait forever.
lib/cli/tests/test_run_crew.py:1646
Functiontest_run_crew_forwards_inputs_to_json_crew
(monkeypatch)
lib/cli/tests/test_run_crew.py:1154
Functiontest_run_crew_forwards_trained_agents_file_to_json_crews
crewai run -f must reach JSON crews, not only classic subprocess crews.
lib/cli/tests/test_run_crew.py:40
Functiontest_run_crew_inputs_kick_off_a_flow_bound_under_two_names
An alias such as `MyFlow = ContentFlow` is still one Flow class.
lib/cli/tests/test_run_crew.py:1537
Functiontest_run_crew_inputs_name_every_flow_when_main_defines_two
(python_flow_project)
lib/cli/tests/test_run_crew.py:1526
Functiontest_run_crew_inputs_need_a_kickoff_script
(python_flow_project)
lib/cli/tests/test_run_crew.py:1573
Functiontest_run_crew_inputs_refuse_a_conversational_flow
(python_flow_project)
lib/cli/tests/test_run_crew.py:1564
Functiontest_run_crew_inputs_rejected_for_classic_crew
(monkeypatch)
lib/cli/tests/test_run_crew.py:1220
Functiontest_run_crew_inputs_without_definition_resolves_configured_flow
(monkeypatch)
lib/cli/tests/test_run_crew.py:1241
Functiontest_run_crew_non_conversational_flow_without_terminal_still_runs_kickoff
The gate is for the chat TUI only; a plain Python flow stays headless-safe.
lib/cli/tests/test_run_crew.py:1681
Functiontest_run_crew_rejects_bad_python_flow_inputs_before_running
( monkeypatch, capsys, inputs, message )
lib/cli/tests/test_run_crew.py:1508
Functiontest_run_crew_rejects_filename_for_flow_project
(monkeypatch)
lib/cli/tests/test_run_crew.py:1773
Functiontest_run_crew_rejects_filename_with_explicit_definition
()
lib/cli/tests/test_run_crew.py:1267
Functiontest_run_crew_reruns_python_flow_inputs_inside_the_project_env
Outside the project env, `--inputs` re-runs `crewai run` there, as a declarative flow does, so the flow imports with the project's dependencies.
lib/cli/tests/test_run_crew.py:1472
Functiontest_run_crew_runs_classic_crew_project
(monkeypatch, capsys)
lib/cli/tests/test_run_crew.py:1295
Functiontest_run_crew_runs_configured_declarative_flow_project
( monkeypatch, tmp_path: Path, capsys )
lib/cli/tests/test_run_crew.py:1786
Functiontest_run_crew_runs_conversational_flow_tui
(monkeypatch, capsys)
lib/cli/tests/test_run_crew.py:1582
Functiontest_run_crew_runs_explicit_declarative_definition
(monkeypatch, capsys)
lib/cli/tests/test_run_crew.py:1277
Functiontest_run_crew_runs_python_flow_project
(monkeypatch, capsys)
lib/cli/tests/test_run_crew.py:1320
Methodtest_run_crew_with_payload_empty_payload
(self, mock_subprocess)
lib/cli/tests/triggers/test_main.py:163
Methodtest_run_crew_with_payload_failure
(self, mock_subprocess)
lib/cli/tests/triggers/test_main.py:155
Methodtest_run_crew_with_payload_success
(self, mock_subprocess)
lib/cli/tests/triggers/test_main.py:141
Functiontest_run_declarative_flow_dmn_uses_terminal
( tmp_path: Path, capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:452
Functiontest_run_declarative_flow_in_process_inside_uv
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str], )
lib/cli/tests/test_run_declarative_flow.py:150
Functiontest_run_declarative_flow_in_project_env_forwards_inputs
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
lib/cli/tests/test_run_declarative_flow.py:167
Functiontest_run_declarative_flow_in_project_env_uses_uv
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
lib/cli/tests/test_run_declarative_flow.py:115
Functiontest_run_declarative_flow_interactive_uses_tui
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:470
← previousnext →17,601–17,700 of 19,663, ranked by callers