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_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
Method
test_streaming_handles_exceptions
Test that streaming properly propagates exceptions.
lib/crewai/tests/test_streaming.py:661
Method
test_streaming_kickoff_async_passes_checkpoint_config_to_astream
stream=True preserves checkpoint config when routing to astream.
lib/crewai/tests/test_streaming.py:635
Method
test_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
Method
test_streaming_litellm_chunk_shape
(self)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:421
Function
test_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
Method
test_streaming_params_include_usage
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/snowflake/test_snowflake.py:392
Method
test_streaming_properties_from_docs
Test streaming properties example from documentation.
lib/crewai/tests/test_streaming_integration.py:95
Function
test_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
Function
test_streaming_tool_call_turn_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:161
Method
test_streaming_types_importable_from_types_module
Test that streaming types can be imported from crewai.types.streaming.
lib/crewai/tests/test_streaming.py:911
Method
test_streaming_with_chunk_context_from_docs
Test streaming with chunk context example from documentation.
lib/crewai/tests/test_streaming_integration.py:63
Method
test_streaming_with_empty_content_chunks
Test streaming when LLM chunks have empty content.
lib/crewai/tests/test_streaming.py:685
Method
test_streaming_with_multiple_tasks
Test streaming with multiple tasks tracks task context.
lib/crewai/tests/test_streaming.py:706
Function
test_stress_many_readers_few_writers
()
lib/crewai/tests/utilities/events/test_rw_lock.py:209
Function
test_stress_test_rapid_emit
()
lib/crewai/tests/utilities/events/test_thread_safety.py:124
Method
test_strict_distillation_failure_can_be_retried_cleanly
(self)
lib/crewai/tests/test_async_human_feedback.py:1654
Method
test_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
Method
test_string_content
(self)
lib/crewai/tests/utilities/test_agent_utils.py:721
Function
test_string_content_is_sent_verbatim_as_one_text_block
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:180
Method
test_string_enum
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:122
Method
test_string_enum_rejects_invalid
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:134
Method
test_string_field
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:35
Method
test_string_llm_still_works
Test that passing llm as a string still works correctly.
lib/crewai/tests/test_async_human_feedback.py:1262
Method
test_string_refused_without_env_var
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:200
Method
test_string_reply_still_reaches_history
(self)
lib/crewai/tests/test_flow_conversation.py:3719
Method
test_string_resolves_multi_level_path
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:210
Method
test_string_resolves_with_env_var
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/test_callback.py:205
Function
test_string_status_code_is_understood
Some gateways stringify the upstream status.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:234
Method
test_string_without_dot_raises
(self)
lib/crewai/tests/test_callback.py:196
Method
test_strip_is_idempotent
(self)
lib/crewai/tests/llms/test_prompt_cache.py:23
Method
test_strips_block_comments
(self)
lib/crewai/tests/project/test_json_loader.py:31
Method
test_strips_litellm_pat_prefix_for_compatibility
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/snowflake/test_snowflake.py:66
Method
test_strips_null_from_anyof
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:936
Method
test_strips_null_from_type_array
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:944
Method
test_strips_single_line_comments
(self)
lib/crewai/tests/project/test_json_loader.py:25
Method
test_strips_surrounding_whitespace_from_the_version
(self)
lib/crewai/tests/skills/test_registry.py:176
Method
test_strips_terminal_escapes_and_keeps_emoji_codes_literal
( self, skill_command: SkillCommand, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/skills/test_main.py:554
Method
test_strips_trailing_slash
Test that trailing slash is handled.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:120
Method
test_structured_fails_but_simple_succeeds
When structured output fails but simple prompting works, use that.
lib/crewai/tests/test_human_feedback_decorator.py:531
Function
test_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
Function
test_structured_output_emits_completed_event_with_usage
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:193
Function
test_structured_state_persistence
Test persistence with Pydantic model state.
lib/crewai/tests/test_flow_persistence.py:44
Function
test_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
Function
test_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
Function
test_structured_tool_invoke_exception_handling
Test that exceptions don't cause duplicate execution.
lib/crewai/tests/tools/test_structured_tool.py:523
Function
test_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
Function
test_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
Method
test_subclass_can_override_conversation_start_helper
The compatibility helper remains overridable without adding a Flow node.
lib/crewai/tests/test_flow_conversation.py:750
Function
test_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
Function
test_success_false_with_both_result_and_error_rejected
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:21
Function
test_success_false_with_error_only_accepted
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:31
Method
test_success_panel_still_shown_for_a_working_call
(self)
lib/crewai/tests/tools/test_tool_failure.py:512
Method
test_success_panel_suppressed_when_the_call_failed
(self)
lib/crewai/tests/tools/test_tool_failure.py:508
Function
test_success_requires_the_current_stage_to_commit_and_updates_are_serializable
()
lib/crewai/tests/test_flow_jobs.py:149
Function
test_success_true_with_both_result_and_error_rejected
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:16
Function
test_success_true_with_result_only_accepted
()
lib/crewai/tests/utilities/test_guardrail_result_exclusivity.py:26
Function
test_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
Method
test_successful_call_still_returns_plain_text
(self)
lib/crewai/tests/tools/test_tool_failure.py:1670
Method
test_successful_configuration
(self, mock_get_version, mock_requests_get)
lib/cli/tests/enterprise/test_main.py:31
Method
test_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:48
Method
test_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:104
Method
test_successful_evaluation
(self, mock_create_llm, mock_agent, mock_task)
lib/crewai/tests/experimental/evaluation/metrics/test_tools_metrics.py:161
Method
test_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
Method
test_successful_execution
Execute completes successfully and enqueues completed task.
lib/crewai/tests/a2a/utils/test_task.py:150
Function
test_successful_generation_with_org_id
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:92
Function
test_successful_generation_without_org_id
(mock_post, tool)
lib/crewai-tools/tests/tools/generate_crewai_automation_tool_test.py:67
Function
test_successful_query_execution
(snowflake_tool, mock_snowflake_connection)
lib/crewai-tools/tests/tools/snowflake_search_tool_test.py:41
Function
test_successful_query_execution
(mongodb_vector_search_tool)
lib/crewai-tools/tests/tools/test_mongodb_vector_search_tool.py:17
Function
test_successful_query_execution
(oracle_tool)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:254
Method
test_successful_result_as_answer_still_short_circuits
(self)
lib/crewai/tests/tools/test_tool_failure.py:1191
Method
test_summarize_direct_anthropic
Test summarize_messages with claude-3-5-haiku.
lib/crewai/tests/utilities/test_summarize_integration.py:115
Method
test_summarize_direct_azure
Test summarize_messages with azure/gpt-4o-mini.
lib/crewai/tests/utilities/test_summarize_integration.py:157
Method
test_summarize_direct_gemini
Test summarize_messages with gemini-2.0-flash.
lib/crewai/tests/utilities/test_summarize_integration.py:136
Method
test_summarize_direct_openai
Test summarize_messages with gpt-4o-mini preserves system messages.
lib/crewai/tests/utilities/test_summarize_integration.py:88
Method
test_summarize_preserves_files_integration
Test that file references survive a real summarization call.
lib/crewai/tests/utilities/test_summarize_integration.py:237
Function
test_summarizes_context_before_llm_call
()
lib/crewai/tests/utilities/test_agent_utils.py:51
Function
test_summary_chunking_handles_non_additive_prompt_overhead
()
lib/crewai/tests/llms/test_context_window.py:408
Function
test_summary_chunking_rejects_unsplittable_oversized_content
()
lib/crewai/tests/llms/test_context_window.py:424
Function
test_summary_chunking_splits_a_single_oversized_text_message
()
lib/crewai/tests/llms/test_context_window.py:387
Function
test_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
Function
test_summary_extracts_structured_summary_tag
()
lib/crewai/tests/llms/test_context_window.py:333
Function
test_summary_limits_parallel_requests_to_four
()
lib/crewai/tests/llms/test_context_window.py:357
Function
test_summary_preserves_system_messages_and_merged_files
()
lib/crewai/tests/llms/test_context_window.py:304
Function
test_summary_prompt_preserves_tool_and_multimodal_text
()
lib/crewai/tests/llms/test_context_window.py:319
Function
test_summary_propagates_provider_context_errors
()
lib/crewai/tests/llms/test_context_window.py:347
Method
test_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
Method
test_supported
(self, model)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:165
Method
test_supported_providers_accept_interceptor
Test that supported providers accept and use interceptors.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:247
Method
test_supports_function_calling
Test that function calling is supported.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:266
Method
test_supports_function_calling_check
Test that supports_function_calling() is properly checked.
lib/crewai/tests/agents/test_native_tool_calling.py:900
Method
test_supports_function_calling_completions_openai_model
(self)
lib/crewai/tests/llms/azure/test_azure_responses.py:317
Function
test_supports_function_calling_false
()
lib/crewai/tests/utilities/test_converter.py:295
Method
test_supports_function_calling_responses
(self, mock_openai_completion)
lib/crewai/tests/llms/azure/test_azure_responses.py:312
Function
test_supports_function_calling_true
()
lib/crewai/tests/utilities/test_converter.py:290
Method
test_supports_multimodal_always_true
Test Gemini always supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:219
Method
test_supports_multimodal_claude3
Test Claude 3 model supports multimodal via litellm.
lib/crewai/tests/llms/test_multimodal.py:79
Method
test_supports_multimodal_claude3
Test Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:130
Method
test_supports_multimodal_claude3
Test Bedrock Claude 3 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:302
Method
test_supports_multimodal_claude4
Test Claude 4 supports multimodal.
lib/crewai/tests/llms/test_multimodal.py:135
← previous
next →
18,101–18,200 of 19,482, ranked by callers