MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

Functiontest_openai_responses_api_parse_tool_outputs_basic_call
Test Responses API with parse_tool_outputs but no built-in tools.
lib/crewai/tests/llms/openai/test_openai.py:1512
Functiontest_openai_responses_api_parse_tool_outputs_default_false
Test that parse_tool_outputs defaults to False.
lib/crewai/tests/llms/openai/test_openai.py:1481
Functiontest_openai_responses_api_parse_tool_outputs_param
Test that parse_tool_outputs parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1470
Functiontest_openai_responses_api_prepare_params
Test that Responses API params are prepared correctly.
lib/crewai/tests/llms/openai/test_openai.py:972
Functiontest_openai_responses_api_preserves_assistant_content_with_tool_calls
Assistant text must be retained when it accompanies tool calls.
lib/crewai/tests/llms/openai/test_openai.py:1203
Functiontest_openai_responses_api_reasoning_tokens_extraction
Test that reasoning_tokens are extracted from Responses API responses.
lib/crewai/tests/llms/openai/test_openai.py:2395
Functiontest_openai_responses_api_reset_chain
Test reset_chain() method clears the response ID.
lib/crewai/tests/llms/openai/test_openai.py:1570
Functiontest_openai_responses_api_reset_reasoning_chain
Test reset_reasoning_chain() method clears reasoning items.
lib/crewai/tests/llms/openai/test_openai.py:1723
Functiontest_openai_responses_api_returns_usage_metrics
Test that Responses API calls return proper token usage metrics.
lib/crewai/tests/llms/openai/test_openai.py:1350
Functiontest_openai_responses_api_streaming
Test Responses API with streaming enabled.
lib/crewai/tests/llms/openai/test_openai.py:1332
Functiontest_openai_responses_api_structured_output_format
Test that structured outputs use text.format for Responses API.
lib/crewai/tests/llms/openai/test_openai.py:1050
Functiontest_openai_responses_api_tool_format
Test that tools are converted to Responses API format (internally-tagged).
lib/crewai/tests/llms/openai/test_openai.py:997
Functiontest_openai_responses_api_with_parse_tool_outputs
Test Responses API with parse_tool_outputs enabled returns ResponsesAPIResult.
lib/crewai/tests/llms/openai/test_openai.py:1492
Functiontest_openai_responses_api_with_previous_response_id
Test that previous_response_id is passed for multi-turn conversations.
lib/crewai/tests/llms/openai/test_openai.py:1070
Functiontest_openai_responses_api_with_structured_output
Test Responses API with structured output using Pydantic model.
lib/crewai/tests/llms/openai/test_openai.py:1127
Functiontest_openai_responses_api_with_system_message_extraction
Test that system messages are properly extracted to instructions.
lib/crewai/tests/llms/openai/test_openai.py:1149
Functiontest_openai_responses_api_with_web_search
Test Responses API with web_search built-in tool.
lib/crewai/tests/llms/openai/test_openai.py:1410
Methodtest_openai_responses_supports_pdf_for_gpt_aliases
OpenAI Responses PDF support applies to concrete GPT model names.
lib/crewai-files/tests/processing/test_constraints.py:75
Functiontest_openai_stop_words_not_applied_to_structured_output
Test that stop words are NOT applied when response_model is provided. This ensures JSON responses containing stop word patterns (like "Observ
lib/crewai/tests/llms/openai/test_openai.py:1944
Functiontest_openai_stop_words_still_applied_to_regular_responses
Test that stop words ARE still applied for regular (non-structured) responses. This ensures the fix didn't break normal stop word behavior.
lib/crewai/tests/llms/openai/test_openai.py:2068
Functiontest_openai_streaming_cached_prompt_tokens
Test that streaming Chat Completions API correctly extracts and tracks cached_prompt_tokens.
lib/crewai/tests/llms/openai/test_openai.py:2186
Methodtest_openai_streaming_emits_tool_call_events
Test that OpenAI streaming emits tool call events with correct call_type.
lib/crewai/tests/llms/test_tool_call_streaming.py:79
Functiontest_openai_streaming_keeps_a_tool_call_whose_chunks_also_carry_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2649
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:1157
Methodtest_openai_strict_preserves_property_named_title
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1139
Methodtest_openai_strict_preserves_recursive_type
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1189
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_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_reduces_size
Test that optimization reduces file size.
lib/crewai-files/tests/processing/test_transformers.py:125
Methodtest_optimize_respects_min_quality
Test that optimization stops at minimum quality.
lib/crewai-files/tests/processing/test_transformers.py:154
Methodtest_optimize_returns_image_file
Test that optimize returns an ImageFile instance.
lib/crewai-files/tests/processing/test_transformers.py:145
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:1049
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:1604
Functiontest_or_condition_self_listen_is_rejected
()
lib/crewai/tests/test_flow.py:2165
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:239
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:185
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:209
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:3180
Functiontest_other_tables_are_preserved
(pyproject)
lib/crewai/tests/telemetry/test_project_id.py:63
← previousnext →16,401–16,500 of 19,482, ranked by callers