MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Functiontest_bedrock_regional_aliases_preserve_the_base_model_context_window
()
lib/crewai/tests/llms/test_context_window.py:93
Functiontest_bedrock_single_tool_result_still_works
Ensure single tool call still produces a single-block user message.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1375
Functiontest_bedrock_specific_parameters
Test Bedrock-specific parameters like stop_sequences and streaming
lib/crewai/tests/llms/bedrock/test_bedrock.py:185
Functiontest_bedrock_stop_sequences_sent_to_api
Test that stop_sequences are properly sent to the Bedrock API.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1102
Functiontest_bedrock_stop_sequences_sync
Test that stop and stop_sequences attributes stay synchronized.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1085
Functiontest_bedrock_streaming_parameter
Test that streaming parameter is properly handled
lib/crewai/tests/llms/bedrock/test_bedrock.py:696
Functiontest_bedrock_supports_stop_words
Test that Bedrock models support stop sequences
lib/crewai/tests/llms/bedrock/test_bedrock.py:638
Functiontest_bedrock_throttling_retries_without_context_recovery
Bedrock token throttles retry instead of being treated as context overflow.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1018
Functiontest_bedrock_token_usage_tracking
Test that token usage is properly tracked for Bedrock responses
lib/crewai/tests/llms/bedrock/test_bedrock.py:766
Functiontest_bedrock_tool_conversion
Test that tools are properly converted to Bedrock Converse format
lib/crewai/tests/llms/bedrock/test_bedrock.py:707
Functiontest_bedrock_tool_results_not_merged_across_assistant_messages
Tool results from different assistant turns must NOT be merged.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1407
Functiontest_bedrock_tool_use_conversation_flow
Test that the Bedrock completion properly handles tool use conversation flow
lib/crewai/tests/llms/bedrock/test_bedrock.py:882
Methodtest_bedrock_without_interceptor_works
Test that Bedrock LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_unsupported_providers.py:134
Methodtest_before_hook_blocks_tool_execution_in_crew
Test that returning False from before hook blocks tool execution.
lib/crewai/tests/hooks/test_tool_hooks.py:797
Methodtest_before_hook_can_allow_execution
Test that before hooks can explicitly allow execution.
lib/crewai/tests/hooks/test_tool_hooks.py:175
Methodtest_before_hook_can_block_execution
Test that before hooks can block tool execution.
lib/crewai/tests/hooks/test_tool_hooks.py:158
Methodtest_before_hook_can_modify_input
Test that before hooks can modify tool input in-place.
lib/crewai/tests/hooks/test_tool_hooks.py:190
Methodtest_before_hook_can_modify_messages
Test that before hooks can modify messages in-place.
lib/crewai/tests/hooks/test_llm_hooks.py:120
Functiontest_before_kickoff_callback
()
lib/crewai/tests/test_crew.py:4791
Functiontest_before_kickoff_modification
()
lib/crewai/tests/test_project.py:275
Functiontest_before_kickoff_with_none_input
()
lib/crewai/tests/test_project.py:294
Functiontest_before_kickoff_without_inputs
()
lib/crewai/tests/test_crew.py:4844
Methodtest_before_llm_call_decorator_registers_hook
Test that @before_llm_call decorator registers the hook.
lib/crewai/tests/hooks/test_decorators.py:52
Methodtest_before_llm_call_sets_attribute
Test that decorator sets is_before_llm_call_hook attribute.
lib/crewai/tests/hooks/test_decorators.py:286
Methodtest_before_llm_call_with_agent_filter
Test that agent filter works correctly.
lib/crewai/tests/hooks/test_decorators.py:96
Methodtest_before_tool_call_decorator_registers_hook
Test that @before_tool_call decorator registers the hook.
lib/crewai/tests/hooks/test_decorators.py:131
Methodtest_before_tool_call_sets_attributes_with_filters
Test that decorator with filters sets filter attributes.
lib/crewai/tests/hooks/test_decorators.py:296
Methodtest_before_tool_call_tool_filter_sanitizes_names
Tool filter should auto-sanitize names so users can pass BaseTool.name directly.
lib/crewai/tests/hooks/test_decorators.py:183
Methodtest_before_tool_call_with_combined_filters
Test that combined tool and agent filters work.
lib/crewai/tests/hooks/test_decorators.py:215
Methodtest_before_tool_call_with_tool_filter
Test that tool filter works correctly.
lib/crewai/tests/hooks/test_decorators.py:151
Functiontest_begin_creates_when_empty
()
lib/crewai/tests/test_execution_uuid.py:24
Functiontest_begin_does_not_overwrite_existing
()
lib/crewai/tests/test_execution_uuid.py:36
Functiontest_binary_content_type_is_rejected
An unsupported type is refused rather than returned as base64.
lib/crewai-tools/tests/url_read_tool_test.py:254
Functiontest_blank_existing_id_is_replaced_not_duplicated
A blank id reads as absent; appending would make a duplicate key.
lib/crewai/tests/telemetry/test_project_id.py:192
Methodtest_blank_filter_by_raises
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:124
Functiontest_blank_or_whitespace_id_is_treated_as_absent
Whitespace is truthy in Python but is not an identity. Accepting it would propagate a useless value into login payloads and tracing context.
lib/crewai/tests/telemetry/test_project_id.py:169
Functiontest_blank_query_is_rejected
Verify whitespace-only queries never reach the database.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:255
Methodtest_blocked_attempt_failures_survive_the_retry
The retry opens its own collector, so earlier records must be merged.
lib/crewai/tests/tools/test_tool_failure.py:1582
Methodtest_blocked_call_reports_no_failure
(self)
lib/crewai/tests/tools/test_tool_failure.py:1056
Functiontest_blocked_hook_does_not_return_a_cached_result
(backend)
lib/crewai/tests/agents/test_native_tool_hook_contract.py:166
Methodtest_blocks_127_0_0_1
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:150
Functiontest_blocks_absolute_path_in_filename
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:193
Methodtest_blocks_cloud_metadata
AWS/GCP/Azure metadata endpoint must be blocked.
lib/crewai-tools/tests/utilities/test_safe_path.py:154
Functiontest_blocks_directory_outside_working_directory
An absolute 'directory' must not escape the working directory.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:230
Functiontest_blocks_directory_traversal_outside_working_directory
..' in the directory must not escape the working directory either.
lib/crewai-tools/tests/tools/test_file_writer_tool.py:252
Methodtest_blocks_empty_hostname
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:273
Methodtest_blocks_file_scheme
file:// URLs must be blocked.
lib/crewai-tools/tests/utilities/test_safe_path.py:136
Methodtest_blocks_file_scheme_with_host
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:141
Methodtest_blocks_file_url_in_positional_arg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:37
Methodtest_blocks_file_url_via_github_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:67
Methodtest_blocks_file_url_via_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:55
Methodtest_blocks_file_url_via_youtube_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:71
Methodtest_blocks_ftp_scheme
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:269
Functiontest_blocks_hardlink_escaping_destination
A hardlink whose target escapes dest is rejected.
lib/cli/tests/skills/test_safe_extract.py:69
Functiontest_blocks_hardlink_to_dangling_symlink
tarfile re-creates a hardlink to a missing symlink member as that symlink, re-anchored at the hardlink's path; the fallback must not get that far.
lib/cli/tests/skills/test_safe_extract.py:146
Methodtest_blocks_ipv6_localhost
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:265
Methodtest_blocks_localhost
localhost must be blocked (resolves to 127.0.0.1).
lib/crewai-tools/tests/utilities/test_safe_path.py:145
Functiontest_blocks_member_name_outside_destination
(tmp_path: Path, name: str)
lib/cli/tests/skills/test_safe_extract.py:174
Functiontest_blocks_member_written_through_inside_symlink
A dest-relative symlink followed by a `..` member must not escape dest.
lib/cli/tests/skills/test_safe_extract.py:124
Methodtest_blocks_non_public_addresses
(self, ip)
lib/crewai-tools/tests/utilities/test_safe_path.py:331
Methodtest_blocks_private_10_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:159
Methodtest_blocks_private_172_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:253
Methodtest_blocks_private_192_range
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:257
Methodtest_blocks_private_ip_via_url_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:59
Methodtest_blocks_private_ip_via_website_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:63
Functiontest_blocks_relative_symlink_escaping_destination
A relative symlink (../..) that escapes dest is also rejected.
lib/cli/tests/skills/test_safe_extract.py:53
Functiontest_blocks_special_tar_member
Special tar members such as FIFOs are rejected.
lib/cli/tests/skills/test_safe_extract.py:85
Functiontest_blocks_symlink_escape
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:211
Functiontest_blocks_symlink_escaping_destination
A symlink whose target escapes dest, plus a file written through it, must be rejected before anything is extracted.
lib/cli/tests/skills/test_safe_extract.py:28
Functiontest_blocks_third_party_tool_type_without_opt_in
(tool_type: str)
lib/crewai/tests/tools/test_deserialization_guard.py:43
Functiontest_blocks_traversal_in_filename
(tool, temp_env)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:176
Methodtest_blocks_traversal_in_positional_arg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:33
Methodtest_blocks_traversal_via_directory_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:51
Methodtest_blocks_traversal_via_file_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:47
Methodtest_blocks_traversal_via_path_kwarg
(self, tool)
lib/crewai-tools/tests/tools/rag/test_rag_tool_path_validation.py:43
Methodtest_blocks_unparseable_input
(self, ip)
lib/crewai-tools/tests/utilities/test_safe_path.py:352
Methodtest_blocks_unresolvable_host
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:277
Methodtest_blocks_zero_address
(self)
lib/crewai-tools/tests/utilities/test_safe_path.py:261
Functiontest_bom_and_whitespace_do_not_hide_the_html_prefix
A BOM or leading whitespace must not demote HTML to raw text.
lib/crewai-tools/tests/url_read_tool_test.py:449
Methodtest_boolean_field
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:65
Functiontest_both_listing_failures_still_analyze
(tmp_path: Path)
lib/crewai/tests/memory/test_encoding_flow_analyze_fallback.py:62
Methodtest_both_llm_calls_fail_raises
When both structured and simple prompting fail, raise instead of emit[0].
lib/crewai/tests/test_human_feedback_decorator.py:515
Methodtest_both_none
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:112
Methodtest_both_shapes_carry_identical_keys
The dict shape has exactly the UsageMetrics fields on both types.
lib/crewai/tests/test_usage_shape_parity.py:84
Methodtest_both_update_and_yanked_warning_show
Test both update and yanked panels show when applicable.
lib/crewai/tests/cli/test_version.py:495
Methodtest_bound_instance_method_returns_none
(self)
lib/crewai/tests/test_callback.py:88
Methodtest_bound_method_callback_is_dropped_and_restore_completes
( self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch, kickoff: str, )
lib/crewai/tests/test_checkpoint.py:990
Methodtest_bound_method_warns_it_is_dropped
(self)
lib/crewai/tests/test_callback.py:169
Methodtest_boundary_id_rewrite_redirects_state_identity
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:646
Methodtest_branch_traversal_rejected
(self)
lib/crewai/tests/test_checkpoint.py:461
Functiontest_bridge_preserves_multimodal_and_null_content
(monkeypatch)
lib/crewai/tests/agents/test_conversation.py:278
Methodtest_broken_telemetry_does_not_break_finalization
Telemetry is best-effort: a failing exporter must not fail the batch.
lib/crewai/tests/tracing/test_tracing.py:1724
Functiontest_buffer_drops_single_span_larger_than_its_byte_limit
(monkeypatch)
lib/crewai/tests/telemetry/test_session_trace_export.py:828
Functiontest_buffer_evicts_oldest_spans_and_obeys_encoded_bytes
(monkeypatch)
lib/crewai/tests/telemetry/test_session_trace_export.py:809
Methodtest_build_embedder_azure
Test building Azure embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:74
Methodtest_build_embedder_cohere
Test building Cohere embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:163
Methodtest_build_embedder_connects_with_connection_params
(self, monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:227
Methodtest_build_embedder_custom_provider
Test building custom embedder.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:264
Methodtest_build_embedder_google_vertex_with_genai_model
Test routing to Google Vertex provider with new genai model.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:307
Methodtest_build_embedder_google_vertex_with_legacy_model
Test routing to Google Vertex provider with legacy textembedding-gecko model.
lib/crewai/tests/rag/embeddings/test_embedding_factory.py:337
← previousnext →11,801–11,900 of 19,735, ranked by callers