MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,484 in github.com/crewAIInc/crewAI

Functiontest_streaming_empty_response_handling
Test that streaming handles empty responses correctly.
lib/crewai/tests/utilities/test_events.py:1495
Functiontest_streaming_fallback_to_non_streaming
Test that streaming falls back to non-streaming when there's an error.
lib/crewai/tests/utilities/test_events.py:1444
Methodtest_streaming_handles_exceptions
Test that streaming properly propagates exceptions.
lib/crewai/tests/test_streaming.py:661
Methodtest_streaming_kickoff_async_passes_checkpoint_config_to_astream
stream=True preserves checkpoint config when routing to astream.
lib/crewai/tests/test_streaming.py:635
Methodtest_streaming_kickoff_passes_checkpoint_config_to_stream_events
stream=True preserves checkpoint config when routing to stream_events.
lib/crewai/tests/test_streaming.py:513
Methodtest_streaming_litellm_chunk_shape
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:421
Functiontest_streaming_non_dict_tool_input_coerced_to_empty_dict
Valid-but-non-object JSON input must be coerced to ``{}``. ``json.loads('"oops"')`` returns a string; passing it on as ``fn(**function_args)`
lib/crewai/tests/llms/bedrock/test_bedrock_streaming_tool_args.py:152
Methodtest_streaming_params_include_usage
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/snowflake/test_snowflake.py:392
Methodtest_streaming_properties_from_docs
Test streaming properties example from documentation.
lib/crewai/tests/test_streaming_integration.py:95
Functiontest_streaming_tool_call_preserves_arguments
Sync streaming: function_args must carry the streamed tool input.
lib/crewai/tests/llms/bedrock/test_bedrock_streaming_tool_args.py:79
Functiontest_streaming_tool_call_turn_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:161
Methodtest_streaming_types_importable_from_types_module
Test that streaming types can be imported from crewai.types.streaming.
lib/crewai/tests/test_streaming.py:911
Methodtest_streaming_with_chunk_context_from_docs
Test streaming with chunk context example from documentation.
lib/crewai/tests/test_streaming_integration.py:63
Methodtest_streaming_with_empty_content_chunks
Test streaming when LLM chunks have empty content.
lib/crewai/tests/test_streaming.py:685
Methodtest_streaming_with_multiple_tasks
Test streaming with multiple tasks tracks task context.
lib/crewai/tests/test_streaming.py:706
Functiontest_stress_many_readers_few_writers
()
lib/crewai/tests/utilities/events/test_rw_lock.py:209
Functiontest_stress_test_rapid_emit
()
lib/crewai/tests/utilities/events/test_thread_safety.py:124
Methodtest_strict_distillation_failure_can_be_retried_cleanly
(self)
lib/crewai/tests/test_async_human_feedback.py:1654
Methodtest_strict_mode_accepts_pdf_under_document_limit
Test a PDF under 4.5 MB is not rejected as too large.
lib/crewai-files/tests/processing/test_processor.py:332
Methodtest_string_content
(self)
lib/crewai/tests/utilities/test_agent_utils.py:721
Functiontest_string_content_is_sent_verbatim_as_one_text_block
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:180
Methodtest_string_enum
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:122
Methodtest_string_enum_rejects_invalid
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:134
Methodtest_string_field
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:35
Methodtest_string_llm_still_works
Test that passing llm as a string still works correctly.
lib/crewai/tests/test_async_human_feedback.py:1262
Methodtest_string_refused_without_env_var
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:200
Methodtest_string_reply_still_reaches_history
(self)
lib/crewai/tests/test_flow_conversation.py:3719
Methodtest_string_resolves_multi_level_path
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:210
Methodtest_string_resolves_with_env_var
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:205
Functiontest_string_status_code_is_understood
Some gateways stringify the upstream status.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:234
Methodtest_string_without_dot_raises
(self)
lib/crewai/tests/test_callback.py:196
Methodtest_strip_is_idempotent
(self)
lib/crewai/tests/llms/test_prompt_cache.py:23
Methodtest_strips_block_comments
(self)
lib/crewai/tests/project/test_json_loader.py:31
Methodtest_strips_litellm_pat_prefix_for_compatibility
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/snowflake/test_snowflake.py:66
Methodtest_strips_null_from_anyof
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:936
Methodtest_strips_null_from_type_array
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:944
Methodtest_strips_single_line_comments
(self)
lib/crewai/tests/project/test_json_loader.py:25
Methodtest_strips_surrounding_whitespace_from_the_version
(self)
lib/crewai/tests/skills/test_registry.py:176
Methodtest_strips_terminal_escapes_and_keeps_emoji_codes_literal
( self, skill_command: SkillCommand, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/skills/test_main.py:554
Methodtest_strips_trailing_slash
Test that trailing slash is handled.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:120
Methodtest_structured_fails_but_simple_succeeds
When structured output fails but simple prompting works, use that.
lib/crewai/tests/test_human_feedback_decorator.py:531
Functiontest_structured_flow_event_emission
Test that the correct events are emitted during structured flow execution with all fields validated.
lib/crewai/tests/test_flow.py:899
Functiontest_structured_output_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:193
Functiontest_structured_state_persistence
Test persistence with Pydantic model state.
lib/crewai/tests/test_flow_persistence.py:44
Functiontest_structured_suffix_type_is_treated_as_text
A +json vendor type is text, not an unsupported binary type.
lib/crewai-tools/tests/url_read_tool_test.py:233
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:408
Functiontest_summary_chunking_rejects_unsplittable_oversized_content
()
lib/crewai/tests/llms/test_context_window.py:424
Functiontest_summary_chunking_splits_a_single_oversized_text_message
()
lib/crewai/tests/llms/test_context_window.py:387
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:269
Functiontest_summary_extracts_structured_summary_tag
()
lib/crewai/tests/llms/test_context_window.py:333
Functiontest_summary_limits_parallel_requests_to_four
()
lib/crewai/tests/llms/test_context_window.py:357
Functiontest_summary_preserves_system_messages_and_merged_files
()
lib/crewai/tests/llms/test_context_window.py:304
Functiontest_summary_prompt_preserves_tool_and_multimodal_text
()
lib/crewai/tests/llms/test_context_window.py:319
Functiontest_summary_propagates_provider_context_errors
()
lib/crewai/tests/llms/test_context_window.py:347
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:239
Methodtest_supports_multimodal_claude3
Test Claude 3 model supports multimodal via litellm.
lib/crewai/tests/llms/test_multimodal.py:79
Methodtest_supports_multimodal_claude3
Test Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:130
Methodtest_supports_multimodal_claude3
Test Bedrock Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:322
← previousnext →18,101–18,200 of 19,484, ranked by callers