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
Method
test_ask_with_structured_state
ask() works with Pydantic-based flow state.
lib/crewai/tests/test_flow_ask.py:685
Method
test_ask_works_with_listen_chain
ask() in a start method, result flows to listener.
lib/crewai/tests/test_flow_ask.py:662
Function
test_assert_safe_peer_allows_public
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:440
Function
test_assert_safe_peer_blocks_metadata
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:435
Function
test_assert_safe_peer_blocks_private
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:430
Function
test_assert_safe_peer_force_safe_overrides_escape_hatch
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:449
Function
test_assert_safe_peer_respects_escape_hatch
(monkeypatch: pytest.MonkeyPatch)
lib/crewai-tools/tests/utilities/test_safe_requests.py:444
Function
test_assistant_and_runtime_are_reported_together
An assistant inside CI must not mask either signal.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:326
Function
test_assistant_inside_cursor_agrees_across_both_paths
Cursor sets CURSOR_* in every terminal, including for other assistants.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:742
Method
test_assistant_marker_is_ignored
Markers on assistant messages have no stable stamp target after Anthropic's role coalescing, so they should be silently ignored rather
lib/crewai/tests/llms/test_prompt_cache.py:120
Method
test_assistant_text_alongside_tool_calls_is_preserved
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:125
Method
test_assistant_tool_calls_become_function_call_items
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:96
Method
test_astore_and_aget_files
Test async storing and retrieving crew files.
lib/crewai/tests/utilities/test_file_store.py:130
Function
test_astream_cancellation_cleans_up_task
()
lib/crewai/tests/test_stream_frames.py:285
Function
test_astream_scopes_concurrent_executions
()
lib/crewai/tests/test_stream_frames.py:221
Method
test_async_agent_memoization
Async agent methods should be properly memoized.
lib/crewai/tests/test_project.py:426
Method
test_async_agent_returns_agent_not_coroutine
Async agent decorator should return Agent, not coroutine.
lib/crewai/tests/test_project.py:483
Method
test_async_agent_with_image
Test async agent with image file.
lib/crewai/tests/test_agent_multimodal.py:423
Method
test_async_call_moves_to_responses
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:460
Method
test_async_calls_on_an_empty_store_match_sync
( self, storage_pair: tuple[StorageBackend, StorageBackend] )
lib/crewai/tests/memory/test_storage_backend_async_parity.py:230
Method
test_async_context_manager
Test using streaming output as async context manager.
lib/crewai/tests/test_streaming.py:800
Method
test_async_context_manager_early_exit
Test context manager cleans up on early exit.
lib/crewai/tests/test_streaming.py:818
Method
test_async_crews_thread_safety
(self, mock_execute_task, crew_factory)
lib/crewai/tests/test_crew_thread_safety.py:132
Method
test_async_decorated_tool_arun
Test async decorated tool works with arun().
lib/crewai/tests/tools/test_async_tools.py:132
Method
test_async_decorated_tool_run
Test async decorated tool works with run().
lib/crewai/tests/tools/test_async_tools.py:107
Method
test_async_decorator_tool_arun_rejects_missing_required
Async decorator tools should reject missing required args in arun.
lib/crewai/tests/tools/test_base_tool.py:701
Method
test_async_decorator_tool_arun_validates_kwargs
Async decorator tools should validate kwargs in arun.
lib/crewai/tests/tools/test_base_tool.py:690
Method
test_async_dict_chunk_id_propagates_to_stream_event
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:360
Function
test_async_execution
()
lib/crewai/tests/test_task.py:192
Function
test_async_execution_error_reports_the_tool_name
()
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:95
Function
test_async_execution_fails
()
lib/crewai/tests/test_task.py:1942
Function
test_async_flow
Test an asynchronous flow.
lib/crewai/tests/test_flow.py:459
Method
test_async_flow_streaming_from_docs
Test async flow streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:266
Method
test_async_flow_with_human_feedback
Test that @human_feedback works with async flows.
lib/crewai/tests/test_human_feedback_integration.py:578
Method
test_async_flow_with_image
Test async flow with image file.
lib/crewai/tests/test_flow_multimodal.py:331
Function
test_async_flow_with_trigger_payload
()
lib/crewai/tests/test_flow.py:872
Function
test_async_handler_error_handling
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:130
Function
test_async_handler_execution
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:20
Function
test_async_handler_registration_via_register_handler
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:158
Function
test_async_handler_with_dependency
Test async handler with dependency on sync handler.
lib/crewai/tests/events/test_depends.py:104
Function
test_async_handlers_complete_before_shutdown_flag
()
lib/crewai/tests/utilities/events/test_shutdown.py:137
Method
test_async_human_feedback_final_output_preserved
Async @human_feedback methods also preserve the real return value.
lib/crewai/tests/test_human_feedback_decorator.py:1233
Method
test_async_human_feedback_reruns_flow_with_state_messages
Async human feedback should use AgentExecutor state messages.
lib/crewai/tests/agents/test_agent_executor.py:251
Method
test_async_inbound
Test async inbound hook.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:263
Method
test_async_interceptor_called_on_request
Test that async interceptor hooks are called during request handling.
lib/crewai/tests/llms/hooks/test_transport.py:138
Function
test_async_kickoff_for_each_async_basic_functionality_and_output
Tests the basic functionality and output of kickoff_for_each_async.
lib/crewai/tests/test_crew.py:1502
Function
test_async_kickoff_for_each_async_empty_input
Tests if akickoff_for_each_async handles an empty input list.
lib/crewai/tests/test_crew.py:1547
Method
test_async_kickoff_reports_per_call_usage
(self)
lib/crewai/tests/agents/test_lite_agent.py:1278
Method
test_async_method_detection
Test that async methods are properly detected and wrapped.
lib/crewai/tests/test_human_feedback_decorator.py:279
Function
test_async_negative_seconds_is_rejected_when_passed_positionally
(tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:70
Function
test_async_non_streaming_raises_provider_error
( mock_emit: MagicMock, error: Exception, message: str, attempts: int )
lib/crewai/tests/test_llm_litellm_streaming_errors.py:174
Method
test_async_outbound
Test async outbound hook.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:249
Method
test_async_path_falls_back_too
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_responses_only_models.py:151
Method
test_async_path_retries_too
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:314
Function
test_async_paths_download_off_the_event_loop
(downloads, entry)
lib/crewai/tests/agents/test_agent_spreadsheets.py:571
Function
test_async_plain_surfaces_upstream_timeout
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:172
Function
test_async_producer_puts_the_exception_class_on_the_event
The async producer is a separate emit site and regresses independently.
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:433
Method
test_async_provider_pauses_flow
Test that async provider pauses flow execution.
lib/crewai/tests/test_async_human_feedback.py:902
Function
test_async_run_returns_coroutine
Test that _run in an asynchronous tool returns a coroutine object.
lib/crewai/tests/tools/test_base_tool.py:178
Function
test_async_save_and_restore
(tmp_path, features)
lib/crewai/tests/telemetry/test_checkpoint_telemetry.py:53
Method
test_async_saved_records_survive_reopen
( self, backend: str, tmp_path: Path )
lib/crewai/tests/memory/test_storage_backend_async_parity.py:315
Function
test_async_stream_channel_projection_can_be_followed_by_cached_projection
()
lib/crewai/tests/test_stream_frames.py:266
Function
test_async_stream_emits_finish_reason_and_response_id_from_loop
(mock_emit)
lib/crewai/tests/test_llm_streaming_finish_reason.py:79
Method
test_async_stream_moves_to_responses_stream
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:499
Function
test_async_stream_projections_replay_cached_frames_after_exhaustion
()
lib/crewai/tests/test_stream_frames.py:249
Method
test_async_stream_returns_the_tool_calls
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:717
Function
test_async_streaming_context_window_error_becomes_context_length_error
()
lib/crewai/tests/test_llm_litellm_streaming_errors.py:212
Function
test_async_streaming_error_chunk_already_surfaces_upstream_message
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:445
Method
test_async_streaming_from_docs
Test async streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:121
Function
test_async_streaming_raises_provider_error
( mock_emit: MagicMock, error: Exception, message: str, attempts: int )
lib/crewai/tests/test_llm_litellm_streaming_errors.py:138
Function
test_async_streaming_tool_call_preserves_arguments
Async streaming: function_args must carry the streamed tool input.
lib/crewai/tests/llms/bedrock/test_bedrock_streaming_tool_args.py:106
Function
test_async_streaming_tool_call_turn_emits_completed_event_with_usage
( mock_emit, )
lib/crewai/tests/test_llm_litellm_usage_events.py:174
Function
test_async_structured_output_collapses_multimodal_content
()
lib/crewai/tests/llms/test_structured_output_multimodal.py:56
Function
test_async_structured_surfaces_upstream_timeout
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:161
Function
test_async_task_cannot_include_sequential_async_tasks_in_context
( researcher, writer )
lib/crewai/tests/test_crew.py:174
Function
test_async_task_completion_marks_the_right_sidebar_row
Overlapping tasks: completing task 1 while task 2 runs must not mark task 2 done, and starting task 2 must not mark task 1 done.
lib/cli/tests/test_crew_run_tui.py:2074
Function
test_async_task_execution_call_count
(researcher, writer)
lib/crewai/tests/test_crew.py:1175
Method
test_async_task_memoization
Async task methods should be properly memoized.
lib/crewai/tests/test_project.py:446
Method
test_async_task_name_inference
Async task should have name inferred from method name.
lib/crewai/tests/test_project.py:466
Method
test_async_task_returns_task_not_coroutine
Async task decorator should return Task, not coroutine.
lib/crewai/tests/test_project.py:500
Method
test_async_tasks_do_not_cross_contaminate
(self)
lib/crewai/tests/tools/test_tool_failure.py:1427
Method
test_async_tool_arun_returns_result
Test that async tool arun() awaits directly.
lib/crewai/tests/tools/test_async_tools.py:60
Function
test_async_tool_call_turn_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:146
Method
test_async_tool_run_returns_result
Test that async tool run() works.
lib/crewai/tests/tools/test_async_tools.py:46
Method
test_async_tool_simulated_io
Test async tool with simulated I/O delay.
lib/crewai/tests/tools/test_async_tools.py:149
Function
test_async_tool_using_decorator_within_flow
(custom_tool_decorator)
lib/crewai/tests/tools/test_structured_tool.py:407
Function
test_async_tool_using_decorator_within_isolated_crew
(custom_tool_decorator)
lib/crewai/tests/tools/test_structured_tool.py:382
Function
test_async_tool_using_within_isolated_crew
(custom_tool)
lib/crewai/tests/tools/test_structured_tool.py:374
Function
test_async_tool_within_flow
(custom_tool)
lib/crewai/tests/tools/test_structured_tool.py:390
Method
test_async_transport_instantiation
Test that async transport can be instantiated with interceptor.
lib/crewai/tests/llms/hooks/test_transport.py:124
Method
test_async_transport_requires_interceptor
Test that async transport requires interceptor parameter.
lib/crewai/tests/llms/hooks/test_transport.py:131
Function
test_async_usage_limit_error_reports_the_tool_name
()
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:119
Function
test_async_wait_caps_long_waits
(tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:111
Function
test_at_a_terminal_a_failed_run_points_at_its_output_above
( project, monkeypatch, capfd, usage )
lib/cli/tests/experimental/test_eval_crew.py:4615
Function
test_at_a_terminal_a_key_an_env_file_others_can_read_would_hold_runs_the_crew_unsaved
Saved, the key would stay readable by every other account on the machine.
lib/cli/tests/test_run_usage.py:1868
Function
test_at_a_terminal_a_key_left_blank_stops_the_run_with_the_line_to_add
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:1601
Function
test_at_a_terminal_a_key_missing_as_the_crew_loads_is_asked_for_after_the_spinner
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:1676
Function
test_at_a_terminal_a_key_missing_at_kickoff_is_asked_for_and_the_crew_runs_once_more
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:1578
Function
test_at_a_terminal_a_key_pasted_for_the_retry_leaves_the_env_file_readable_by_its_owner_only
( project, usage, monkeypatch )
lib/cli/tests/test_run_usage.py:1852
Function
test_at_a_terminal_a_key_still_missing_after_the_one_retry_stops_the_run
A second model's key, say: the run is retried once, never in a loop.
lib/cli/tests/test_run_usage.py:1619
← previous
next →
11,301–11,400 of 19,482, ranked by callers