MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,663 in github.com/crewAIInc/crewAI

Functiontest_structured_tool_invoke_calls_func_only_once
Test that CrewStructuredTool.invoke() calls the underlying function exactly once.
lib/crewai/tests/tools/test_structured_tool.py:423
Functiontest_structured_tool_invoke_exception_handling
Test that exceptions don't cause duplicate execution.
lib/crewai/tests/tools/test_structured_tool.py:523
Functiontest_structured_tool_invoke_multiple_calls_increment_correctly
Test multiple calls to invoke() to ensure each increments correctly.
lib/crewai/tests/tools/test_structured_tool.py:463
Functiontest_structured_tool_invoke_with_side_effects
Test that side effects only happen once per invoke() call.
lib/crewai/tests/tools/test_structured_tool.py:497
Methodtest_subclass_can_override_conversation_start_helper
The compatibility helper remains overridable without adding a Flow node.
lib/crewai/tests/test_flow_conversation.py:750
Functiontest_subclass_without_config_field_is_reported
The base class defaults ``config`` from the subclass's own model, so a subclass that declares none must say so rather than raise ``KeyError``.
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:260
Functiontest_success_false_with_both_result_and_error_rejected
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:21
Functiontest_success_false_with_error_only_accepted
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:31
Methodtest_success_panel_still_shown_for_a_working_call
(self)
lib/crewai/tests/tools/test_tool_failure.py:512
Methodtest_success_panel_suppressed_when_the_call_failed
(self)
lib/crewai/tests/tools/test_tool_failure.py:508
Functiontest_success_requires_the_current_stage_to_commit_and_updates_are_serializable
()
lib/crewai/tests/test_flow_jobs.py:149
Functiontest_success_true_with_both_result_and_error_rejected
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:16
Functiontest_success_true_with_result_only_accepted
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:26
Functiontest_successful_and_failed_spans_are_distinguishable
The whole point: a downstream count of failures must be possible at all.
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:65
Methodtest_successful_call_still_returns_plain_text
(self)
lib/crewai/tests/tools/test_tool_failure.py:1670
Methodtest_successful_configuration
(self, mock_get_version, mock_requests_get)
lib/cli/tests/enterprise/test_main.py:31
Methodtest_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:48
Methodtest_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:104
Methodtest_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:161
Methodtest_successful_evaluation
( self, mock_create_llm, mock_agent, mock_task, mock_output, llm_calls )
lib/crewai/tests/experimental/evaluation/metrics/test_reasoning_metrics.py:60
Methodtest_successful_execution
Execute completes successfully and enqueues completed task.
lib/crewai/tests/a2a/utils/test_task.py:150
Functiontest_successful_generation_with_org_id
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:92
Functiontest_successful_generation_without_org_id
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:67
Functiontest_successful_query_execution
(snowflake_tool, mock_snowflake_connection)
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:41
Functiontest_successful_query_execution
(mongodb_vector_search_tool)
lib/crewai-tools/tests/tools/test_mongodb_vector_search_tool.py:17
Functiontest_successful_query_execution
(oracle_tool)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:254
Methodtest_successful_result_as_answer_still_short_circuits
(self)
lib/crewai/tests/tools/test_tool_failure.py:1191
Methodtest_summarize_direct_anthropic
Test summarize_messages with claude-3-5-haiku.
lib/crewai/tests/utilities/test_summarize_integration.py:115
Methodtest_summarize_direct_azure
Test summarize_messages with azure/gpt-4o-mini.
lib/crewai/tests/utilities/test_summarize_integration.py:157
Methodtest_summarize_direct_gemini
Test summarize_messages with gemini-2.0-flash.
lib/crewai/tests/utilities/test_summarize_integration.py:136
Methodtest_summarize_direct_openai
Test summarize_messages with gpt-4o-mini preserves system messages.
lib/crewai/tests/utilities/test_summarize_integration.py:88
Methodtest_summarize_preserves_files_integration
Test that file references survive a real summarization call.
lib/crewai/tests/utilities/test_summarize_integration.py:237
Functiontest_summarizes_context_before_llm_call
()
lib/crewai/tests/utilities/test_agent_utils.py:51
Functiontest_summary_chunking_handles_non_additive_prompt_overhead
()
lib/crewai/tests/llms/test_context_window.py:410
Functiontest_summary_chunking_rejects_unsplittable_oversized_content
()
lib/crewai/tests/llms/test_context_window.py:426
Functiontest_summary_chunking_splits_a_single_oversized_text_message
()
lib/crewai/tests/llms/test_context_window.py:389
Functiontest_summary_chunking_uses_the_rendered_request_token_estimator
Prompt overhead affects the chunk boundary, just as it does at call time.
lib/crewai/tests/llms/test_context_window.py:271
Functiontest_summary_extracts_structured_summary_tag
()
lib/crewai/tests/llms/test_context_window.py:335
Functiontest_summary_limits_parallel_requests_to_four
()
lib/crewai/tests/llms/test_context_window.py:359
Functiontest_summary_preserves_system_messages_and_merged_files
()
lib/crewai/tests/llms/test_context_window.py:306
Functiontest_summary_prompt_preserves_tool_and_multimodal_text
()
lib/crewai/tests/llms/test_context_window.py:321
Functiontest_summary_propagates_provider_context_errors
()
lib/crewai/tests/llms/test_context_window.py:349
Methodtest_sums_every_llm_call_in_the_flow
Multiple LLM calls — including bare ``LLM.call(...)`` made outside any crew — accumulate; ``successful_requests`` tracks the call count.
lib/crewai/tests/test_flow_usage_metrics.py:217
Methodtest_supported
(self, model)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:165
Methodtest_supported_providers_accept_interceptor
Test that supported providers accept and use interceptors.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:247
Methodtest_supports_function_calling
Test that function calling is supported.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:266
Methodtest_supports_function_calling_check
Test that supports_function_calling() is properly checked.
lib/crewai/tests/agents/test_native_tool_calling.py:900
Methodtest_supports_function_calling_completions_openai_model
(self)
lib/crewai/tests/llms/azure/test_azure_responses.py:317
Functiontest_supports_function_calling_false
()
lib/crewai/tests/utilities/test_converter.py:295
Methodtest_supports_function_calling_responses
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:312
Functiontest_supports_function_calling_true
()
lib/crewai/tests/utilities/test_converter.py:290
Methodtest_supports_multimodal_always_true
Test Gemini always supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:345
Methodtest_supports_multimodal_any_claude3_plus_and_geo_profile
( self, model: str )
lib/crewai/tests/llms/test_multimodal.py:486
Methodtest_supports_multimodal_claude3
Test Claude 3 model supports multimodal via litellm.
lib/crewai/tests/llms/test_multimodal.py:82
Methodtest_supports_multimodal_claude3
Test Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:133
Methodtest_supports_multimodal_claude3
Test Bedrock Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:428
Methodtest_supports_multimodal_claude3_and_later
(self, model: str)
lib/crewai/tests/llms/test_multimodal.py:154
Methodtest_supports_multimodal_claude4
Test Claude 4 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:138
Methodtest_supports_multimodal_gemini
Test Gemini model supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:88
Methodtest_supports_multimodal_gpt35_does_not
Test GPT-3.5 model does not support multimodal.
lib/crewai/tests/llms/test_multimodal.py:93
Methodtest_supports_multimodal_gpt4_turbo
Test GPT-4 Turbo model supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:77
Methodtest_supports_multimodal_gpt4_turbo
Test Azure GPT-4 Turbo supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:391
Methodtest_supports_multimodal_gpt4_vision
Test GPT-4 Vision supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:300
Methodtest_supports_multimodal_gpt4o
Test GPT-4o model supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:68
Methodtest_supports_multimodal_gpt4o
Test GPT-4o supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:295
Methodtest_supports_multimodal_gpt4o
Test Azure GPT-4o supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:386
Methodtest_supports_multimodal_gpt6
(self)
lib/crewai/tests/llms/test_multimodal.py:73
Methodtest_supports_multimodal_gpt6
(self, model: str)
lib/crewai/tests/llms/test_multimodal.py:311
Methodtest_supports_multimodal_o1
Test O1 model supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:305
Methodtest_supports_multimodal_openai_gpt_6
Test Bedrock OpenAI GPT-6 Sol/Luna/Astra support multimodal.
lib/crewai/tests/llms/test_multimodal.py:452
Methodtest_supports_stop_words_false_for_responses
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:327
Methodtest_supports_stop_words_true_for_completions_gpt4
(self)
lib/crewai/tests/llms/azure/test_azure_responses.py:332
Functiontest_suppress_flow_events_silences_method_lifecycle_events
``suppress_flow_events=True`` emits no MethodExecution* events on the bus (used by infrastructure flows like AgentExecutor so their control-flow
lib/crewai/tests/utilities/test_events.py:1229
Functiontest_suppress_logging_preserves_inherited_level
Keep NOTSET inheritance so later parent-level changes remain effective.
lib/crewai/tests/utilities/test_logger_utils.py:46
Functiontest_suppress_logging_restores_level
Restore the configured level after normal, error, and interrupted exits.
lib/crewai/tests/utilities/test_logger_utils.py:26
Functiontest_suppressed_flow_failure_matches_finished_event_emission
()
lib/crewai/tests/utilities/test_events.py:700
Methodtest_suppressed_resume_emits_a_matched_lifecycle_pair
A suppressed resume emits exactly one start and one finish. Both lifecycle events used to be gated on ``suppress_flow_events`` here,
lib/crewai/tests/test_async_human_feedback.py:492
Methodtest_switch_organization_not_found
(self, mock_console)
lib/cli/tests/organization/test_main.py:156
Methodtest_switch_organization_success
(self, mock_settings_class, mock_console)
lib/cli/tests/organization/test_main.py:132
Methodtest_switch_organization_unauthorized
(self, mock_console)
lib/cli/tests/organization/test_main.py:229
Functiontest_symlink_inside_cwd_is_allowed
(project: Path)
lib/crewai-files/tests/test_file_path_containment.py:23
Functiontest_symlink_to_sibling_dir_sharing_cwd_prefix_is_rejected
( project: Path, tmp_path: Path )
lib/crewai-files/tests/test_file_path_containment.py:51
Methodtest_symmetry_on_linear
(self, forward, reverse)
lib/crewai/tests/test_event_record.py:211
Methodtest_symmetry_on_tree
(self, forward, reverse)
lib/crewai/tests/test_event_record.py:199
Methodtest_sync_call_moves_to_responses
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:437
Methodtest_sync_checkpoint_fields_agent
(self)
lib/crewai/tests/test_checkpoint.py:751
Methodtest_sync_decorated_tool_arun_raises
Test sync decorated tool arun() raises NotImplementedError.
lib/crewai/tests/tools/test_async_tools.py:120
Methodtest_sync_decorated_tool_run
Test sync decorated tool works with run().
lib/crewai/tests/tools/test_async_tools.py:96
Methodtest_sync_dict_chunk_id_propagates_to_stream_event
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:346
Functiontest_sync_execution_error_reports_the_tool_name
()
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:83
Methodtest_sync_kickoff_triggered_by
Synchronous kickoff() should maintain correct triggered_by chains.
lib/crewai/tests/events/test_event_ordering.py:1578
Methodtest_sync_method_in_flow_triggered_by
Synchronous methods should still have correct triggered_by.
lib/crewai/tests/events/test_event_ordering.py:1235
Methodtest_sync_method_remains_sync
Test that sync methods remain synchronous.
lib/crewai/tests/test_human_feedback_decorator.py:288
Methodtest_sync_methods_work
Test that sync methods still work on async interceptor.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:236
Functiontest_sync_non_streaming_raises_provider_error
( mock_emit: MagicMock, error: Exception, message: str, attempts: int )
lib/crewai/tests/test_llm_litellm_streaming_errors.py:158
Functiontest_sync_plain_surfaces_upstream_timeout_not_typeerror
Not only structured calls: the plain path had the same defect.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:148
Functiontest_sync_producer_puts_the_exception_class_on_the_event
`Task._execute_core` must populate error_type, not just `error`. The tests above construct TaskFailedEvent directly, so a regression in the produ
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:411
Functiontest_sync_run_returns_direct_result
Test that _run in a synchronous tool returns a direct result, not a coroutine.
lib/crewai/tests/tools/test_base_tool.py:166
Functiontest_sync_stream_emits_finish_reason_and_response_id_from_loop
(mock_emit)
lib/crewai/tests/test_llm_streaming_finish_reason.py:65
Methodtest_sync_stream_moves_to_responses_stream
(self, monkeypatch)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:481
← previousnext →18,301–18,400 of 19,663, ranked by callers