MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Methodtest_ask_with_structured_state
ask() works with Pydantic-based flow state.
lib/crewai/tests/test_flow_ask.py:685
Methodtest_ask_works_with_listen_chain
ask() in a start method, result flows to listener.
lib/crewai/tests/test_flow_ask.py:662
Functiontest_assert_safe_peer_allows_public
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:440
Functiontest_assert_safe_peer_blocks_metadata
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:435
Functiontest_assert_safe_peer_blocks_private
()
lib/crewai-tools/tests/utilities/test_safe_requests.py:430
Functiontest_assert_safe_peer_force_safe_overrides_escape_hatch
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-tools/tests/utilities/test_safe_requests.py:449
Functiontest_assert_safe_peer_respects_escape_hatch
(monkeypatch: pytest.MonkeyPatch)
lib/crewai-tools/tests/utilities/test_safe_requests.py:444
Functiontest_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
Functiontest_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
Methodtest_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
Methodtest_assistant_text_alongside_tool_calls_is_preserved
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:125
Methodtest_assistant_tool_calls_become_function_call_items
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:96
Methodtest_astore_and_aget_files
Test async storing and retrieving crew files.
lib/crewai/tests/utilities/test_file_store.py:130
Functiontest_astream_cancellation_cleans_up_task
()
lib/crewai/tests/test_stream_frames.py:285
Functiontest_astream_scopes_concurrent_executions
()
lib/crewai/tests/test_stream_frames.py:221
Methodtest_async_agent_memoization
Async agent methods should be properly memoized.
lib/crewai/tests/test_project.py:426
Methodtest_async_agent_returns_agent_not_coroutine
Async agent decorator should return Agent, not coroutine.
lib/crewai/tests/test_project.py:483
Methodtest_async_agent_with_image
Test async agent with image file.
lib/crewai/tests/test_agent_multimodal.py:423
Methodtest_async_call_moves_to_responses
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:460
Methodtest_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
Methodtest_async_context_manager
Test using streaming output as async context manager.
lib/crewai/tests/test_streaming.py:800
Methodtest_async_context_manager_early_exit
Test context manager cleans up on early exit.
lib/crewai/tests/test_streaming.py:818
Methodtest_async_crews_thread_safety
(self, mock_execute_task, crew_factory)
lib/crewai/tests/test_crew_thread_safety.py:132
Methodtest_async_decorated_tool_arun
Test async decorated tool works with arun().
lib/crewai/tests/tools/test_async_tools.py:132
Methodtest_async_decorated_tool_run
Test async decorated tool works with run().
lib/crewai/tests/tools/test_async_tools.py:107
Methodtest_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
Methodtest_async_decorator_tool_arun_validates_kwargs
Async decorator tools should validate kwargs in arun.
lib/crewai/tests/tools/test_base_tool.py:690
Methodtest_async_dict_chunk_id_propagates_to_stream_event
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:360
Functiontest_async_execution
()
lib/crewai/tests/test_task.py:192
Functiontest_async_execution_error_reports_the_tool_name
()
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:95
Functiontest_async_execution_fails
()
lib/crewai/tests/test_task.py:1942
Functiontest_async_flow
Test an asynchronous flow.
lib/crewai/tests/test_flow.py:459
Methodtest_async_flow_streaming_from_docs
Test async flow streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:266
Methodtest_async_flow_with_human_feedback
Test that @human_feedback works with async flows.
lib/crewai/tests/test_human_feedback_integration.py:578
Methodtest_async_flow_with_image
Test async flow with image file.
lib/crewai/tests/test_flow_multimodal.py:331
Functiontest_async_flow_with_trigger_payload
()
lib/crewai/tests/test_flow.py:872
Functiontest_async_handler_error_handling
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:130
Functiontest_async_handler_execution
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:20
Functiontest_async_handler_registration_via_register_handler
()
lib/crewai/tests/utilities/events/test_async_event_bus.py:158
Functiontest_async_handler_with_dependency
Test async handler with dependency on sync handler.
lib/crewai/tests/events/test_depends.py:104
Functiontest_async_handlers_complete_before_shutdown_flag
()
lib/crewai/tests/utilities/events/test_shutdown.py:137
Methodtest_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
Methodtest_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
Methodtest_async_inbound
Test async inbound hook.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:263
Methodtest_async_interceptor_called_on_request
Test that async interceptor hooks are called during request handling.
lib/crewai/tests/llms/hooks/test_transport.py:138
Functiontest_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
Functiontest_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
Methodtest_async_kickoff_reports_per_call_usage
(self)
lib/crewai/tests/agents/test_lite_agent.py:1278
Methodtest_async_method_detection
Test that async methods are properly detected and wrapped.
lib/crewai/tests/test_human_feedback_decorator.py:279
Functiontest_async_negative_seconds_is_rejected_when_passed_positionally
(tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:70
Functiontest_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
Methodtest_async_outbound
Test async outbound hook.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:249
Methodtest_async_path_falls_back_too
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_responses_only_models.py:151
Methodtest_async_path_retries_too
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:314
Functiontest_async_paths_download_off_the_event_loop
(downloads, entry)
lib/crewai/tests/agents/test_agent_spreadsheets.py:571
Functiontest_async_plain_surfaces_upstream_timeout
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:172
Functiontest_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
Methodtest_async_provider_pauses_flow
Test that async provider pauses flow execution.
lib/crewai/tests/test_async_human_feedback.py:902
Functiontest_async_run_returns_coroutine
Test that _run in an asynchronous tool returns a coroutine object.
lib/crewai/tests/tools/test_base_tool.py:178
Functiontest_async_save_and_restore
(tmp_path, features)
lib/crewai/tests/telemetry/test_checkpoint_telemetry.py:53
Methodtest_async_saved_records_survive_reopen
( self, backend: str, tmp_path: Path )
lib/crewai/tests/memory/test_storage_backend_async_parity.py:315
Functiontest_async_stream_channel_projection_can_be_followed_by_cached_projection
()
lib/crewai/tests/test_stream_frames.py:266
Functiontest_async_stream_emits_finish_reason_and_response_id_from_loop
(mock_emit)
lib/crewai/tests/test_llm_streaming_finish_reason.py:79
Methodtest_async_stream_moves_to_responses_stream
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:499
Functiontest_async_stream_projections_replay_cached_frames_after_exhaustion
()
lib/crewai/tests/test_stream_frames.py:249
Methodtest_async_stream_returns_the_tool_calls
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:717
Functiontest_async_streaming_context_window_error_becomes_context_length_error
()
lib/crewai/tests/test_llm_litellm_streaming_errors.py:212
Functiontest_async_streaming_error_chunk_already_surfaces_upstream_message
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:445
Methodtest_async_streaming_from_docs
Test async streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:121
Functiontest_async_streaming_raises_provider_error
( mock_emit: MagicMock, error: Exception, message: str, attempts: int )
lib/crewai/tests/test_llm_litellm_streaming_errors.py:138
Functiontest_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
Functiontest_async_streaming_tool_call_turn_emits_completed_event_with_usage
( mock_emit, )
lib/crewai/tests/test_llm_litellm_usage_events.py:174
Functiontest_async_structured_output_collapses_multimodal_content
()
lib/crewai/tests/llms/test_structured_output_multimodal.py:56
Functiontest_async_structured_surfaces_upstream_timeout
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:161
Functiontest_async_task_cannot_include_sequential_async_tasks_in_context
( researcher, writer )
lib/crewai/tests/test_crew.py:174
Functiontest_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
Functiontest_async_task_execution_call_count
(researcher, writer)
lib/crewai/tests/test_crew.py:1175
Methodtest_async_task_memoization
Async task methods should be properly memoized.
lib/crewai/tests/test_project.py:446
Methodtest_async_task_name_inference
Async task should have name inferred from method name.
lib/crewai/tests/test_project.py:466
Methodtest_async_task_returns_task_not_coroutine
Async task decorator should return Task, not coroutine.
lib/crewai/tests/test_project.py:500
Methodtest_async_tasks_do_not_cross_contaminate
(self)
lib/crewai/tests/tools/test_tool_failure.py:1427
Methodtest_async_tool_arun_returns_result
Test that async tool arun() awaits directly.
lib/crewai/tests/tools/test_async_tools.py:60
Functiontest_async_tool_call_turn_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:146
Methodtest_async_tool_run_returns_result
Test that async tool run() works.
lib/crewai/tests/tools/test_async_tools.py:46
Methodtest_async_tool_simulated_io
Test async tool with simulated I/O delay.
lib/crewai/tests/tools/test_async_tools.py:149
Functiontest_async_tool_using_decorator_within_flow
(custom_tool_decorator)
lib/crewai/tests/tools/test_structured_tool.py:407
Functiontest_async_tool_using_decorator_within_isolated_crew
(custom_tool_decorator)
lib/crewai/tests/tools/test_structured_tool.py:382
Functiontest_async_tool_using_within_isolated_crew
(custom_tool)
lib/crewai/tests/tools/test_structured_tool.py:374
Functiontest_async_tool_within_flow
(custom_tool)
lib/crewai/tests/tools/test_structured_tool.py:390
Methodtest_async_transport_instantiation
Test that async transport can be instantiated with interceptor.
lib/crewai/tests/llms/hooks/test_transport.py:124
Methodtest_async_transport_requires_interceptor
Test that async transport requires interceptor parameter.
lib/crewai/tests/llms/hooks/test_transport.py:131
Functiontest_async_usage_limit_error_reports_the_tool_name
()
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:119
Functiontest_async_wait_caps_long_waits
(tool)
lib/crewai-tools/tests/tools/wait_tool_test.py:111
Functiontest_at_a_terminal_a_failed_run_points_at_its_output_above
( project, monkeypatch, capfd, usage )
lib/cli/tests/experimental/test_eval_crew.py:4615
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
← previousnext →11,301–11,400 of 19,482, ranked by callers