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
Function
test_timeout_handling_llm
Test a custom LLM implementation with timeout handling and retry logic.
lib/crewai/tests/test_custom_llm.py:359
Function
test_timeout_is_raised_at_the_deadline
The timeout error must not wait for the runaway worker to finish.
lib/crewai/tests/agents/test_agent_execution_timeout.py:13
Function
test_timeout_is_reported_as_retryable
(tool_class: type[BaseTool])
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:318
Function
test_timeout_raises_runtime_error
(mock_get, web_tool)
lib/crewai-tools/tests/tools/brave_search_tool_test.py:482
Method
test_timeout_wrapper_preserves_the_error_type
max_execution_time wraps failures in RuntimeError; not this one.
lib/crewai/tests/tools/test_tool_failure.py:673
Method
test_title_rows_above_the_header_are_skipped
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:580
Method
test_to_config_dict_includes_responses_fields
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:342
Method
test_to_config_dict_omits_api_for_completions
(self)
lib/crewai/tests/llms/azure/test_azure_responses.py:357
Method
test_to_dict_serialization
Test serializing context to dictionary.
lib/crewai/tests/test_async_human_feedback.py:77
Method
test_todo_item_auto_generates_unique_ids
Test that each TodoItem gets a unique auto-generated ID.
lib/crewai/tests/utilities/test_planning_types.py:129
Method
test_todo_item_serialization
Test TodoItem can be serialized to dict.
lib/crewai/tests/utilities/test_planning_types.py:136
Method
test_todo_item_status_values
Test all valid status values.
lib/crewai/tests/utilities/test_planning_types.py:119
Method
test_todo_item_with_all_fields
Test TodoItem creation with all fields.
lib/crewai/tests/utilities/test_planning_types.py:99
Method
test_todo_item_with_required_fields
Test TodoItem creation with only required fields.
lib/crewai/tests/utilities/test_planning_types.py:82
Method
test_todo_list_workflow
Test a complete workflow through TodoList.
lib/crewai/tests/utilities/test_planning_types.py:280
Method
test_todo_step_answer_is_not_requested_in_the_response_model
A step result is not the task's answer, so it keeps its text.
lib/crewai/tests/agents/test_agent_executor.py:565
Function
test_token_callback_counts_dictionary_and_object_usage
( as_dict: bool, cached_tokens: int )
lib/crewai/tests/utilities/test_token_counter_callback.py:13
Function
test_token_callback_skips_missing_usage
(usage: Any)
lib/crewai/tests/utilities/test_token_counter_callback.py:37
Function
test_token_callback_without_token_process
()
lib/crewai/tests/utilities/test_token_counter_callback.py:45
Function
test_token_usage_still_tracked_on_happy_path
with_raw_response must not cost us usage accounting.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:328
Method
test_too_long_raises
(self)
lib/crewai/tests/skills/test_validation.py:48
Method
test_too_many_members_are_refused
(self, monkeypatch)
lib/crewai-files/tests/spreadsheets/test_reading.py:189
Function
test_tool
A test tool.
lib/crewai/tests/tools/test_tool_usage_limit.py:49
Function
test_tool_action_interpolates_adjacent_expressions
()
lib/crewai/tests/test_flow_from_definition.py:792
Function
test_tool_action_interpolates_cel_string_literals
()
lib/crewai/tests/test_flow_from_definition.py:742
Function
test_tool_action_interpolates_expression_with_surrounding_text
()
lib/crewai/tests/test_flow_from_definition.py:766
Function
test_tool_action_interpolates_multiple_expressions_with_literals
()
lib/crewai/tests/test_flow_from_definition.py:816
Function
test_tool_action_interpolates_non_string_values_as_json
()
lib/crewai/tests/test_flow_from_definition.py:842
Function
test_tool_action_interpolates_null_as_empty_string
()
lib/crewai/tests/test_flow_from_definition.py:871
Function
test_tool_action_interpolates_object_literal_fields
()
lib/crewai/tests/test_flow_from_definition.py:897
Function
test_tool_action_interpolates_values_inside_list_inputs
()
lib/crewai/tests/test_flow_from_definition.py:1075
Function
test_tool_action_keeps_plain_dollar_signs_literal
()
lib/crewai/tests/test_flow_from_definition.py:921
Function
test_tool_action_platform_ref_requires_action
()
lib/crewai/tests/test_flow_from_definition.py:3392
Function
test_tool_action_platform_ref_with_no_tools_names_ref
()
lib/crewai/tests/test_flow_from_definition.py:3402
Function
test_tool_action_preserves_type_for_object_literal_expression
()
lib/crewai/tests/test_flow_from_definition.py:979
Function
test_tool_action_preserves_whole_expression_value_types
()
lib/crewai/tests/test_flow_from_definition.py:1052
Function
test_tool_action_raises_when_tool_reports_failure
()
lib/crewai/tests/test_flow_from_definition.py:3430
Function
test_tool_action_rejects_invalid_interpolated_inputs
( search_query: str, error: str, )
lib/crewai/tests/test_flow_from_definition.py:953
Function
test_tool_action_renders_cel_inputs_at_runtime
()
lib/crewai/tests/test_flow_from_definition.py:717
Function
test_tool_action_renders_interpolated_inputs
()
lib/crewai/tests/test_flow_from_definition.py:1106
Function
test_tool_action_renders_latest_output_by_method_name
()
lib/crewai/tests/test_flow_from_definition.py:1003
Function
test_tool_action_reports_invalid_cel_expression
()
lib/crewai/tests/test_flow_from_definition.py:2287
Function
test_tool_action_requires_module_qualname_ref
()
lib/crewai/tests/test_flow_from_definition.py:3324
Function
test_tool_action_round_trips_with_inputs
()
lib/crewai/tests/test_flow_from_definition.py:691
Function
test_tool_action_runs_platform_action
(selector: str)
lib/crewai/tests/test_flow_from_definition.py:3376
Function
test_tool_action_usage_budget_resets_between_kickoffs
()
lib/crewai/tests/test_flow_tool_action_usage.py:53
Function
test_tool_action_usage_budget_still_enforced_within_a_kickoff
()
lib/crewai/tests/test_flow_tool_action_usage.py:63
Function
test_tool_action_uses_state_and_outputs_in_full_yaml_example
()
lib/crewai/tests/test_flow_from_definition.py:1027
Function
test_tool_adapted_fails_without_required_methods
Test that BaseToolAdapter fails without required methods.
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:91
Function
test_tool_add_appends_tools_and_sets_up_platform_apps
( fmt: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, platform_setup: list[list[str]],
lib/cli/tests/test_agent_tools.py:49
Function
test_tool_add_explains_python_agents_are_edited_in_code
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:171
Function
test_tool_add_leaves_definition_untouched_when_platform_setup_is_cancelled
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:96
Function
test_tool_add_needs_tool_names_outside_a_terminal
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:147
Function
test_tool_add_opens_the_picker_without_tool_names
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, platform_setup: list[list[str]] )
lib/cli/tests/test_agent_tools.py:158
Function
test_tool_add_rejects_unknown_platform_references
( reference: str, message: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:119
Function
test_tool_add_reports_unparseable_definitions
( fmt: str, content: str, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:135
Function
test_tool_add_requires_an_agent_project
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_agent_tools.py:182
Function
test_tool_add_skips_tools_already_in_the_definition
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, platform_setup: list[list[str]] )
lib/cli/tests/test_agent_tools.py:80
Method
test_tool_call_event_accumulates_arguments
Test that tool call events accumulate arguments progressively.
lib/crewai/tests/llms/test_tool_call_streaming.py:113
Method
test_tool_call_events_have_consistent_tool_id
Test that all events for the same tool call have the same tool ID.
lib/crewai/tests/llms/test_tool_call_streaming.py:138
Function
test_tool_call_turn_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:129
Function
test_tool_calls_still_returned_to_the_caller
The tool-call branch reads `.choices` too and must be unaffected.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:338
Method
test_tool_conversation_produces_valid_input
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:196
Function
test_tool_create_is_deprecated_and_still_works
(mock_tool_command_cls, runner)
lib/cli/tests/test_create_unified.py:26
Method
test_tool_creation_with_connection_params
Test tool creation with individual connection parameters.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:97
Method
test_tool_creation_with_connection_url
Test tool creation with connection URL.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:126
Method
test_tool_creation_with_empty_database
Test tool creation fails with empty database.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:154
Method
test_tool_creation_with_nonexistent_table
Test tool creation fails with non-existent table.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:144
Method
test_tool_creation_with_specific_tables
Test tool creation with specific table list.
lib/crewai-tools/tests/tools/singlestore_search_tool_test.py:133
Function
test_tool_decorator_with_usage_limit
Test usage limit with @tool decorator.
lib/crewai/tests/tools/test_tool_usage_limit.py:46
Function
test_tool_defaults_survive_the_per_call_schema
Configured defaults must reach the client when the call omits them.
lib/crewai-tools/tests/tools/test_tavily_research_tool.py:23
Method
test_tool_defaults_to_inherit
(self)
lib/crewai/tests/tools/test_tool_failure.py:319
Method
test_tool_description
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:681
Function
test_tool_error_does_not_emit_finished_event
()
lib/crewai/tests/tools/test_tool_usage.py:836
Function
test_tool_event_names_task_and_agent
(store)
lib/crewai/tests/test_artifacts.py:228
Function
test_tool_event_step_metadata_is_stored_in_activity_log
()
lib/cli/tests/test_crew_run_tui.py:1498
Function
test_tool_execution
Test tool execution via _run method.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:202
Function
test_tool_execution_error_type_maps_authentication_failures
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:141
Function
test_tool_execution_error_type_maps_http_and_server_errors
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:157
Function
test_tool_execution_error_type_maps_timeout_and_validation
()
lib/crewai/tests/mcp/test_mcp_exceptions.py:148
Function
test_tool_execution_follow_up_turn_unchanged
Tool result -> follow-up completion, the path after a tool executes.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:348
Function
test_tool_execution_results_are_immutable
( result: ToolExecutionSuccess | ToolExecutionFailure, field: str, value: Any, )
lib/crewai-tools/tests/tools/crewai_platform_tools/test_integrations_client.py:587
Function
test_tool_execution_with_text_response
Test tool execution with plain text response.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:316
Function
test_tool_failure_does_not_override_successful_plan_step_completion
()
lib/cli/tests/test_crew_run_tui.py:1451
Function
test_tool_fallback_after_tool_calls_still_forces_the_structured_output_tool
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:2394
Function
test_tool_fallback_still_used_for_models_without_native_support
Models outside the supported set keep the forced-tool-call behavior.
lib/crewai/tests/llms/anthropic/test_anthropic.py:2138
Method
test_tool_filter_skips_non_matching_tools
(self)
lib/crewai/tests/hooks/test_dispatch.py:122
Method
test_tool_filter_with_hash_syntax
( self, mock_fetch, mock_client_class, agent, mock_tool_definitions )
lib/crewai/tests/mcp/test_amp_mcp.py:247
Method
test_tool_filter_with_hyphenated_hash_syntax
notion#get-page must match the tool whose sanitized name is get_page.
lib/crewai/tests/mcp/test_amp_mcp.py:318
Function
test_tool_info_is_immutable
()
lib/crewai-tools/tests/tools/crewai_platform_tools/test_integrations_client.py:561
Function
test_tool_initialization
(tool_class: type[BaseTool])
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:89
Function
test_tool_initialization
(mocked_chrome)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:31
Function
test_tool_initialization
Test basic tool initialization.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:83
Function
test_tool_initialization_failure
(tool_class: type[BaseTool])
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:123
Function
test_tool_initialization_with_custom_base_url
Test tool initialization with custom base URL.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:102
Function
test_tool_initialization_with_env_vars
(tool_class: type[BaseTool])
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:103
Function
test_tool_initialization_with_options
(mocked_chrome)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:50
Method
test_tool_input_is_mutable_reference
Test that modifying context.tool_input modifies the original dict.
lib/crewai/tests/hooks/test_tool_hooks.py:113
Function
test_tool_invocation
( tool_class: type[BaseTool], tool_config: BaseModel, oxylabs_api: RealtimeClient, )
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:150
Function
test_tool_is_discoverable_without_instantiation
Verify public exports and tool metadata without opening connections.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:57
← previous
next →
18,701–18,800 of 19,663, ranked by callers