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
Method
test_tool_metadata
Test tool has correct name and description.
lib/crewai/tests/tools/agent_tools/test_read_file_tool.py:25
Method
test_tool_name
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:677
Method
test_tool_name_uses_its_sanitized_identity
(self, mock_get)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:371
Method
test_tool_overrides_everything
(self)
lib/crewai/tests/tools/test_tool_failure.py:290
Function
test_tool_parameters_are_passed_in_request
Test that tool parameters are correctly included in the MCP request.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:393
Method
test_tool_policy_aborts_a_warn_agent_end_to_end
(self)
lib/crewai/tests/tools/test_tool_failure.py:460
Method
test_tool_policy_can_exempt_a_raising_agent
(self)
lib/crewai/tests/tools/test_tool_failure.py:476
Function
test_tool_refuses_files_in_the_shared_temp_dir
(store)
lib/crewai/tests/test_artifacts.py:871
Function
test_tool_refuses_files_outside_workdir
(store)
lib/crewai/tests/test_artifacts.py:83
Function
test_tool_refuses_text_for_file_kinds
(store, kind)
lib/crewai/tests/test_artifacts.py:579
Method
test_tool_reported_failures_do_print
(self)
lib/crewai/tests/tools/test_tool_failure.py:520
Function
test_tool_result_as_answer_is_the_final_answer_for_the_agent
Use a native tool result as the Crew's final answer without another LLM call.
lib/crewai/tests/agents/test_agent.py:703
Method
test_tool_result_becomes_function_call_output
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:118
Function
test_tool_result_equality_ignores_the_raw_result
()
lib/crewai/tests/tools/test_tool_failure.py:1863
Function
test_tool_result_keeps_an_explicit_none_raw_result
()
lib/crewai/tests/tools/test_tool_failure.py:1873
Method
test_tool_result_turn_goes_straight_to_responses
The turn after a tool runs pays no rejected chat call and keeps the result.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:517
Function
test_tool_run_method_passes_parameters
Test that parameters are passed when using the .run() method (how CrewAI calls it).
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:433
Function
test_tool_saves_file_and_returns_link
(store, tmp_path)
lib/crewai/tests/test_artifacts.py:66
Method
test_tool_schema_validation
Test that the tool schema validation works correctly.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:308
Function
test_tool_search_disabled_by_default
tool_search=None (default) should NOT inject anything.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1376
Function
test_tool_search_discovers_and_calls_tool
Tool search should discover the right tool and return a tool_use block.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1898
Function
test_tool_search_no_duplicate_when_manually_provided
If user passes a tool search tool manually, don't inject a duplicate.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1412
Function
test_tool_search_passthrough_preserves_tool_search_type
_convert_tools_for_interference should pass through tool search tools unchanged.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1449
Function
test_tool_search_regex_config
tool_search with regex config should use regex variant.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1330
Function
test_tool_search_saves_input_tokens
Tool search with deferred loading should use fewer input tokens than loading all tools.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1915
Function
test_tool_search_single_tool_skips_search_and_uses_auto_choice
With only 1 tool, tool_search is skipped (nothing to search) and tool_choice stays auto.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1478
Function
test_tool_search_true_injects_bm25_and_defer_loading
tool_search=True should inject bm25 tool search and defer all tools.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1281
Function
test_tool_search_via_llm_class
Verify tool_search param passes through LLM class correctly.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1553
Function
test_tool_selection_error_event_direct
Test tool selection error event emission directly from ToolUsage class.
lib/crewai/tests/tools/test_tool_usage.py:562
Function
test_tool_setup_validates_platform_apps_from_the_definition
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, platform_setup: list[list[str]] )
lib/cli/tests/test_agent_tools.py:193
Function
test_tool_setup_without_platform_apps_does_nothing
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, platform_setup: list[list[str]] )
lib/cli/tests/test_agent_tools.py:210
Method
test_tool_usage_accepts_and_stores_crew
(self)
lib/crewai/tests/tools/test_tool_failure.py:1149
Function
test_tool_usage_cache_callback_receives_raw_typed_output
()
lib/crewai/tests/tools/test_tool_usage.py:166
Function
test_tool_usage_events_do_not_advance_plan_steps
()
lib/cli/tests/test_crew_run_tui.py:956
Function
test_tool_usage_finished_event_with_cached_result
Test that ToolUsageFinishedEvent is emitted with correct result attributes when using cached result.
lib/crewai/tests/tools/test_tool_usage.py:764
Function
test_tool_usage_finished_event_with_result
Test that ToolUsageFinishedEvent is emitted with correct result attributes.
lib/crewai/tests/tools/test_tool_usage.py:692
Method
test_tool_usage_increments_after_successful_execution
Test that usage count increments after each successful native tool call.
lib/crewai/tests/agents/test_native_tool_calling.py:1082
Function
test_tool_usage_limit
Test that tools respect usage limits.
lib/crewai/tests/tools/test_tool_usage_limit.py:8
Function
test_tool_usage_render
()
lib/crewai/tests/tools/test_tool_usage.py:116
Function
test_tool_usage_returns_json_agent_text_for_typed_output
()
lib/crewai/tests/tools/test_tool_usage.py:144
Function
test_tool_usage_with_toolusage_class
Test that ToolUsage class correctly enforces usage limits.
lib/crewai/tests/tools/test_tool_usage_limit.py:109
Function
test_tool_validate_input_error_event
Test tool validation input error event emission from ToolUsage class.
lib/crewai/tests/tools/test_tool_usage.py:632
Function
test_tool_wiring
(tool_cls, expected_url, expected_params, expected_headers)
lib/crewai-tools/tests/tools/brave_search_tool_test.py:213
Method
test_tool_without_args_schema
Test converting a tool that doesn't have an args_schema.
lib/crewai/tests/utilities/test_agent_utils.py:567
Function
test_tools
()
lib/crewai/tests/utilities/test_i18n.py:17
Method
test_tools_available_but_none_used
(self, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:32
Method
test_tools_carry_the_slug_they_were_requested_by
( self, mock_fetch, mock_client_class, agent, mock_tool_definitions )
lib/crewai/tests/mcp/test_amp_mcp.py:273
Function
test_tools_emits_error_events
()
lib/crewai/tests/utilities/test_events.py:528
Function
test_tools_emits_finished_events
()
lib/crewai/tests/utilities/test_events.py:491
Method
test_tools_from_a_url_have_no_slug
( self, mock_client_class, agent, mock_tool_definitions )
lib/crewai/tests/mcp/test_amp_mcp.py:301
Function
test_tools_method
(tools_list)
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:61
Function
test_tools_method_empty
()
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:67
Function
test_tools_with_custom_caching
()
lib/crewai/tests/test_crew.py:2202
Function
test_top_level_empty_filter_still_means_no_filter
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:1499
Function
test_topological_path_counting
Test that topological path counting is accurate.
lib/crewai/tests/test_flow_visualization.py:368
Function
test_touch_records
(storage: QdrantEdgeStorage)
lib/crewai/tests/memory/test_qdrant_edge_storage.py:176
Method
test_trace_batch_id_cleared_on_exception
trace_batch_id must be None when the API call raises an exception.
lib/crewai/tests/tracing/test_tracing.py:886
Method
test_trace_batch_id_set_on_success
trace_batch_id must be set from the server response on success.
lib/crewai/tests/tracing/test_tracing.py:910
Method
test_trace_batch_marked_as_failed_on_finalize_error
Test that trace batch is marked as failed when finalization returns non-200 status
lib/crewai/tests/tracing/test_tracing.py:630
Method
test_trace_listener_collects_crew_events
Crew kickoff exports its event hierarchy through the session transport.
lib/crewai/tests/tracing/test_tracing.py:232
Method
test_trace_listener_disabled_when_env_false
Test that trace listener doesn't make HTTP calls when tracing is disabled
lib/crewai/tests/tracing/test_tracing.py:347
Method
test_trace_listener_ephemeral_batch
Unauthenticated kickoff uploads buffered spans only after consent.
lib/crewai/tests/tracing/test_tracing.py:441
Method
test_trace_listener_setup_correctly_for_crew
Test that trace listener is set up correctly when enabled
lib/crewai/tests/tracing/test_tracing.py:388
Method
test_trace_listener_setup_correctly_for_flow
Test that trace listener is set up correctly when enabled
lib/crewai/tests/tracing/test_tracing.py:418
Method
test_trace_listener_with_authenticated_user
Authenticated kickoff uses a grant without requesting upload consent.
lib/crewai/tests/tracing/test_tracing.py:458
Function
test_traces_status_shows_disabled_when_env_false_overrides_consent
( runner, tmp_path, monkeypatch )
lib/cli/tests/test_cli.py:991
Function
test_tracing_already_on_follows_the_run_gate
( tmp_path, monkeypatch, env_value, consented, already_on )
lib/cli/tests/experimental/test_eval_crew.py:4524
Function
test_tracing_already_on_lets_the_project_env_beat_a_shell_false
The run loads `.env` over the shell, so `.env` true with a shell false is traced: nobody is asked to turn on what is already on.
lib/cli/tests/experimental/test_eval_crew.py:4543
Function
test_tracing_asked_for_is_the_answer_and_the_run_is_not_asked_again
Turning tracing on IS consent. The prompt at the end of a run is for the first-time collection nobody asked for — not for a user who said collect
lib/crewai/tests/telemetry/test_deferred_trace_transitions.py:119
Function
test_tracing_asked_for_needs_no_modal
The user turned tracing on for this project; the modal would be the same question a second time.
lib/cli/tests/test_trace_consent_session.py:85
Function
test_tracing_asked_for_reads_the_declaration_but_keeps_the_other_guards
The ContextVar is set where the crew is CONSTRUCTED, not on the worker thread that later asks — but an app with nobody in front of it is still
lib/cli/tests/test_crew_run_tui.py:615
Function
test_tracing_controls_gate_execution_export
( monkeypatch, environment, override, enabled )
lib/crewai/tests/tracing/test_trace_enable_disable.py:40
Function
test_tracing_is_never_turned_on_toward_an_amp_the_command_does_not_trust
A project's crewai older than the handshake sends the saved login to the AMP its `.env` names whenever the run traces: toward an untrusted AMP the
lib/cli/tests/experimental/test_eval_crew.py:3823
Function
test_tracing_is_turned_on_and_said_once_only_when_nobody_had
With nobody at the terminal (a coding agent), the first evaluation infers the yes, turns tracing on for the project and says so; from then on
lib/cli/tests/experimental/test_eval_crew.py:3482
Function
test_tracing_preserves_flow_usage_metrics
(fail)
lib/crewai/tests/telemetry/test_event_trace_session.py:189
Method
test_trailing_hyphen_raises
(self)
lib/crewai/tests/skills/test_validation.py:60
Method
test_trailing_semicolon_allowed_single_statement
A single statement with a trailing semicolon should pass.
lib/crewai-tools/tests/tools/test_nl2sql_security.py:270
Method
test_trailing_slash_in_query_is_preserved
Only the path is stripped, so a query ending in / keeps that character.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:152
Method
test_trailing_slash_removed
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:75
Function
test_trailing_turns_survive_with_the_system_prompt_disabled
The combined-prompt branch needs the same after-request placement.
lib/crewai/tests/agents/test_agent_kickoff_message_history.py:252
Function
test_train_command_exits_with_the_script_exit_code
( mock_subprocess_run, tmp_path, monkeypatch )
lib/cli/tests/test_train_crew.py:125
Function
test_train_command_exits_zero_when_the_script_succeeds
( mock_subprocess_run, tmp_path, monkeypatch )
lib/cli/tests/test_train_crew.py:140
Function
test_train_crew_called_process_error
(mock_subprocess_run, click)
lib/cli/tests/test_train_crew.py:63
Function
test_train_crew_exits_with_the_script_exit_code
(mock_subprocess_run)
lib/cli/tests/test_train_crew.py:113
Function
test_train_crew_invalid_filename
(mock_subprocess_run)
lib/cli/tests/test_train_crew.py:53
Function
test_train_crew_negative_iterations
(mock_subprocess_run)
lib/cli/tests/test_train_crew.py:43
Function
test_train_crew_positive_iterations
(mock_subprocess_run)
lib/cli/tests/test_train_crew.py:13
Function
test_train_crew_unexpected_exception
(mock_subprocess_run, click)
lib/cli/tests/test_train_crew.py:94
Function
test_train_crew_zero_iterations
(mock_subprocess_run)
lib/cli/tests/test_train_crew.py:33
Function
test_train_custom_iterations
(train_crew, runner)
lib/cli/tests/test_cli.py:54
Function
test_train_custom_iterations_snake_case_alias
(train_crew, runner)
lib/cli/tests/test_cli.py:63
Function
test_train_default_iterations
(train_crew, runner)
lib/cli/tests/test_cli.py:45
Function
test_train_help_hides_legacy_flag_aliases
(runner)
lib/cli/tests/test_cli.py:165
Function
test_train_invalid_string_iterations
(train_crew, runner)
lib/cli/tests/test_cli.py:76
Function
test_training_converter_fallback_mechanism
( convert_field_by_field_mock, to_pydantic_mock )
lib/crewai/tests/utilities/evaluators/test_task_evaluator.py:69
Method
test_training_mode_human_input
Test human input in training mode.
lib/crewai/tests/test_flow_human_input_integration.py:114
Method
test_transport_instantiation
Test that transport can be instantiated with interceptor.
lib/crewai/tests/llms/hooks/test_transport.py:78
Method
test_transport_requires_interceptor
Test that transport requires interceptor parameter.
lib/crewai/tests/llms/hooks/test_transport.py:85
Function
test_tree_copy_full_structure
(temp_tree)
lib/cli/tests/test_utils.py:69
Function
test_tree_copy_preserve_content
(temp_tree)
lib/cli/tests/test_utils.py:83
← previous
next →
18,801–18,900 of 19,663, ranked by callers