MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,264 in github.com/crewAIInc/crewAI

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:1339
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:437
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:359
Functiontest_router_self_listening_method_is_rejected
()
lib/crewai/tests/test_flow.py:2183
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:607
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
Functiontest_run_declarative_flow_loads_project_env
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:372
Functiontest_run_declarative_flow_opens_the_conversational_tui
A declarative chat flow gets the same TUI a Python one does.
lib/cli/tests/test_run_declarative_flow.py:688
Functiontest_run_declarative_flow_reads_definition_file
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:39
Functiontest_run_declarative_flow_rejects_non_object_inputs
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:52
Functiontest_run_declarative_flow_reports_empty_file
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:78
Functiontest_run_declarative_flow_reports_missing_file
( capsys: pytest.CaptureFixture[str], )
lib/cli/tests/test_run_declarative_flow.py:66
Functiontest_run_declarative_flow_still_runs_a_disabled_conversational_flow
( tmp_path: Path, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_run_declarative_flow.py:842
Functiontest_run_declarative_flow_tui_chains_deploy
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:520
Functiontest_run_declarative_flow_tui_enables_flow_events
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:601
Functiontest_run_declarative_flow_tui_failed_exits_nonzero
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:493
Functiontest_run_declarative_flow_tui_leaves_the_report_link_behind
A declarative flow evaluates inside the app like a crew does. What the terminal is for is afterwards: the link, once the screen that held it is
lib/cli/tests/test_run_declarative_flow.py:573
Functiontest_run_declarative_flow_tui_no_deploy_when_not_requested
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:557
Functiontest_run_declarative_flow_tui_user_quit_exits_130
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_run_declarative_flow.py:506
Methodtest_run_denied_query
Test that denied queries return appropriate error message.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:281
Functiontest_run_does_not_call_asyncio_run_for_sync_tools
Test that asyncio.run is NOT called when using sync tools.
lib/crewai/tests/tools/test_base_tool.py:199
Methodtest_run_does_not_increment_usage_on_validation_error
Usage count should NOT increment when validation fails.
lib/crewai/tests/tools/test_base_tool.py:324
Methodtest_run_empty_result
Test executing a query that returns no results.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:265
Methodtest_run_file_not_found
Test _run returns message when file not found.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:35
Methodtest_run_filtered_query
Test executing a filtered SELECT query.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:242
Functiontest_run_handles_exception
(mock_urlopen)
lib/crewai-tools/tests/tools/arxiv_paper_tool_test.py:97
Functiontest_run_http_error
(mock_post)
lib/crewai-tools/tests/tools/brightdata_webunlocker_tool_test.py:48
Methodtest_run_increments_usage_after_validation
Usage count should still increment after validated execution.
lib/crewai/tests/tools/test_base_tool.py:317
← previousnext →17,301–17,400 of 19,264, ranked by callers