Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,484 in github.com/crewAIInc/crewAI
⨍
Functions
19,484
◇
Types & classes
3,433
↳
Endpoints
991
Method
test_google_alias_in_provider_paths
Verify 'google' is registered as an alias for google-generativeai.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:26
Function
test_google_async_streaming_returns_usage_metrics
Test that Google Gemini async streaming calls return proper token usage metrics.
lib/crewai/tests/llms/google/test_google_async.py:118
Function
test_google_config_forwards_locale
`locale` is a documented Google Search parameter; the config model used to omit it, so it was silently dropped.
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:349
Function
test_google_express_mode_works
Test Google Vertex AI Express mode with API key authentication. This tests Vertex AI Express mode (aiplatform.googleapis.com) with API key
lib/crewai/tests/llms/google/test_google.py:980
Method
test_google_generativeai_provider_accepts_model_key
Test Google Generative AI provider accepts 'model' as alias.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:105
Method
test_google_provider_accepts_lowercase_task_type
Test Google provider accepts lowercase task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:184
Method
test_google_provider_accepts_uppercase_task_type
Test Google provider accepts uppercase task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:193
Method
test_google_provider_default_task_type
Test Google provider has correct default task_type.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:202
Function
test_google_streaming_returns_usage_metrics
Test that Google Gemini streaming calls return proper token usage metrics.
lib/crewai/tests/llms/google/test_google.py:951
Method
test_google_vertex_provider_accepts_model_key
Test Google Vertex AI provider accepts 'model' as alias.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:113
Function
test_gpt56_does_not_override_gpt54_mini_window
A more specific model id must keep its own catalog window.
lib/crewai/tests/test_llm.py:379
Function
test_gpt56_family_context_window_with_provider_prefix
LiteLLM keeps the provider prefix on self.model; lookup must still hit gpt-5.6.
lib/crewai/tests/test_llm.py:428
Function
test_gpt56_family_uses_official_context_window
GPT-5.6 Sol, Terra, Luna, and the alias share the catalog window.
lib/crewai/tests/test_llm.py:373
Function
test_gpt_4_1
(model)
lib/crewai/tests/test_llm.py:315
Function
test_gpt_6_1_sol_agent_runs_its_tool
Recorded live: two refused chat calls, then the tool round trip on /v1/responses.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:783
Function
test_gpt_6_1_sol_streaming_agent_runs_its_tool
Recorded live with stream=True: the streamed tool call reaches the agent.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:818
Function
test_grade
(answer, expected)
lib/devtools/tests/test_agents_md_eval.py:73
Function
test_graded_again_unchanged_it_points_at_what_it_saved_and_asks_nothing
The same evaluation, read again after its sitting closed: what was saved the first time is where the data is, and AMP is not asked a second time.
lib/cli/tests/experimental/test_eval_crew.py:4042
Function
test_grant_preserves_optional_viewer_url_without_exposing_it_in_repr
( collector, credential )
lib/crewai/tests/telemetry/test_session_trace_export.py:424
Function
test_grant_requires_https_except_local_development
(collector, url, allowed)
lib/crewai/tests/telemetry/test_session_trace_export.py:491
Method
test_guard_does_not_fire_on_a_conversational_flow
(self)
lib/crewai/tests/test_flow_conversation.py:2398
Function
test_guardrail
(output)
lib/crewai/tests/agents/test_lite_agent.py:587
Function
test_guardrail_emits_events
(sample_agent)
lib/crewai/tests/test_task_guardrails.py:211
Function
test_guardrail_error_in_context
Test that guardrail error is passed in context for retry.
lib/crewai/tests/test_task_guardrails.py:125
Function
test_guardrail_is_called_using_callable
()
lib/crewai/tests/agents/test_lite_agent.py:416
Function
test_guardrail_is_called_using_string
Test that a string guardrail triggers events and retries correctly. Uses a callable guardrail that deterministically fails on the first attem
lib/crewai/tests/agents/test_lite_agent.py:351
Function
test_guardrail_reached_attempt_limit
()
lib/crewai/tests/agents/test_lite_agent.py:460
Method
test_guardrail_retry_preserves_earlier_failures
A blocked attempt's failures must survive into the final output. The retry resets the agent's record, so without accumulation this would
lib/crewai/tests/tools/test_tool_failure.py:810
Method
test_guardrail_retry_usage_includes_all_attempts
A guardrail retry re-invokes the LLM within the same kickoff, so the result must report the whole call's usage — every attempt — not j
lib/crewai/tests/agents/test_lite_agent.py:1287
Function
test_guardrail_type_error
()
lib/crewai/tests/test_task.py:227
Function
test_guardrail_when_an_error_occurs
(sample_agent, task_output)
lib/crewai/tests/test_task_guardrails.py:305
Function
test_guardrails_vs_single_guardrail_mutual_exclusion
Test that guardrails list nullifies single guardrail.
lib/crewai/tests/test_task_guardrails.py:705
Function
test_hallucination_guardrail_always_passes
Test that the guardrail always passes regardless of configuration in open-source version.
lib/crewai/tests/test_hallucination_guardrail.py:87
Function
test_hallucination_guardrail_description
Test that the guardrail provides the correct description for event logging.
lib/crewai/tests/test_hallucination_guardrail.py:55
Function
test_hallucination_guardrail_description_in_events
Test that HallucinationGuardrail description appears correctly in events.
lib/crewai/tests/test_task_guardrails.py:350
Function
test_hallucination_guardrail_initialization
Test that the hallucination guardrail initializes correctly with all parameters.
lib/crewai/tests/test_hallucination_guardrail.py:9
Function
test_hallucination_guardrail_integration
Test that HallucinationGuardrail integrates properly with the task system.
lib/crewai/tests/test_task_guardrails.py:326
Function
test_hallucination_guardrail_no_op_behavior
Test that the guardrail always returns True in the open-source version.
lib/crewai/tests/test_hallucination_guardrail.py:33
Function
test_handle_context_length_exceeds_limit
()
lib/crewai/tests/agents/test_agent.py:1405
Function
test_handle_context_length_exceeds_limit_cli_no
()
lib/crewai/tests/agents/test_agent.py:1448
Method
test_handle_crew_planning
(self, crew_planner)
lib/crewai/tests/utilities/test_planning_handler.py:54
Method
test_handle_crew_planning_different_llm
(self, crew_planner_different_llm)
lib/crewai/tests/utilities/test_planning_handler.py:163
Method
test_handle_empty_pop_raises_when_configured
(self)
lib/crewai/tests/events/test_event_context.py:85
Method
test_handle_mismatch_raises_when_configured
(self)
lib/crewai/tests/events/test_event_context.py:77
Function
test_handle_partial_json_accepts_literal_control_chars_in_strings
JSON values with literal newlines/tabs (lenient parsing) must still validate, matching the prior model_validate_json behavior.
lib/crewai/tests/utilities/test_converter.py:206
Function
test_handle_partial_json_falls_through_for_non_json_curly_blocks
A regex match that is not actually JSON (e.g. GraphQL) must fall through to convert_with_instructions instead of raising a ValidationError.
lib/crewai/tests/utilities/test_converter.py:217
Function
test_handle_partial_json_with_invalid_partial
(mock_agent: Mock)
lib/crewai/tests/utilities/test_converter.py:198
Function
test_handle_partial_json_with_valid_partial
()
lib/crewai/tests/utilities/test_converter.py:190
Function
test_handle_partial_json_without_agent_raises_validation_error
()
lib/crewai/tests/utilities/test_converter.py:1154
Function
test_handle_streaming_tool_calls
(get_weather_tool_schema, mock_emit)
lib/crewai/tests/test_llm.py:663
Function
test_handle_streaming_tool_calls_no_available_functions
( get_weather_tool_schema, mock_emit )
lib/crewai/tests/test_llm.py:716
Function
test_handle_streaming_tool_calls_no_tools
(mock_emit)
lib/crewai/tests/test_llm.py:741
Function
test_handle_streaming_tool_calls_with_error
(get_weather_tool_schema, mock_emit)
lib/crewai/tests/test_llm.py:691
Method
test_handle_turn_emits_failed_instead_of_completed_when_turn_raises
Failed turns emit a terminal failure event without completion.
lib/crewai/tests/test_flow_conversation.py:1263
Method
test_handle_turn_emits_started_and_completed_for_each_conversational_turn
Each ``handle_turn()`` emits paired turn lifecycle events.
lib/crewai/tests/test_flow_conversation.py:1217
Method
test_handle_turn_guard_matches_chat_and_stream_turn
(self)
lib/crewai/tests/test_flow_conversation.py:2380
Method
test_handle_turn_rejects_non_conversational_flows
(self)
lib/crewai/tests/test_flow_conversation.py:2368
Method
test_handle_turn_reruns_graph_after_prior_turn_completed
Multi-turn must not flip ``_is_execution_resuming`` and short-circuit. ``Flow.kickoff`` with persistence enabled treats ``inputs={"id": ...}`
lib/crewai/tests/test_flow_conversation.py:809
Method
test_handle_turn_routes_to_listener_and_records_public_result
(self)
lib/crewai/tests/test_flow_conversation.py:282
Method
test_handler
(source: object, event: SignalEvent)
lib/crewai/tests/events/types/test_system_events.py:141
Method
test_handler_is_unregistered_after_kickoff
Long-lived workers (Celery, devkit) must not leak one handler per kickoff on the singleton bus, on either the success or failure path.
lib/crewai/tests/test_flow_usage_metrics.py:277
Function
test_handler_registration_thread_safety
()
lib/crewai/tests/utilities/events/test_shutdown.py:210
Method
test_handler_that_already_replied_is_not_double_promoted
(self)
lib/crewai/tests/test_flow_conversation.py:3757
Function
test_handler_without_dependency_runs_normally
Test that handlers without dependencies still work as before.
lib/crewai/tests/events/test_depends.py:220
Function
test_handles_broken_stdout
(clean_env, monkeypatch)
lib/crewai/tests/telemetry/test_coding_agent_detection.py:365
Method
test_handles_invalid_version_strings
Test that invalid version strings are skipped.
lib/cli/tests/test_version.py:226
Method
test_handles_invalid_version_strings
Test that invalid version strings are skipped.
lib/crewai/tests/cli/test_version.py:190
Method
test_handles_multiple_crewai_entries
(self)
lib/devtools/tests/test_toml_updates.py:345
Method
test_handles_multiple_pins
(self)
lib/devtools/tests/test_toml_updates.py:410
Method
test_handles_optional_dependencies
(self)
lib/devtools/tests/test_toml_updates.py:332
Method
test_handles_v1_with_trailing_slash
Test /v1/ is normalized.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:124
Function
test_happy_path
(mock_post, monkeypatch)
lib/crewai-tools/tests/tools/parallel_search_tool_test.py:18
Function
test_happy_path_async_plain_unchanged
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:312
Function
test_happy_path_async_structured_unchanged
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:319
Function
test_happy_path_plain_completion_unchanged
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:296
Function
test_happy_path_structured_completion_unchanged
()
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:302
Function
test_hardcoded_reply_uses_same_contract_without_fake_model_timing
()
lib/crewai/tests/test_flow_turns.py:95
Method
test_has_tool_failures_exists_on_all_output_types
(self)
lib/crewai/tests/tools/test_tool_failure.py:653
Function
test_has_uncommitted_changes
(fp, repository)
lib/cli/tests/test_git.py:56
Function
test_hash_based_id_generation_with_doc_id_in_metadata
Test that documents with doc_id in metadata use the doc_id directly, not hash-based.
lib/crewai/tests/knowledge/test_knowledge.py:616
Function
test_hash_based_id_generation_without_doc_id
Test that documents without doc_id generate hash-based IDs. Duplicates are deduplicated before upsert.
lib/crewai/tests/knowledge/test_knowledge.py:568
Method
test_hash_comment_is_blocked_on_mysql
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:652
Method
test_hash_is_an_operator_on_postgres
(self)
lib/crewai-tools/tests/tools/test_nl2sql_security.py:658
Function
test_hatchling_with_explicit_wheel_config_passes
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:524
Function
test_hatchling_without_wheel_config_passes_when_pkg_dir_matches
( tmp_path: Path, )
lib/cli/tests/deploy/test_validate.py:513
Function
test_head_commit_is_none_before_the_first_commit
(tmp_path)
lib/cli/tests/test_git.py:170
Function
test_head_commit_is_the_short_hash_of_head
(tmp_path)
lib/cli/tests/test_git.py:176
Method
test_header_interceptor_adds_headers
Test that header interceptor adds custom headers to requests.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:238
Method
test_header_interceptor_with_anthropic
Test that header interceptor can be used with Anthropic LLM.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:227
Method
test_header_interceptor_with_real_call
Test that header interceptor works with real Anthropic API call.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:253
Method
test_header_row_overrides_the_detected_one
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:434
Function
test_headless_chat_reports_no_terminal
(monkeypatch)
lib/cli/tests/test_run_agent.py:12
Function
test_help_and_invalid_arguments_are_not_counted
(args)
lib/cli/tests/test_checkpoint_telemetry.py:47
Function
test_helper_functions_cover_error_paths
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:813
Method
test_heuristic_observation_reflects_step_success
(self)
lib/crewai/tests/agents/test_agent_executor.py:1529
Method
test_hidden_files_and_dirs_excluded
(self, temp_directory)
lib/crewai-tools/tests/rag/test_directory_loader.py:81
Function
test_hierarchical_crew_creation_tasks_with_agents
Agents are not required for tasks in a hierarchical process but sometimes they are still added This test makes sure that the manager still de
lib/crewai/tests/test_crew.py:1884
Function
test_hierarchical_crew_creation_tasks_with_async_execution
Tests that async tasks in hierarchical crews are handled correctly with proper delegation tools
lib/crewai/tests/test_crew.py:1934
Function
test_hierarchical_crew_creation_tasks_with_sync_last
Agents are not required for tasks in a hierarchical process but sometimes they are still added This test makes sure that the manager still de
lib/crewai/tests/test_crew.py:1987
Function
test_hierarchical_crew_delegates_to_workers_on_every_kickoff
( manager, async_entry )
lib/crewai/tests/test_crew.py:2938
← previous
next →
14,501–14,600 of 19,484, ranked by callers