MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions20,757 in github.com/crewAIInc/crewAI

Functiontest_from_tool_pack_all_tools
Test creating all tools from a Tool Pack.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:262
Functiontest_from_tool_pack_specific_tools
Test creating specific tools from a Tool Pack.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:280
Functiontest_from_tool_pack_with_custom_base_url
Test creating tools from Tool Pack with custom base URL.
lib/crewai-tools/tests/tools/merge_agent_handler_tool_test.py:298
Functiontest_from_tuple_still_works_for_both_directions
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:36
Methodtest_frozen
(self)
lib/crewai/tests/skills/test_models.py:53
Methodtest_full_async_flow_cycle
Test complete async flow: start -> pause -> resume.
lib/crewai/tests/test_async_human_feedback.py:949
Methodtest_full_fixture_skill
(self)
lib/crewai/tests/skills/test_integration.py:55
Methodtest_full_plan_execution_workflow
Test complete workflow from plan to todos to execution.
lib/crewai/tests/utilities/test_structured_planning.py:575
Methodtest_full_precedence_chain
tool > task > agent > crew > warn.
lib/crewai/tests/tools/test_tool_failure.py:238
Functiontest_func
Test function with basic params.
lib/crewai/tests/tools/test_structured_tool.py:10
Functiontest_function_calling_schema_has_no_untyped_array_items
()
lib/crewai-tools/tests/tools/test_jev_decision_tool_optional_sdk.py:59
Methodtest_function_can_be_called
Test that the returned function can be called.
lib/crewai/tests/utilities/test_agent_utils.py:542
Methodtest_functions_dict_contains_callables
Test that the functions dict maps names to callable run methods.
lib/crewai/tests/utilities/test_agent_utils.py:532
Functiontest_future_base_tool_field_auto_excluded
If a new field is added to BaseTool in the future, it should be automatically excluded from spec generation without needing to update the igno
lib/crewai-tools/tests/test_generate_tool_specs.py:267
Methodtest_future_family_members_need_no_release
The staleness this replaced: an unreleased family must still match.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:186
Functiontest_gemini_1_5_response_model_uses_response_schema
Test that Gemini 1.5 models use response_schema parameter (not response_json_schema).
lib/crewai/tests/llms/google/test_google.py:1135
Functiontest_gemini_2_0_model_detection
Test that Gemini 2.0 models are properly detected.
lib/crewai/tests/llms/google/test_google.py:1042
Functiontest_gemini_2_0_response_model_with_property_ordering
Test that Gemini 2.0 models include propertyOrdering in response schemas.
lib/crewai/tests/llms/google/test_google.py:1107
Functiontest_gemini_agent_kickoff_structured_output_with_tools
Test that agent kickoff returns structured output after using tools. This tests post-tool-call structured output handling for Gemini models.
lib/crewai/tests/llms/google/test_google.py:1200
Functiontest_gemini_agent_kickoff_structured_output_without_tools
Test that agent kickoff returns structured output without tools. This tests native structured output handling for Gemini models.
lib/crewai/tests/llms/google/test_google.py:1164
Methodtest_gemini_agent_kickoff_with_tools_mocked
Test Gemini agent kickoff with mocked LLM call.
lib/crewai/tests/agents/test_native_tool_calling.py:601
Methodtest_gemini_agent_with_native_tool_calling
Test Gemini agent can use native tool calling.
lib/crewai/tests/agents/test_native_tool_calling.py:576
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:1378
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:1410
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:611
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:1243
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:825
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_generation_config_includes_seed_and_penalties
seed and the penalty settings reach the Gemini request config.
lib/crewai/tests/llms/google/test_google.py:556
Functiontest_gemini_generation_config_omits_unset_seed_and_penalties
Unset seed and penalties are left to the API defaults.
lib/crewai/tests/llms/google/test_google.py:572
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:631
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:721
Functiontest_gemini_message_formatting_leaves_user_terminated_history_unchanged
()
lib/crewai/tests/llms/google/test_google.py:751
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:663
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:693
Functiontest_gemini_message_formatting_raises_on_unresolved_function_call
()
lib/crewai/tests/llms/google/test_google.py:763
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:583
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:1487
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:1467
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:948
Functiontest_gemini_stop_sequences_sync
Test that stop and stop_sequences attributes stay synchronized.
lib/crewai/tests/llms/google/test_google.py:931
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:1283
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:1315
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:781
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:1340
Methodtest_gemini_style_keeps_sdk_id
(self)
lib/crewai/tests/utilities/test_agent_utils.py:892
Methodtest_gemini_style_without_id_differs_across_responses
(self)
lib/crewai/tests/utilities/test_agent_utils.py:900
Methodtest_gemini_style_without_id_is_stable_for_the_same_call
(self)
lib/crewai/tests/utilities/test_agent_utils.py:906
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:603
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:855
Functiontest_gemini_token_usage_tracking
Test that token usage is properly tracked for Gemini responses
lib/crewai/tests/llms/google/test_google.py:838
Functiontest_gemini_tool_conversion
Test that tools are properly converted to Gemini format
lib/crewai/tests/llms/google/test_google.py:792
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:885
← previousnext →15,001–15,100 of 20,757, ranked by callers