MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,264 in github.com/crewAIInc/crewAI

Methodtest_gemini_mock_structured_response
Test parsing Gemini structured response (same format).
lib/crewai/tests/utilities/test_structured_planning.py:544
Functiontest_gemini_model_capabilities
Test that model capabilities are correctly identified
lib/crewai/tests/llms/google/test_google.py:517
Functiontest_gemini_model_detection
Test that various Gemini model formats are properly detected
lib/crewai/tests/llms/google/test_google.py:556
Functiontest_gemini_model_newer_than_constants_routes_to_gemini
()
lib/crewai/tests/test_llm.py:1180
Functiontest_gemini_models
(model)
lib/crewai/tests/test_llm.py:288
Functiontest_gemini_models_offer_no_shut_down_model
`crewai create` must not offer models Google has shut down; picking one fails the first run with a ClientError.
lib/cli/tests/test_constants.py:41
Functiontest_gemini_no_thinking_tokens_defaults_to_zero
Test that missing thoughts_token_count defaults to zero.
lib/crewai/tests/llms/google/test_google.py:1460
Methodtest_gemini_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:653
Methodtest_gemini_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:630
Functiontest_gemini_placeholder_does_not_hide_a_real_key
( explicit: str | None, env: dict[str, str], via_llm: bool )
lib/crewai/tests/llms/test_missing_api_key.py:252
Functiontest_gemini_placeholder_still_allows_vertex_adc
The placeholder is no key, so a configured project goes to Vertex ADC.
lib/crewai/tests/llms/test_missing_api_key.py:229
Functiontest_gemini_raises_error_when_model_not_supported
Test that GeminiCompletion raises an API error for an unsupported model.
lib/crewai/tests/llms/google/test_google.py:449
Methodtest_gemini_raises_not_implemented_on_initialization
Test that Gemini raises NotImplementedError when interceptor is used.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:166
Functiontest_gemini_reasoning_tokens_extraction
Test that thoughts_token_count is extracted as reasoning_tokens from Gemini.
lib/crewai/tests/llms/google/test_google.py:1440
Functiontest_gemini_reports_other_client_errors_as_themselves
Only the SDK's missing-key failure becomes ``MissingAPIKeyError``.
lib/crewai/tests/llms/test_missing_api_key.py:264
Methodtest_gemini_research_workflow_generates_steps
Test that Gemini generates structured plan steps for a research task.
lib/crewai/tests/utilities/test_structured_planning.py:442
Functiontest_gemini_specific_parameters
Test Gemini-specific parameters like stop_sequences, streaming, and safety settings
lib/crewai/tests/llms/google/test_google.py:256
Functiontest_gemini_started_event_surfaces_max_output_tokens
()
lib/crewai/tests/llms/google/test_google.py:242
Functiontest_gemini_stop_sequences_sent_to_api
Test that stop_sequences are properly sent to the Gemini API.
lib/crewai/tests/llms/google/test_google.py:921
Functiontest_gemini_stop_sequences_sync
Test that stop and stop_sequences attributes stay synchronized.
lib/crewai/tests/llms/google/test_google.py:904
Functiontest_gemini_stop_words_not_applied_to_structured_output
Test that stop words are NOT applied when response_model is provided. This ensures JSON responses containing stop word patterns (like "Observ
lib/crewai/tests/llms/google/test_google.py:1256
Functiontest_gemini_stop_words_still_applied_to_regular_responses
Test that stop words ARE still applied for regular (non-structured) responses. This ensures the fix didn't break normal stop word behavior.
lib/crewai/tests/llms/google/test_google.py:1288
Methodtest_gemini_streaming_emits_tool_call_events
Test that Gemini streaming emits tool call events with correct call_type.
lib/crewai/tests/llms/test_tool_call_streaming.py:211
Methodtest_gemini_streaming_multiple_tool_calls_unique_ids
Test that Gemini streaming assigns unique IDs to multiple tool calls.
lib/crewai/tests/llms/test_tool_call_streaming.py:240
Functiontest_gemini_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/google/test_google.py:754
Functiontest_gemini_structured_output_preserves_json_with_stop_word_patterns
Test that structured output validation preserves JSON content even when string fields contain stop word patterns.
lib/crewai/tests/llms/google/test_google.py:1313
Methodtest_gemini_supports_function_calling
Test that Gemini models support function calling.
lib/crewai/tests/agents/test_native_tool_calling.py:914
Functiontest_gemini_supports_stop_words
Test that Gemini models support stop sequences
lib/crewai/tests/llms/google/test_google.py:576
Functiontest_gemini_thoughts_tokens_counted_in_completion_and_total
Gemini's thoughts_token_count must be folded into completion_tokens so the tracked total matches the API's total_token_count for thinking models.
lib/crewai/tests/llms/google/test_google.py:828
Functiontest_gemini_token_usage_tracking
Test that token usage is properly tracked for Gemini responses
lib/crewai/tests/llms/google/test_google.py:811
Functiontest_gemini_tool_conversion
Test that tools are properly converted to Gemini format
lib/crewai/tests/llms/google/test_google.py:765
Functiontest_gemini_tool_returning_float
Test that Gemini properly handles tools that return non-dict values like floats. This is an end-to-end test that verifies the agent can use
lib/crewai/tests/llms/google/test_google.py:858
Functiontest_gemini_vertex_ai_setup
Test that Vertex AI configuration is properly handled
lib/crewai/tests/llms/google/test_google.py:478
Methodtest_gemini_without_interceptor_works
Test that Gemini LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:181
Functiontest_gemma3
(model)
lib/crewai/tests/test_llm.py:303
Functiontest_general_exception_during_zip
(mock_zip, _, tool)
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:117
Functiontest_generate_condition_covers_dict_branches
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:863
Functiontest_generate_condition_rejects_invalid_shapes
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:897
Functiontest_generate_crew_chat_inputs_falls_back_when_llm_fails_mid_run
()
lib/crewai/tests/cli/test_crew_chat.py:118
Functiontest_generate_crew_chat_inputs_skips_llm_when_descriptions_disabled
()
lib/crewai/tests/cli/test_crew_chat.py:84
Functiontest_generate_crew_chat_inputs_uses_llm_by_default
()
lib/crewai/tests/cli/test_crew_chat.py:103
Functiontest_generate_crew_description_falls_back_on_llm_failure
()
lib/crewai/tests/cli/test_crew_chat.py:63
Functiontest_generate_input_description_falls_back_on_llm_failure
()
lib/crewai/tests/cli/test_crew_chat.py:52
Functiontest_generate_input_description_returns_llm_response_on_success
()
lib/crewai/tests/cli/test_crew_chat.py:74
Functiontest_generate_model_description_dict_field
()
lib/crewai/tests/utilities/test_converter.py:384
Functiontest_generate_model_description_list_field
()
lib/crewai/tests/utilities/test_converter.py:372
Functiontest_generate_model_description_nested_model
()
lib/crewai/tests/utilities/test_converter.py:348
Functiontest_generate_model_description_optional_field
()
lib/crewai/tests/utilities/test_converter.py:359
Functiontest_generate_model_description_simple_model
()
lib/crewai/tests/utilities/test_converter.py:337
Functiontest_generate_model_description_union_field
()
lib/crewai/tests/utilities/test_converter.py:645
Functiontest_generate_output_path_default
( mock_prepare, mock_compress, mock_cwd, mock_exists, tool )
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:22
Methodtest_generate_plan_does_not_mutate_task_description
(self)
lib/crewai/tests/agents/test_agent_executor.py:3218
Functiontest_generate_where_clause_covers_validation_and_logical_branches
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:913
Functiontest_generated_ids_and_empty_input
Verify generated IDs are unique and empty input performs no writes.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:165
Functiontest_generated_project_dependency_accepts_a_set_of_extras
()
lib/cli/tests/test_version.py:64
Functiontest_generated_project_dependency_lists_extras_sorted_after_tools
()
lib/cli/tests/test_version.py:50
Functiontest_generated_project_dependency_uses_next_major_upper_bound
()
lib/cli/tests/test_version.py:37
Functiontest_generated_project_dependency_without_extras_is_unchanged
()
lib/cli/tests/test_version.py:42
Functiontest_generated_reply_is_live_public_correlated_and_has_one_history
()
lib/crewai/tests/test_flow_turns.py:57
Methodtest_generates_default_skill
AgentCard should have at least one skill based on agent role.
lib/crewai/tests/a2a/utils/test_agent_card.py:172
Methodtest_generic_file_image
Test agent can process generic File with auto-detected image.
lib/crewai/tests/test_agent_multimodal.py:152
Methodtest_generic_file_image
Test crew can process generic File with auto-detected image.
lib/crewai/tests/test_crew_multimodal.py:141
Methodtest_generic_file_image_openai
Test generic File auto-detects image and sends correct content type.
lib/crewai/tests/llms/test_multimodal_integration.py:493
Methodtest_generic_file_mixed_types
Test generic File works with multiple auto-detected types.
lib/crewai/tests/llms/test_multimodal_integration.py:547
Methodtest_generic_file_pdf_anthropic
Test generic File auto-detects PDF and sends correct content type.
lib/crewai/tests/llms/test_multimodal_integration.py:511
Methodtest_generic_file_text_gemini
Test generic File auto-detects text and sends correct content type.
lib/crewai/tests/llms/test_multimodal_integration.py:529
Functiontest_generic_marker_is_detected_by_presence
An empty AI_AGENT still says an assistant is present. The named markers keep truthiness, where an empty value means the tool set a placeholde
lib/crewai/tests/telemetry/test_coding_agent_detection.py:684
Functiontest_generic_marker_is_the_last_resort
AI_AGENT says an assistant is present without naming which one. A named marker must win, so the generic entry cannot mask a specific one.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:242
Functiontest_generic_marker_value_is_never_reported
Its value is an arbitrary vendor string, so it is never read.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:254
Methodtest_get_after_hooks_returns_copy
Test that get_after_llm_call_hooks returns a copy.
lib/crewai/tests/hooks/test_llm_hooks.py:205
Methodtest_get_after_hooks_returns_copy
Test that get_after_tool_call_hooks returns a copy.
lib/crewai/tests/hooks/test_tool_hooks.py:291
Functiontest_get_agent
(mock_make_request)
lib/cli/tests/test_plus_api.py:521
Functiontest_get_agent
(mock_make_request)
lib/crewai/tests/cli/test_plus_api.py:444
Functiontest_get_agent_with_org_uuid
(mock_settings_class, mock_make_request)
lib/cli/tests/test_plus_api.py:536
Functiontest_get_agent_with_org_uuid
(mock_settings_class, mock_make_request)
lib/crewai/tests/cli/test_plus_api.py:459
Methodtest_get_all_files_crew_only
Test get_all_files with only crew files.
lib/crewai/tests/utilities/test_file_store.py:107
Methodtest_get_all_files_merges_crew_and_task
Test that get_all_files merges crew and task files.
lib/crewai/tests/utilities/test_file_store.py:80
Methodtest_get_all_files_returns_none_when_empty
Test that get_all_files returns None when no files exist.
lib/crewai/tests/utilities/test_file_store.py:116
Methodtest_get_all_files_task_overrides_crew
Test that task files override crew files with same name.
lib/crewai/tests/utilities/test_file_store.py:94
Methodtest_get_all_for_provider
Test getting all cached uploads for a provider.
lib/crewai-files/tests/test_upload_cache.py:190
Methodtest_get_audience
(self)
lib/cli/tests/authentication/providers/test_auth0.py:87
Methodtest_get_audience
(self)
lib/cli/tests/authentication/providers/test_keycloak.py:102
Methodtest_get_audience
(self)
lib/cli/tests/authentication/providers/test_okta.py:206
Methodtest_get_audience
(self)
lib/cli/tests/authentication/providers/test_entra_id.py:93
Methodtest_get_audience
(self)
lib/cli/tests/authentication/providers/test_workos.py:86
Methodtest_get_audience
(self)
lib/crewai/tests/cli/authentication/providers/test_auth0.py:87
Methodtest_get_audience
(self)
lib/crewai/tests/cli/authentication/providers/test_keycloak.py:102
Methodtest_get_audience
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:206
Methodtest_get_audience
(self)
lib/crewai/tests/cli/authentication/providers/test_entra_id.py:93
Methodtest_get_audience
(self)
lib/crewai/tests/cli/authentication/providers/test_workos.py:86
Methodtest_get_audience_assertion_error_when_none
(self)
lib/cli/tests/authentication/providers/test_okta.py:209
Methodtest_get_audience_assertion_error_when_none
(self)
lib/cli/tests/authentication/providers/test_entra_id.py:96
Methodtest_get_audience_assertion_error_when_none
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:209
Methodtest_get_audience_assertion_error_when_none
(self)
lib/crewai/tests/cli/authentication/providers/test_entra_id.py:96
Methodtest_get_audience_fallback_to_default
(self)
lib/cli/tests/authentication/providers/test_workos.py:89
Methodtest_get_audience_fallback_to_default
(self)
lib/crewai/tests/cli/authentication/providers/test_workos.py:89
Methodtest_get_audio_duration_corrupt_file
Test handling of corrupt audio data.
lib/crewai-files/tests/processing/test_validators.py:547
Methodtest_get_authorize_url
(self)
lib/cli/tests/authentication/providers/test_auth0.py:27
Methodtest_get_authorize_url
(self)
lib/cli/tests/authentication/providers/test_keycloak.py:30
Methodtest_get_authorize_url
(self)
lib/cli/tests/authentication/providers/test_okta.py:26
← previousnext →14,001–14,100 of 19,264, ranked by callers