MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Functiontest_openai_streaming_keeps_the_delta_of_a_chunk_that_also_carries_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2630
Functiontest_openai_streaming_returns_tool_calls_without_available_functions
Test that streaming returns tool calls list when available_functions is None. This mirrors the non-streaming path where tool_calls are returned f
lib/crewai/tests/llms/openai/test_openai.py:2322
Functiontest_openai_streaming_returns_usage_metrics
Test that OpenAI streaming calls return proper token usage metrics.
lib/crewai/tests/llms/openai/test_openai.py:768
Functiontest_openai_streaming_with_response_model
Test that streaming with response_model works correctly and doesn't call invalid API methods. This test verifies the fix for the bug where st
lib/crewai/tests/llms/openai/test_openai.py:661
Methodtest_openai_strict_preserves_nested_property_named_title
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1205
Methodtest_openai_strict_preserves_property_named_title
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1187
Methodtest_openai_strict_preserves_recursive_type
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1237
Functiontest_openai_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/openai/test_openai.py:2090
Functiontest_openai_style_image_url_part_is_sent_as_a_converse_image_block
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:219
Functiontest_openai_style_slug_code_is_not_treated_as_a_status
`code` is a slug in OpenAI-style bodies, not an HTTP status.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:242
Functiontest_openai_style_text_part_is_sent_as_a_converse_text_block
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:205
Methodtest_openai_surfaces_max_completion_tokens
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:301
Functiontest_openai_tool_result_overflow_threshold_uses_input_token_count
A result over one quarter of the usable context window is deferred.
lib/crewai/tests/llms/openai/test_openai.py:948
Methodtest_openai_without_interceptor_works
Test that OpenAI LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_openai_interceptor.py:82
Methodtest_openais_own_url_is_not_a_compatible_server
(self)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:498
Methodtest_openclip_provider_accepts_model_key
Test OpenCLIP provider accepts 'model' as alias for 'model_name'.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:172
Methodtest_openrouter_config
Test OpenRouter configuration mapping.
lib/crewai-tools/tests/rag/test_embedding_service.py:335
Methodtest_openrouter_config
Test OpenRouter provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:46
Methodtest_openrouter_default_model_without_model_arg
Test constructing EmbeddingService(provider='openrouter') without a model uses namespaced default.
lib/crewai-tools/tests/rag/test_embedding_service.py:390
Functiontest_openrouter_defaults_to_openrouter_endpoint
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:114
Methodtest_openrouter_headers
Test OpenRouter has HTTP-Referer header.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:245
Methodtest_openrouter_import_error
Test handling of import errors for OpenRouter provider.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:84
Methodtest_openrouter_initialization_with_env_key_only
Test OpenRouter initialization when OPENROUTER_API_KEY is set in env.
lib/crewai-tools/tests/rag/test_embedding_service.py:367
Functiontest_openrouter_matches_chromadb_function
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:124
Methodtest_openrouter_provider_accepts_model_key
Test OpenRouter provider accepts 'model' as alias for 'model_name'.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:62
Methodtest_openrouter_provider_ignores_chat_model_env
Test OpenRouter embeddings don't inherit unrelated chat model env vars.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:70
Methodtest_openrouter_with_model_alias
Test OpenRouter configuration with 'model' alias instead of 'model_name'.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:53
Methodtest_openrouter_with_nested_config
Test OpenRouter configuration with nested config key.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:18
Methodtest_opens_supported_formats
(self, fmt: str)
lib/crewai-files/tests/processing/test_images.py:48
Methodtest_opt_out_sends_nothing
( self, exported_spans: Any, monkeypatch: pytest.MonkeyPatch, opt_out: str,
lib/crewai/tests/tools/test_tool_failure.py:2551
Methodtest_opted_out_users_emit_nothing
No span and no feature count when telemetry is off.
lib/crewai-core/tests/test_telemetry_deploy.py:228
Methodtest_optimize_image
(self)
lib/crewai-files/tests/processing/test_images.py:116
Methodtest_optimize_reduces_size
Test that optimization reduces file size.
lib/crewai-files/tests/processing/test_transformers.py:155
Methodtest_optimize_respects_min_quality
Test that optimization stops at minimum quality.
lib/crewai-files/tests/processing/test_transformers.py:184
Methodtest_optimize_returns_image_file
Test that optimize returns an ImageFile instance.
lib/crewai-files/tests/processing/test_transformers.py:175
Methodtest_optional_dependency_error_is_import_error
Test that OptionalDependencyError is a subclass of ImportError.
lib/crewai/tests/utilities/test_import_utils.py:46
Methodtest_optional_field_defaults_to_none
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:96
Methodtest_optional_fields_accept_none
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1097
Functiontest_optional_fields_stay_nullable_in_the_prompt_schema
An Optional field must still be expressible as null in the prompt schema. The provider-side response schema generated from the same model allows
lib/crewai/tests/agents/test_agent_utils.py:20
Methodtest_optional_literal_allows_null
Optional[Literal[...]] fields should include null.
lib/crewai/tests/utilities/test_agent_utils.py:684
Functiontest_optional_metadata
Ignore malformed optional metadata and protect generated counts.
lib/crewai-tools/tests/rag/test_notebook_loader.py:268
Methodtest_optional_string_allows_null
Optional[str] fields should include null in the schema so the LLM can send null instead of being forced to guess a value.
lib/crewai/tests/utilities/test_agent_utils.py:670
Functiontest_or_branch_does_not_leave_stale_and_state
()
lib/crewai/tests/test_flow.py:1605
Functiontest_or_condition_self_listen_is_rejected
()
lib/crewai/tests/test_flow.py:2233
Methodtest_or_condition_triggered_by
Listener with OR condition should have triggered_by_event_id pointing to whichever method triggered it.
lib/crewai/tests/events/test_event_ordering.py:845
Functiontest_or_listener_does_not_double_fire_across_chained_routers
Chained routers within one dispatch wave must not re-fire the same ``or_`` listener.
lib/crewai/tests/test_flow.py:240
Functiontest_or_listener_fires_once_across_parallel_starts
Parallel ``@start`` paths feeding ``or_`` must not double-fire the listener.
lib/crewai/tests/test_flow.py:186
Functiontest_or_listener_re_arms_across_router_loop
Regression for #5972: multi-source ``or_`` re-fires on each router emission.
lib/crewai/tests/test_flow.py:210
Functiontest_oracle_embedder_and_memory_with_real_connection
( pytestconfig: pytest.Config, )
lib/crewai/tests/rag/embeddings/test_oracle_memory_integration.py:29
Methodtest_oracle_embedding_proxy_cleanup_error_preserves_original_error
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:201
Methodtest_oracle_embedding_restores_fetch_lobs_when_call_fails
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:182
Functiontest_oracle_env_config_requires_explicit_credentials
(monkeypatch)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:23
Functiontest_oracle_vector_search_tool_creates_vector_index_type
( pytestconfig: pytest.Config, idx_type: str, params: dict[str, int], expected_parameter_text:
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:364
Functiontest_oracle_vector_search_tool_with_real_connection
( pytestconfig: pytest.Config, )
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:170
Functiontest_oracle_vector_search_tool_with_real_connection_batch_embedding
( pytestconfig: pytest.Config, )
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:288
Methodtest_ordering
(self)
lib/crewai/tests/skills/test_models.py:19
Functiontest_ordinary_agent_requires_explicit_opt_in
()
lib/crewai/tests/agents/test_conversation.py:47
Functiontest_ordinary_agents_and_flows_do_not_emit_standalone_usage
( standalone_exporter, monkeypatch )
lib/crewai/tests/telemetry/test_tracer_isolation.py:316
Methodtest_ordinary_exception_is_swallowed_and_later_hooks_run
(self)
lib/crewai/tests/hooks/test_dispatch.py:96
Methodtest_ordinary_text_is_still_a_reply
(self)
lib/crewai/tests/test_flow_conversation.py:3043
Functiontest_org_commands_exit_1_when_logged_out
(runner, args)
lib/cli/tests/organization/test_main.py:258
Functiontest_org_current_command
(mock_org_command_class, runner)
lib/cli/tests/organization/test_main.py:58
Functiontest_org_current_exits_0_when_an_org_is_selected
(runner)
lib/cli/tests/organization/test_main.py:294
Functiontest_org_list_command
(mock_org_command_class, runner)
lib/cli/tests/organization/test_main.py:34
Functiontest_org_list_exits_0_when_logged_in
(runner, orgs, expected)
lib/cli/tests/organization/test_main.py:280
Functiontest_org_switch_command
(mock_org_command_class, runner)
lib/cli/tests/organization/test_main.py:46
Functiontest_organization_member_reopening_pr_bypasses_issue_gate
()
lib/crewai/tests/ci/test_ftc_require_issue.py:162
Functiontest_origin_url
(fp, repository)
lib/cli/tests/test_git.py:110
Functiontest_orphaned_shard_cleanup
(tmp_path: Path)
lib/crewai/tests/memory/test_qdrant_edge_storage.py:239
Methodtest_other_aggregates_leave_it_out_too
(self, operation)
lib/crewai-files/tests/spreadsheets/test_answers.py:622
Methodtest_other_construction_errors_are_still_import_errors
(self)
lib/crewai/tests/llms/test_missing_api_key.py:439
Functiontest_other_errors_are_not_retried
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:143
Methodtest_other_files_are_not_spreadsheets
(self, file)
lib/crewai-files/tests/spreadsheets/test_loading.py:62
Methodtest_other_presigned_files_are_not
(self, url, monkeypatch)
lib/crewai-files/tests/spreadsheets/test_loading.py:356
Functiontest_other_provider_errors_are_not_retried
()
lib/crewai/tests/test_flow_context_compaction.py:168
Methodtest_other_provider_shapes_still_work
Chat Completions and Bedrock shapes must be unaffected.
lib/crewai/tests/llms/openai/test_responses_tool_loop.py:73
Functiontest_other_refusals_at_a_terminal_offer_no_login
(project, monkeypatch, usage, logins, refusal, reason)
lib/cli/tests/experimental/test_eval_crew.py:2478
Functiontest_other_refusals_on_this_screen_offer_no_login
( rejected_login, monkeypatch, refusal, reason )
lib/cli/tests/test_crew_run_tui.py:3209
Functiontest_other_tables_are_preserved
(pyproject)
lib/crewai/tests/telemetry/test_project_id.py:63
Functiontest_other_tar_formats
(mock_prepare, mock_compress, mock_exists, format, tool)
lib/crewai-tools/tests/tools/files_compressor_tool_test.py:59
Functiontest_our_own_spans_still_reach_our_exporter
The isolation must not cost us the telemetry we do want.
lib/crewai/tests/telemetry/test_tracer_isolation.py:87
Functiontest_our_spans_are_unaffected_by_an_application_provider
An app that installs its own provider must not divert our telemetry. Resolving our tracer globally meant that in an already-instrumented appl
lib/crewai/tests/telemetry/test_tracer_isolation.py:147
Methodtest_outbound_header_modification
Test that interceptor can add headers to outbound requests.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:193
Functiontest_output_file_absolute_path_via_interpolation
Inputs cannot turn a relative output_file template into an absolute path.
lib/crewai/tests/test_task.py:1284
Functiontest_output_file_drive_relative_template_accepts_relative_input
()
lib/crewai/tests/test_task.py:1333
Functiontest_output_file_drive_relative_template_cannot_become_absolute
A drive-relative template (C:name) is not a root the inputs may extend.
lib/crewai/tests/test_task.py:1319
Functiontest_output_file_path_traversal_via_interpolation
Test that path traversal injected through template interpolation is caught. Regression test for GHSA-hq26-r99g-pvv4: output_file was validated at
lib/crewai/tests/test_task.py:1230
Functiontest_output_file_shell_injection_via_interpolation
Test that shell special chars injected through interpolation are caught.
lib/crewai/tests/test_task.py:1261
Functiontest_output_file_unresolved_template_via_interpolation
An input that smuggles template syntax back into the path is rejected.
lib/crewai/tests/test_task.py:1345
Functiontest_output_file_validation
Test output file path validation.
lib/crewai/tests/test_task.py:1164
Functiontest_output_json_dict_hierarchical
()
lib/crewai/tests/test_task.py:559
Functiontest_output_json_dict_sequential
()
lib/crewai/tests/test_task.py:534
Functiontest_output_json_hierarchical
()
lib/crewai/tests/test_task.py:384
Functiontest_output_json_sequential
()
lib/crewai/tests/test_task.py:352
Functiontest_output_json_to_another_task
()
lib/crewai/tests/test_task.py:627
Functiontest_output_json_with_a_date_field_is_saved_as_json
(tmp_path, monkeypatch, answer)
lib/crewai/tests/test_task.py:739
Methodtest_output_matching_this_turns_intent_is_not_promoted
(self)
lib/crewai/tests/test_flow_conversation.py:3733
Methodtest_output_modification_is_honored
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:114
Methodtest_output_modification_reaches_kickoff_completed_event
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:585
Methodtest_output_object_reply_reaches_history
(self)
lib/crewai/tests/test_flow_conversation.py:3709
← previousnext →16,601–16,700 of 19,735, ranked by callers