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_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
Function
test_gemini_async_basic_call
Test basic async call with Gemini.
lib/crewai/tests/llms/google/test_google_async.py:12
Function
test_gemini_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/google/test_google_async.py:67
Function
test_gemini_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/google/test_google_async.py:85
Function
test_gemini_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/google/test_google_async.py:37
Function
test_gemini_async_with_parameters
Test async call with multiple parameters.
lib/crewai/tests/llms/google/test_google_async.py:100
Function
test_gemini_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/google/test_google_async.py:50
Function
test_gemini_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/google/test_google_async.py:25
Function
test_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
Function
test_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
Function
test_gemini_completion_call
Test that GeminiCompletion call method works
lib/crewai/tests/llms/google/test_google.py:283
Function
test_gemini_completion_call_arguments
Test that GeminiCompletion.call is invoked with correct arguments
lib/crewai/tests/llms/google/test_google.py:324
Function
test_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
Function
test_gemini_completion_initialization_parameters
Test that GeminiCompletion is initialized with correct parameters
lib/crewai/tests/llms/google/test_google.py:120
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Method
test_gemini_config
Test Gemini configuration mapping.
lib/crewai-tools/tests/rag/test_embedding_service.py:319
Method
test_gemini_constraints
Test Gemini constraints are properly defined.
lib/crewai-files/tests/processing/test_constraints.py:162
Function
test_gemini_context_window_size
Test that Gemini models return correct context window sizes
lib/crewai/tests/llms/google/test_google.py:584
Function
test_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
Function
test_gemini_developer_input_token_count
Gemini Developer API counts input tokens through its native endpoint.
lib/crewai/tests/llms/google/test_google.py:215
Function
test_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
Function
test_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
Function
test_gemini_environment_variable_api_key
Test that Google API key is properly loaded from environment
lib/crewai/tests/llms/google/test_google.py:798
Method
test_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
Function
test_gemini_generation_config
Test that generation config is properly prepared
lib/crewai/tests/llms/google/test_google.py:533
Function
test_gemini_honors_google_api_key
(monkeypatch)
lib/cli/tests/test_model_catalog.py:327
Function
test_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
Function
test_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
Function
test_gemini_litellm_appends_user_message_when_last_is_assistant
(gemini_litellm_llm)
lib/crewai/tests/test_llm.py:995
Function
test_gemini_litellm_does_not_modify_when_last_is_user
(gemini_litellm_llm)
lib/crewai/tests/test_llm.py:1007
Method
test_gemini_llm_accepts_interceptor_parameter
Test that Gemini LLM raises NotImplementedError with interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:150
Function
test_gemini_message_formatting
Test that messages are properly formatted for Gemini API
lib/crewai/tests/llms/google/test_google.py:604
Function
test_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
Function
test_gemini_message_formatting_leaves_user_terminated_history_unchanged
()
lib/crewai/tests/llms/google/test_google.py:724
Function
test_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
Function
test_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
Function
test_gemini_message_formatting_raises_on_unresolved_function_call
()
lib/crewai/tests/llms/google/test_google.py:736
Function
test_gemini_message_names_the_vertex_alternative
()
lib/crewai/tests/llms/test_missing_api_key.py:220
Method
test_gemini_mock_structured_response
Test parsing Gemini structured response (same format).
lib/crewai/tests/utilities/test_structured_planning.py:544
Function
test_gemini_model_capabilities
Test that model capabilities are correctly identified
lib/crewai/tests/llms/google/test_google.py:517
Function
test_gemini_model_detection
Test that various Gemini model formats are properly detected
lib/crewai/tests/llms/google/test_google.py:556
Function
test_gemini_model_newer_than_constants_routes_to_gemini
()
lib/crewai/tests/test_llm.py:1180
Function
test_gemini_models
(model)
lib/crewai/tests/test_llm.py:288
Function
test_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
Function
test_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
Method
test_gemini_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:653
Method
test_gemini_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:630
Function
test_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
Function
test_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
Function
test_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
Method
test_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
Function
test_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
Function
test_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
Method
test_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
Function
test_gemini_specific_parameters
Test Gemini-specific parameters like stop_sequences, streaming, and safety settings
lib/crewai/tests/llms/google/test_google.py:256
Function
test_gemini_started_event_surfaces_max_output_tokens
()
lib/crewai/tests/llms/google/test_google.py:242
Function
test_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
Function
test_gemini_stop_sequences_sync
Test that stop and stop_sequences attributes stay synchronized.
lib/crewai/tests/llms/google/test_google.py:904
Function
test_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
Function
test_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
Method
test_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
Method
test_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
Function
test_gemini_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/google/test_google.py:754
Function
test_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
Method
test_gemini_supports_function_calling
Test that Gemini models support function calling.
lib/crewai/tests/agents/test_native_tool_calling.py:914
Function
test_gemini_supports_stop_words
Test that Gemini models support stop sequences
lib/crewai/tests/llms/google/test_google.py:576
Function
test_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
Function
test_gemini_token_usage_tracking
Test that token usage is properly tracked for Gemini responses
lib/crewai/tests/llms/google/test_google.py:811
Function
test_gemini_tool_conversion
Test that tools are properly converted to Gemini format
lib/crewai/tests/llms/google/test_google.py:765
Function
test_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
Function
test_gemini_vertex_ai_setup
Test that Vertex AI configuration is properly handled
lib/crewai/tests/llms/google/test_google.py:478
Method
test_gemini_without_interceptor_works
Test that Gemini LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:181
Function
test_gemma3
(model)
lib/crewai/tests/test_llm.py:303
Function
test_general_exception_during_zip
(mock_zip, _, tool)
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:117
Function
test_generate_condition_covers_dict_branches
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:863
Function
test_generate_condition_rejects_invalid_shapes
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:897
Function
test_generate_crew_chat_inputs_falls_back_when_llm_fails_mid_run
()
lib/crewai/tests/cli/test_crew_chat.py:118
Function
test_generate_crew_chat_inputs_skips_llm_when_descriptions_disabled
()
lib/crewai/tests/cli/test_crew_chat.py:84
Function
test_generate_crew_chat_inputs_uses_llm_by_default
()
lib/crewai/tests/cli/test_crew_chat.py:103
Function
test_generate_crew_description_falls_back_on_llm_failure
()
lib/crewai/tests/cli/test_crew_chat.py:63
Function
test_generate_input_description_falls_back_on_llm_failure
()
lib/crewai/tests/cli/test_crew_chat.py:52
Function
test_generate_input_description_returns_llm_response_on_success
()
lib/crewai/tests/cli/test_crew_chat.py:74
Function
test_generate_model_description_dict_field
()
lib/crewai/tests/utilities/test_converter.py:384
Function
test_generate_model_description_list_field
()
lib/crewai/tests/utilities/test_converter.py:372
Function
test_generate_model_description_nested_model
()
lib/crewai/tests/utilities/test_converter.py:348
Function
test_generate_model_description_optional_field
()
lib/crewai/tests/utilities/test_converter.py:359
Function
test_generate_model_description_simple_model
()
lib/crewai/tests/utilities/test_converter.py:337
Function
test_generate_model_description_union_field
()
lib/crewai/tests/utilities/test_converter.py:645
Function
test_generate_output_path_default
( mock_prepare, mock_compress, mock_cwd, mock_exists, tool )
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:22
Method
test_generate_plan_does_not_mutate_task_description
(self)
lib/crewai/tests/agents/test_agent_executor.py:3218
Function
test_generate_where_clause_covers_validation_and_logical_branches
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:913
Function
test_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
Function
test_generated_project_dependency_accepts_a_set_of_extras
()
lib/cli/tests/test_version.py:64
Function
test_generated_project_dependency_lists_extras_sorted_after_tools
()
lib/cli/tests/test_version.py:50
Function
test_generated_project_dependency_uses_next_major_upper_bound
()
lib/cli/tests/test_version.py:37
Function
test_generated_project_dependency_without_extras_is_unchanged
()
lib/cli/tests/test_version.py:42
Function
test_generated_reply_is_live_public_correlated_and_has_one_history
()
lib/crewai/tests/test_flow_turns.py:57
← previous
next →
14,101–14,200 of 19,482, ranked by callers