MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Functiontest_gemini_api_key_configuration
Test that API key configuration works for both GOOGLE_API_KEY and GEMINI_API_KEY
lib/crewai/tests/llms/google/test_google.py:499
Functiontest_gemini_async_basic_call
Test basic async call with Gemini.
lib/crewai/tests/llms/google/test_google_async.py:12
Functiontest_gemini_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/google/test_google_async.py:67
Functiontest_gemini_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/google/test_google_async.py:85
Functiontest_gemini_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/google/test_google_async.py:37
Functiontest_gemini_async_with_parameters
Test async call with multiple parameters.
lib/crewai/tests/llms/google/test_google_async.py:100
Functiontest_gemini_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/google/test_google_async.py:50
Functiontest_gemini_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/google/test_google_async.py:25
Functiontest_gemini_cached_prompt_tokens
Test that Gemini correctly extracts and tracks cached_prompt_tokens from cached_content_token_count in the usage metadata. Sends two call
lib/crewai/tests/llms/google/test_google.py:1351
Functiontest_gemini_cached_prompt_tokens_with_tools
Test that Gemini correctly tracks cached_prompt_tokens when tools are used. The large system prompt should be cached across tool-calling requ
lib/crewai/tests/llms/google/test_google.py:1383
Functiontest_gemini_completion_call
Test that GeminiCompletion call method works
lib/crewai/tests/llms/google/test_google.py:283
Functiontest_gemini_completion_call_arguments
Test that GeminiCompletion.call is invoked with correct arguments
lib/crewai/tests/llms/google/test_google.py:324
Functiontest_gemini_completion_called_during_crew_execution
Test that GeminiCompletion.call is actually invoked when running a crew
lib/crewai/tests/llms/google/test_google.py:296
Functiontest_gemini_completion_initialization_parameters
Test that GeminiCompletion is initialized with correct parameters
lib/crewai/tests/llms/google/test_google.py:120
Functiontest_gemini_completion_is_used_when_gemini_provider
Test that GeminiCompletion is used when provider is 'gemini'
lib/crewai/tests/llms/google/test_google.py:49
Functiontest_gemini_completion_is_used_when_google_provider
Test that GeminiCompletion is used when LLM uses provider 'google'
lib/crewai/tests/llms/google/test_google.py:30
Functiontest_gemini_completion_module_is_imported
Test that the completion module is properly imported when using Google provider
lib/crewai/tests/llms/google/test_google.py:62
Functiontest_gemini_completion_with_tools
Test that GeminiCompletion.call is invoked with tools when agent has tools
lib/crewai/tests/llms/google/test_google.py:406
Methodtest_gemini_config
Test Gemini configuration mapping.
lib/crewai-tools/tests/rag/test_embedding_service.py:319
Methodtest_gemini_constraints
Test Gemini constraints are properly defined.
lib/crewai-files/tests/processing/test_constraints.py:162
Functiontest_gemini_context_window_size
Test that Gemini models return correct context window sizes
lib/crewai/tests/llms/google/test_google.py:584
Functiontest_gemini_crew_structured_output_with_tools
Test that a crew with Gemini can use both tools and output_pydantic on a task.
lib/crewai/tests/llms/google/test_google.py:1216
Functiontest_gemini_developer_input_token_count
Gemini Developer API counts input tokens through its native endpoint.
lib/crewai/tests/llms/google/test_google.py:215
Functiontest_gemini_developer_token_count_forwards_supported_content
Developer API counting succeeds when the prompt has no unsupported context.
lib/crewai/tests/llms/google/test_google.py:198
Functiontest_gemini_developer_token_count_uses_character_fallback_for_unrepresentable_context
Unsupported Developer API context falls back to the character estimate.
lib/crewai/tests/llms/google/test_google.py:173
Functiontest_gemini_environment_variable_api_key
Test that Google API key is properly loaded from environment
lib/crewai/tests/llms/google/test_google.py:798
Methodtest_gemini_error_message_is_clear
Test that Gemini error message clearly states lack of support.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:228
Functiontest_gemini_generation_config
Test that generation config is properly prepared
lib/crewai/tests/llms/google/test_google.py:533
Functiontest_gemini_honors_google_api_key
(monkeypatch)
lib/cli/tests/test_model_catalog.py:327
Functiontest_gemini_input_token_count_forwards_generation_context_for_vertex
Vertex Count Tokens receives the same prompt context as completion.
lib/crewai/tests/llms/google/test_google.py:142
Functiontest_gemini_lazy_build_reads_env_vars_set_after_construction
When `LLM(model="gemini/...")` is constructed before env vars are set, the lazy client builder must re-read `GOOGLE_API_KEY` / `GEMINI_API_KEY`
lib/crewai/tests/llms/google/test_google.py:80
Functiontest_gemini_litellm_appends_user_message_when_last_is_assistant
(gemini_litellm_llm)
lib/crewai/tests/test_llm.py:995
Functiontest_gemini_litellm_does_not_modify_when_last_is_user
(gemini_litellm_llm)
lib/crewai/tests/test_llm.py:1007
Methodtest_gemini_llm_accepts_interceptor_parameter
Test that Gemini LLM raises NotImplementedError with interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:150
Functiontest_gemini_message_formatting
Test that messages are properly formatted for Gemini API
lib/crewai/tests/llms/google/test_google.py:604
Functiontest_gemini_message_formatting_appends_user_turn_after_trailing_model_turn
Gemini's generateContent API rejects a request whose history ends on a model turn ("Requests ending with a model turn are not supported"). Ag
lib/crewai/tests/llms/google/test_google.py:694
Functiontest_gemini_message_formatting_leaves_user_terminated_history_unchanged
()
lib/crewai/tests/llms/google/test_google.py:724
Functiontest_gemini_message_formatting_preserves_file_data
Test that Gemini file references are preserved in their original order.
lib/crewai/tests/llms/google/test_google.py:636
Functiontest_gemini_message_formatting_preserves_file_data_without_text
Test that a message containing only a file reference is preserved.
lib/crewai/tests/llms/google/test_google.py:666
Functiontest_gemini_message_formatting_raises_on_unresolved_function_call
()
lib/crewai/tests/llms/google/test_google.py:736
Functiontest_gemini_message_names_the_vertex_alternative
()
lib/crewai/tests/llms/test_missing_api_key.py:220
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
← previousnext →14,101–14,200 of 19,482, ranked by callers