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
Function
test_other_tar_formats
(mock_prepare, mock_compress, mock_exists, format, tool)
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:59
Function
test_our_own_spans_still_reach_our_exporter
The isolation must not cost us the telemetry we do want.
lib/crewai/tests/telemetry/test_tracer_isolation.py:87
Function
test_our_spans_are_unaffected_by_an_application_provider
An app that installs its own provider must not divert our telemetry. Resolving our tracer globally meant that in an already-instrumented appl
lib/crewai/tests/telemetry/test_tracer_isolation.py:147
Method
test_outbound_header_modification
Test that interceptor can add headers to outbound requests.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:193
Function
test_output_file_absolute_path_via_interpolation
Inputs cannot turn a relative output_file template into an absolute path.
lib/crewai/tests/test_task.py:1283
Function
test_output_file_drive_relative_template_accepts_relative_input
()
lib/crewai/tests/test_task.py:1332
Function
test_output_file_drive_relative_template_cannot_become_absolute
A drive-relative template (C:name) is not a root the inputs may extend.
lib/crewai/tests/test_task.py:1318
Function
test_output_file_path_traversal_via_interpolation
Test that path traversal injected through template interpolation is caught. Regression test for GHSA-hq26-r99g-pvv4: output_file was validated at
lib/crewai/tests/test_task.py:1229
Function
test_output_file_shell_injection_via_interpolation
Test that shell special chars injected through interpolation are caught.
lib/crewai/tests/test_task.py:1260
Function
test_output_file_unresolved_template_via_interpolation
An input that smuggles template syntax back into the path is rejected.
lib/crewai/tests/test_task.py:1344
Function
test_output_file_validation
Test output file path validation.
lib/crewai/tests/test_task.py:1163
Function
test_output_json_dict_hierarchical
()
lib/crewai/tests/test_task.py:558
Function
test_output_json_dict_sequential
()
lib/crewai/tests/test_task.py:533
Function
test_output_json_hierarchical
()
lib/crewai/tests/test_task.py:383
Function
test_output_json_sequential
()
lib/crewai/tests/test_task.py:351
Function
test_output_json_to_another_task
()
lib/crewai/tests/test_task.py:626
Function
test_output_json_with_a_date_field_is_saved_as_json
(tmp_path, monkeypatch, answer)
lib/crewai/tests/test_task.py:738
Method
test_output_matching_this_turns_intent_is_not_promoted
(self)
lib/crewai/tests/test_flow_conversation.py:3733
Method
test_output_modification_is_honored
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:114
Method
test_output_modification_reaches_kickoff_completed_event
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:585
Method
test_output_object_reply_reaches_history
(self)
lib/crewai/tests/test_flow_conversation.py:3709
Function
test_output_pydantic_hierarchical
()
lib/crewai/tests/test_task.py:321
Function
test_output_pydantic_sequential
()
lib/crewai/tests/test_task.py:296
Function
test_output_pydantic_to_another_task
()
lib/crewai/tests/test_task.py:588
Function
test_outside_a_crewai_project_nothing_is_written_and_it_says_so
(project, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:837
Function
test_outside_a_project_counts_as_no_project
(project, usage)
lib/cli/tests/experimental/test_eval_crew.py:2707
Function
test_outside_a_project_nothing_is_saved
(project, monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:4031
Function
test_outside_any_block_an_interpolation_that_changes_the_role_changes_nothing
Block semantics: with no overlay active there is nothing to re-resolve against, so an agent built inside a block keeps the model it got there.
lib/crewai/tests/test_llm_overlay.py:292
Method
test_overflowed_result_is_referenced_and_readable_through_file_reader
(self)
lib/crewai/tests/agents/test_agent_executor.py:2603
Function
test_overlapping_agent_turns_are_rejected_before_mutating_history
( monkeypatch, streaming, second_streaming, second_session )
lib/crewai/tests/agents/test_conversation.py:322
Function
test_overlapping_task_logs_keep_their_own_state
Task 1 completing after task 2 started must log its own description, agent, and output — and must not steal or reset task 2's stream state.
lib/cli/tests/test_crew_run_tui.py:2125
Function
test_overlay_does_not_cross_plain_threads_unless_context_is_copied
Pins contextvar semantics; callers threading agents must copy the context.
lib/crewai/tests/test_llm_overlay.py:166
Function
test_overlay_does_not_leak_past_the_block
()
lib/crewai/tests/test_llm_overlay.py:74
Function
test_overlay_is_reset_when_the_block_raises
()
lib/crewai/tests/test_llm_overlay.py:83
Method
test_override_applies_for_post_processing_when_api_lacks_stop_support
Models that lack API-level stop support still need the override. Native providers (e.g. Azure on gpt-5/o-series) read ``stop_sequences``
lib/crewai/tests/agents/test_agent.py:3119
Method
test_override_cleared_when_context_raises
A failed call must still clear the per-call stop override.
lib/crewai/tests/agents/test_agent.py:3103
Method
test_override_does_not_leak_to_other_llm_instances
Override for one LLM must not affect another LLM (e.g. function_calling_llm). Regression for Cursor Bugbot: a global ContextVar would leak th
lib/crewai/tests/agents/test_agent.py:3169
Method
test_override_propagates_to_nested_direct_llm_calls
Once invoke wraps with the override, nested direct llm.call sites (StepExecutor, handle_max_iterations_exceeded) see the merged stops.
lib/crewai/tests/agents/test_agent.py:3188
Method
test_overrides_a_requested_effort
(self)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:212
Method
test_oversized_error_names_the_url_that_served_the_body
After a redirect the requested URL is not the one that sent it.
lib/crewai-tools/tests/url_read_tool_test.py:844
Function
test_oversized_metadata_returns_failure_without_sending
(destination, caplog)
lib/crewai/tests/telemetry/test_grant_export_bounds.py:162
Function
test_oversized_workbook_is_truncated_with_a_visible_notice
A cap that is not announced reads as complete content. Announce it.
lib/crewai-tools/tests/url_read_tool_test.py:701
Function
test_overviews_past_the_budget_are_named_without_one
()
lib/crewai/tests/agents/test_agent_spreadsheets.py:1262
Method
test_overwrite_last_event_id
(self)
lib/crewai/tests/events/test_event_context.py:127
Function
test_overwrite_true
(tool, temp_env, overwrite)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:77
Method
test_owned_connection_is_closed_on_delete
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:335
Method
test_package_dependencies_listed
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:691
Function
test_packaged_litellm_catalog_loads_known_models
()
lib/crewai/tests/llms/test_context_window.py:170
Method
test_pages_newest_first
( self, storage: StorageBackend, limit: int, offset: int, expected_ind
lib/crewai/tests/memory/test_storage_backend_contract.py:192
Method
test_pagination_edges
( self, storage: StorageBackend, limit: int, offset: int, expected_ind
lib/crewai/tests/memory/test_storage_backend_contract.py:214
Method
test_pairs_by_strength_and_what_was_left_out
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:643
Method
test_pairs_cleanly_with_task_completed
The pushed scope must be popped by a matching task_completed.
lib/crewai/tests/events/test_event_context.py:246
Function
test_parallel_analyze_runs_concurrent_calls
remember_many with 3 items needing LLM should make 3 concurrent LLM calls.
lib/crewai/tests/memory/test_unified_memory.py:1142
Method
test_parallel_crews_thread_safety
(self, mock_execute_task, crew_factory)
lib/crewai/tests/test_crew_thread_safety.py:48
Function
test_parallel_find_similar_runs_all_searches
remember_many with 3 distinct items should run 3 storage searches.
lib/crewai/tests/memory/test_unified_memory.py:1087
Function
test_parallel_first_access_creates_only_one_conversation
(monkeypatch)
lib/crewai/tests/agents/test_conversation.py:419
Function
test_parallel_flow_initialization_does_not_use_store_lock
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch, existing_db: bool )
lib/crewai/tests/test_sqlite_connection_lifecycle.py:125
Method
test_parallel_flows_maintain_separate_triggered_by_chains
Parallel flow executions should maintain correct triggered_by chains independently.
lib/crewai/tests/events/test_event_ordering.py:1052
Method
test_parallel_listeners_same_trigger
Parallel listeners should all have triggered_by_event_id pointing to the same triggering event.
lib/crewai/tests/events/test_event_ordering.py:778
Function
test_parallel_mcp_tool_execution_different_tools
Parallel calls to different tools from the same server must not interfere.
lib/crewai/tests/mcp/test_mcp_config.py:264
Function
test_parallel_mcp_tool_execution_same_tool
Parallel calls to the *same* tool must not interfere.
lib/crewai/tests/mcp/test_mcp_config.py:218
Function
test_parallel_processes_initialize_flow_db
( tmp_path: Path, existing_db: bool )
lib/crewai/tests/test_sqlite_connection_lifecycle.py:163
Function
test_parallel_sessions_keep_events_and_handlers_separate
()
lib/crewai/tests/telemetry/test_event_trace_session.py:35
Method
test_parallel_step_loop_stops_the_agent
(self)
lib/crewai/tests/tools/test_tool_failure.py:2298
Method
test_parallel_steps_keep_separate_tallies
Two steps sharing one StepExecutor must not add up each other's calls.
lib/crewai/tests/tools/test_tool_failure.py:2323
Method
test_parallel_tool_calls_become_separate_items
(self)
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:139
Method
test_parent_child_bidirectional
(self)
lib/crewai/tests/test_event_record.py:135
Function
test_parent_pause_persists_its_own_trace_and_resume_feedback
( traces, legacy_context )
lib/crewai/tests/telemetry/test_deferred_trace_transitions.py:415
Function
test_parse_args_dict
Test parsing dictionary arguments
lib/crewai/tests/tools/test_structured_tool.py:250
Function
test_parse_args_string
Test parsing string arguments
lib/crewai/tests/tools/test_structured_tool.py:259
Function
test_parse_cli_args_rejects_a_positional_deployment_id
()
lib/cli/tests/test_create_crew.py:2714
Method
test_parse_dict_response
Dict response from some provider paths is parsed correctly.
lib/crewai/tests/agents/test_agent_executor.py:2375
Method
test_parse_error_carries_an_invalid_input_failure
(self)
lib/crewai/tests/tools/test_tool_failure.py:1273
Method
test_parse_error_handling
( self, mock_create_llm, mock_agent, mock_task, mock_output, llm_calls )
lib/crewai/tests/experimental/evaluation/metrics/test_reasoning_metrics.py:103
Function
test_parse_inputs_json_parses_object
()
lib/cli/tests/test_input_prompt.py:24
Function
test_parse_inputs_json_rejects_invalid_json
(capsys)
lib/cli/tests/test_input_prompt.py:28
Function
test_parse_inputs_json_rejects_non_object
(capsys)
lib/cli/tests/test_input_prompt.py:36
Function
test_parse_inputs_json_returns_none_for_none
()
lib/cli/tests/test_input_prompt.py:20
Method
test_parse_json_string
JSON string from non-streaming LLM path is parsed correctly.
lib/crewai/tests/agents/test_agent_executor.py:2335
Method
test_parse_json_string_with_markdown_fences
JSON wrapped in ```json ... ``` fences is handled.
lib/crewai/tests/agents/test_agent_executor.py:2356
Method
test_parse_step_observation_instance
Direct StepObservation instance passes through unchanged.
lib/crewai/tests/agents/test_agent_executor.py:2318
Method
test_parse_steps_from_function_response
Test that steps are correctly parsed from LLM function response.
lib/crewai/tests/utilities/test_structured_planning.py:154
Method
test_parse_steps_handles_missing_optional_fields
Test that missing optional fields are handled correctly.
lib/crewai/tests/utilities/test_structured_planning.py:196
Method
test_parse_steps_with_missing_fields_uses_defaults
Test that steps with missing fields get default values.
lib/crewai/tests/utilities/test_structured_planning.py:229
Method
test_parse_toml_python_311_plus
(self)
lib/cli/tests/deploy/test_deploy_main.py:1968
Method
test_parse_unparseable_falls_back_gracefully
Totally unparseable response falls back to default failure.
lib/crewai/tests/agents/test_agent_executor.py:2394
Function
test_parsing_failure_stays_unattributed
A tool-call parsing failure has no tool identity, and must not invent one. Passing the raw tool_string here would put unbounded model output into
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:131
Function
test_parsing_with_special_characters
()
lib/crewai/tests/agents/test_crew_agent_parser.py:332
Function
test_parsing_with_whitespace
()
lib/crewai/tests/agents/test_crew_agent_parser.py:324
Method
test_partial_callback_still_writes_checkpoints
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/test_checkpoint.py:1014
Method
test_partial_match
Test partial match finds the outcome in the response.
lib/crewai/tests/test_human_feedback_decorator.py:482
Method
test_partial_returns_none
(self)
lib/crewai/tests/test_callback.py:103
Method
test_partial_warns_it_is_dropped
(self)
lib/crewai/tests/test_callback.py:177
Method
test_partially_yanked_files
Test a version with mixed yanked/non-yanked files is not yanked.
lib/cli/tests/test_version.py:276
Method
test_partially_yanked_files
Test a version with mixed yanked/non-yanked files is not yanked.
lib/crewai/tests/cli/test_version.py:240
Method
test_partially_yanked_files_not_considered_yanked
Test that a version with some non-yanked files is not yanked.
lib/cli/tests/test_version.py:234
Method
test_partially_yanked_files_not_considered_yanked
Test that a version with some non-yanked files is not yanked.
lib/crewai/tests/cli/test_version.py:198
Function
test_parts_list_is_sent_as_blocks_with_image_bytes_intact
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:188
Function
test_parts_list_system_content_is_sent_as_its_text
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:294
Function
test_passed_initial_state_instance_keeps_its_id
A state passed to one Flow keeps its id, e.g. to continue a run (#9498).
lib/crewai/tests/test_flow_persistence.py:280
← previous
next →
16,501–16,600 of 19,482, ranked by callers