Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
Function
test_openai_responses_api_auto_chain_param
Test that auto_chain parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1532
Function
test_openai_responses_api_auto_chain_prepare_params
Test that _prepare_responses_params uses auto-chained response ID.
lib/crewai/tests/llms/openai/test_openai.py:1585
Function
test_openai_responses_api_auto_chain_reasoning_adds_include
Test that auto_chain_reasoning adds reasoning.encrypted_content to include.
lib/crewai/tests/llms/openai/test_openai.py:1740
Function
test_openai_responses_api_auto_chain_reasoning_default_false
Test that auto_chain_reasoning defaults to False.
lib/crewai/tests/llms/openai/test_openai.py:1696
Function
test_openai_responses_api_auto_chain_reasoning_disabled_no_include
Test that reasoning.encrypted_content is not added when auto_chain_reasoning is False.
lib/crewai/tests/llms/openai/test_openai.py:1803
Function
test_openai_responses_api_auto_chain_reasoning_disabled_no_prepend
Test that reasoning items are not prepended when auto_chain_reasoning is False.
lib/crewai/tests/llms/openai/test_openai.py:1815
Function
test_openai_responses_api_auto_chain_reasoning_no_duplicate_include
Test that reasoning.encrypted_content is not duplicated if already in include.
lib/crewai/tests/llms/openai/test_openai.py:1768
Function
test_openai_responses_api_auto_chain_reasoning_param
Test that auto_chain_reasoning parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1684
Function
test_openai_responses_api_auto_chain_reasoning_prepends_to_input
Test that stored reasoning items are prepended to input.
lib/crewai/tests/llms/openai/test_openai.py:1782
Function
test_openai_responses_api_auto_chain_reasoning_preserves_existing_include
Test that auto_chain_reasoning preserves existing include items.
lib/crewai/tests/llms/openai/test_openai.py:1753
Function
test_openai_responses_api_auto_chain_with_reset
Test that reset_chain() properly starts a new conversation.
lib/crewai/tests/llms/openai/test_openai.py:1660
Function
test_openai_responses_api_basic_call
Test basic Responses API call with text generation.
lib/crewai/tests/llms/openai/test_openai.py:1112
Function
test_openai_responses_api_both_auto_chains_work_together
Test that auto_chain and auto_chain_reasoning can be used together.
lib/crewai/tests/llms/openai/test_openai.py:1834
Function
test_openai_responses_api_builtin_tools_param
Test that builtin_tools parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1365
Function
test_openai_responses_api_builtin_tools_with_custom_tools
Test that builtin_tools can be combined with custom function tools.
lib/crewai/tests/llms/openai/test_openai.py:1384
Function
test_openai_responses_api_cached_prompt_tokens
Test that the Responses API correctly extracts and tracks cached_prompt_tokens from input_tokens_details.cached_tokens.
lib/crewai/tests/llms/openai/test_openai.py:2157
Function
test_openai_responses_api_cached_prompt_tokens_with_tools
Test that the Responses API correctly tracks cached_prompt_tokens when function tools are used.
lib/crewai/tests/llms/openai/test_openai.py:2270
Function
test_openai_responses_api_call_routing
Test that call() routes to the correct API based on the api parameter.
lib/crewai/tests/llms/openai/test_openai.py:1086
Function
test_openai_responses_api_converts_assistant_tool_calls_message
Regression: assistant messages carrying tool_calls (Chat-Completions shape) must become standalone function_call input items, since the Respon
lib/crewai/tests/llms/openai/test_openai.py:1167
Function
test_openai_responses_api_converts_tool_result_message
Regression: tool-role messages (Chat-Completions shape) must become function_call_output input items for the Responses API.
lib/crewai/tests/llms/openai/test_openai.py:1264
Function
test_openai_responses_api_default_is_completions
Test that the default API is 'completions' for backward compatibility.
lib/crewai/tests/llms/openai/test_openai.py:811
Function
test_openai_responses_api_defaults_missing_tool_call_arguments
Missing or empty tool-call arguments must become a valid JSON object.
lib/crewai/tests/llms/openai/test_openai.py:1235
Function
test_openai_responses_api_explicit_previous_response_id_takes_precedence
Test that explicit previous_response_id overrides auto-chained ID.
lib/crewai/tests/llms/openai/test_openai.py:1602
Function
test_openai_responses_api_initialization
Test that OpenAI Responses API can be initialized with api='responses'.
lib/crewai/tests/llms/openai/test_openai.py:796
Function
test_openai_responses_api_last_reasoning_items_property
Test last_reasoning_items property.
lib/crewai/tests/llms/openai/test_openai.py:1706
Function
test_openai_responses_api_last_response_id_property
Test last_response_id property.
lib/crewai/tests/llms/openai/test_openai.py:1554
Function
test_openai_responses_api_multi_turn_tool_conversation_shape
Regression: a full multi-turn tool-calling conversation (user -> assistant tool_calls -> tool result) must convert entirely into valid Respons
lib/crewai/tests/llms/openai/test_openai.py:1290
Function
test_openai_responses_api_no_detail_fields_omitted
Test that reasoning/cached fields are omitted when Responses API details are absent.
lib/crewai/tests/llms/openai/test_openai.py:2416
Function
test_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
Function
test_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
Function
test_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
Function
test_openai_responses_api_prepare_params
Test that Responses API params are prepared correctly.
lib/crewai/tests/llms/openai/test_openai.py:972
Function
test_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
Function
test_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
Function
test_openai_responses_api_reset_chain
Test reset_chain() method clears the response ID.
lib/crewai/tests/llms/openai/test_openai.py:1570
Function
test_openai_responses_api_reset_reasoning_chain
Test reset_reasoning_chain() method clears reasoning items.
lib/crewai/tests/llms/openai/test_openai.py:1723
Function
test_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
Function
test_openai_responses_api_streaming
Test Responses API with streaming enabled.
lib/crewai/tests/llms/openai/test_openai.py:1332
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_openai_responses_api_with_structured_output
Test Responses API with structured output using Pydantic model.
lib/crewai/tests/llms/openai/test_openai.py:1127
Function
test_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
Function
test_openai_responses_api_with_web_search
Test Responses API with web_search built-in tool.
lib/crewai/tests/llms/openai/test_openai.py:1410
Method
test_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
Function
test_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
Function
test_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
Function
test_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
Method
test_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
Function
test_openai_streaming_keeps_a_tool_call_whose_chunks_also_carry_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2649
Function
test_openai_streaming_keeps_the_delta_of_a_chunk_that_also_carries_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2630
Function
test_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
Function
test_openai_streaming_returns_usage_metrics
Test that OpenAI streaming calls return proper token usage metrics.
lib/crewai/tests/llms/openai/test_openai.py:768
Function
test_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
Method
test_openai_strict_preserves_nested_property_named_title
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1157
Method
test_openai_strict_preserves_property_named_title
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1139
Method
test_openai_strict_preserves_recursive_type
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1189
Function
test_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
Function
test_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
Function
test_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
Function
test_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
Method
test_openai_surfaces_max_completion_tokens
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:301
Function
test_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
Method
test_openai_without_interceptor_works
Test that OpenAI LLM works without interceptor.
lib/crewai/tests/llms/hooks/test_openai_interceptor.py:82
Method
test_openais_own_url_is_not_a_compatible_server
(self)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:498
Method
test_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
Method
test_openrouter_config
Test OpenRouter configuration mapping.
lib/crewai-tools/tests/rag/test_embedding_service.py:335
Method
test_openrouter_config
Test OpenRouter provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:46
Method
test_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
Function
test_openrouter_defaults_to_openrouter_endpoint
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:114
Method
test_openrouter_headers
Test OpenRouter has HTTP-Referer header.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:245
Method
test_openrouter_import_error
Test handling of import errors for OpenRouter provider.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:84
Method
test_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
Function
test_openrouter_matches_chromadb_function
(openai_mock)
lib/crewai/tests/rag/embeddings/test_openai_compatible_providers.py:124
Method
test_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
Method
test_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
Method
test_openrouter_with_model_alias
Test OpenRouter configuration with 'model' alias instead of 'model_name'.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:53
Method
test_openrouter_with_nested_config
Test OpenRouter configuration with nested config key.
lib/crewai/tests/rag/embeddings/test_factory_openrouter.py:18
Method
test_opens_supported_formats
(self, fmt: str)
lib/crewai-files/tests/processing/test_images.py:48
Method
test_opt_out_sends_nothing
( self, exported_spans: Any, monkeypatch: pytest.MonkeyPatch, opt_out: str,
lib/crewai/tests/tools/test_tool_failure.py:2551
Method
test_opted_out_users_emit_nothing
No span and no feature count when telemetry is off.
lib/crewai-core/tests/test_telemetry_deploy.py:228
Method
test_optimize_image
(self)
lib/crewai-files/tests/processing/test_images.py:116
Method
test_optimize_reduces_size
Test that optimization reduces file size.
lib/crewai-files/tests/processing/test_transformers.py:128
Method
test_optimize_respects_min_quality
Test that optimization stops at minimum quality.
lib/crewai-files/tests/processing/test_transformers.py:157
Method
test_optimize_returns_image_file
Test that optimize returns an ImageFile instance.
lib/crewai-files/tests/processing/test_transformers.py:148
Method
test_optional_dependency_error_is_import_error
Test that OptionalDependencyError is a subclass of ImportError.
lib/crewai/tests/utilities/test_import_utils.py:46
Method
test_optional_field_defaults_to_none
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:96
Method
test_optional_fields_accept_none
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1049
Function
test_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
Method
test_optional_literal_allows_null
Optional[Literal[...]] fields should include null.
lib/crewai/tests/utilities/test_agent_utils.py:684
Function
test_optional_metadata
Ignore malformed optional metadata and protect generated counts.
lib/crewai-tools/tests/rag/test_notebook_loader.py:268
Method
test_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
Function
test_or_branch_does_not_leave_stale_and_state
()
lib/crewai/tests/test_flow.py:1605
Function
test_or_condition_self_listen_is_rejected
()
lib/crewai/tests/test_flow.py:2233
Method
test_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
Function
test_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
Function
test_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
Function
test_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
Function
test_oracle_embedder_and_memory_with_real_connection
( pytestconfig: pytest.Config, )
lib/crewai/tests/rag/embeddings/test_oracle_memory_integration.py:29
← previous
next →
16,501–16,600 of 19,663, ranked by callers