MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Methodtest_openai_config
Test OpenAI configuration mapping.
lib/crewai-tools/tests/rag/test_embedding_service.py:263
Methodtest_openai_constraints
Test OpenAI constraints are properly defined.
lib/crewai-files/tests/processing/test_constraints.py:155
Functiontest_openai_excludes_fine_tunes_and_checkpoints
(monkeypatch)
lib/cli/tests/test_model_catalog.py:176
Methodtest_openai_format_strips_marker_from_wire_payload
(self)
lib/crewai/tests/llms/test_prompt_cache.py:184
Functiontest_openai_get_client_params_no_base_url
Test that _get_client_params works correctly when no base_url is specified
lib/crewai/tests/llms/openai/test_openai.py:648
Functiontest_openai_get_client_params_priority_order
Test the priority order: base_url > api_base > OPENAI_BASE_URL > OPENAI_API_BASE
lib/crewai/tests/llms/openai/test_openai.py:621
Functiontest_openai_get_client_params_with_api_base
Test that _get_client_params correctly converts api_base to base_url
lib/crewai/tests/llms/openai/test_openai.py:575
Functiontest_openai_get_client_params_with_base_url_priority
Test that base_url takes priority over api_base in _get_client_params
lib/crewai/tests/llms/openai/test_openai.py:586
Functiontest_openai_get_client_params_with_env_var
Test that _get_client_params uses OPENAI_BASE_URL environment variable as fallback
lib/crewai/tests/llms/openai/test_openai.py:598
Functiontest_openai_get_client_params_with_legacy_api_base_env_var
Test that _get_client_params uses OPENAI_API_BASE when OPENAI_BASE_URL is absent.
lib/crewai/tests/llms/openai/test_openai.py:609
Functiontest_openai_gpt56_family_uses_official_context_window
Native OpenAI must not inherit the shorter gpt-5 window for GPT-5.6.
lib/crewai/tests/llms/openai/test_openai.py:2046
Functiontest_openai_gpt5_and_gpt54_mini_keep_their_windows
()
lib/crewai/tests/llms/openai/test_openai.py:2059
Functiontest_openai_gpt5_models_do_not_support_stop_words
Test that GPT-5 family models do not support stop words via the API. GPT-5 models reject the 'stop' parameter, so stop words must be appl
lib/crewai/tests/llms/openai/test_openai.py:1975
Functiontest_openai_gpt5_still_applies_stop_words_client_side
Test that GPT-5 models still truncate responses at stop words client-side via _apply_stop_words(), even though they don't send 'stop' to the
lib/crewai/tests/llms/openai/test_openai.py:2022
Functiontest_openai_input_token_count_falls_back_after_api_errors
Count-endpoint errors fall back to the character estimate.
lib/crewai/tests/llms/openai/test_openai.py:932
Functiontest_openai_input_token_count_forwards_previous_response_id
Counting preserves the conversation context selected for generation.
lib/crewai/tests/llms/openai/test_openai.py:867
Functiontest_openai_input_token_count_forwards_responses_payload
Messages, multimodal content, and tools use the Responses request shape.
lib/crewai/tests/llms/openai/test_openai.py:888
Functiontest_openai_input_token_count_live
OpenAI returns a positive input-token count for a real request.
lib/crewai/tests/llms/openai/test_openai.py:965
Functiontest_openai_input_token_count_uses_responses_file_format
File content is formatted for the Responses count endpoint.
lib/crewai/tests/llms/openai/test_openai.py:841
Functiontest_openai_input_token_count_uses_responses_without_changing_generation_api
Counting uses Responses while generation keeps the configured API.
lib/crewai/tests/llms/openai/test_openai.py:818
Functiontest_openai_is_default_provider_without_explicit_llm_set_on_agent
Test that OpenAI is the default provider when no explicit LLM is set on the agent
lib/crewai/tests/llms/openai/test_openai.py:200
Methodtest_openai_itself_is_held_to_the_known_shapes
The lenient match is for other servers; OpenAI's 400s stay precise.
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:680
Methodtest_openai_key_fallback_is_unchanged
Without an Azure key the delegate still reads OPENAI_API_KEY, as before.
lib/crewai/tests/llms/test_missing_api_key.py:332
Methodtest_openai_key_is_never_used_for_a_compatible_provider
(self)
lib/crewai/tests/llms/test_missing_api_key.py:415
Methodtest_openai_llm_accepts_interceptor
Test that OpenAI LLM accepts interceptor parameter.
lib/crewai/tests/llms/hooks/test_openai_interceptor.py:50
Methodtest_openai_mock_structured_response
Test parsing OpenAI structured response.
lib/crewai/tests/utilities/test_structured_planning.py:516
Methodtest_openai_native_tool_calling_token_usage
Test token usage tracking with OpenAI native tool calling.
lib/crewai/tests/agents/test_native_tool_calling.py:928
Functiontest_openai_no_detail_fields_omitted
Test that reasoning/cached fields are omitted when details are absent.
lib/crewai/tests/llms/openai/test_openai.py:2548
Functiontest_openai_non_gpt5_models_support_stop_words
Test that non-GPT-5 models still support stop words normally.
lib/crewai/tests/llms/openai/test_openai.py:2002
Functiontest_openai_offers_only_the_gpt_6_family
No GPT-4, GPT-5.x or o-series model: all superseded by GPT-6, and the GPT-4.1 snapshots shut down on 2027-01-14.
lib/cli/tests/test_constants.py:35
Methodtest_openai_parallel_native_tool_calling_test_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:307
Methodtest_openai_parallel_native_tool_calling_test_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:283
Methodtest_openai_parallel_native_tool_calling_tool_hook_parity_agent_kickoff
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:391
Methodtest_openai_parallel_native_tool_calling_tool_hook_parity_crew
( self, parallel_tools: list[BaseTool] )
lib/crewai/tests/agents/test_native_tool_calling.py:325
Functiontest_openai_prefixed_custom_endpoint_uses_native_sdk_for_nested_model_id
Custom OpenAI-compatible endpoints may serve non-OpenAI model ids.
lib/crewai/tests/llms/openai/test_openai.py:118
Functiontest_openai_prefixed_gpt56_luna_uses_official_context_window
()
lib/crewai/tests/llms/openai/test_openai.py:2052
Functiontest_openai_prefixed_unknown_model_ignores_ambient_base_url_for_routing
Ambient OpenAI configuration must not opt unknown models into native routing.
lib/crewai/tests/llms/openai/test_openai.py:158
Methodtest_openai_provider_accepts_model_key
Test OpenAI provider accepts 'model' as alias for 'model_name'.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:36
Methodtest_openai_provider_ignores_chat_model_env
Test OpenAI embeddings don't inherit the chat model env var.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:52
Methodtest_openai_provider_model_name_takes_precedence
Test that model_name takes precedence when both are provided.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:44
Functiontest_openai_raises_error_when_model_not_supported
Test that OpenAICompletion raises ValueError when model not supported
lib/crewai/tests/llms/openai/test_openai.py:484
Functiontest_openai_reasoning_tokens_extraction
Test that reasoning_tokens are extracted from OpenAI o-series responses.
lib/crewai/tests/llms/openai/test_openai.py:2527
Methodtest_openai_research_workflow_generates_steps
Test that OpenAI generates structured plan steps for a research task.
lib/crewai/tests/utilities/test_structured_planning.py:372
Functiontest_openai_response_format_none
Test that when response_format is None, the API returns plain text.
lib/crewai/tests/llms/openai/test_openai.py:756
Functiontest_openai_response_format_with_dict
Test that response_format with a dict returns JSON output.
lib/crewai/tests/llms/openai/test_openai.py:742
Functiontest_openai_response_format_with_pydantic_model
Test that response_format with a Pydantic BaseModel returns structured output.
lib/crewai/tests/llms/openai/test_openai.py:721
Functiontest_openai_responses_api_auto_chain_default_false
Test that auto_chain defaults to False.
lib/crewai/tests/llms/openai/test_openai.py:1544
Functiontest_openai_responses_api_auto_chain_disabled_no_tracking
Test that response ID is not tracked when auto_chain is False.
lib/crewai/tests/llms/openai/test_openai.py:1618
Functiontest_openai_responses_api_auto_chain_integration
Test auto-chaining tracks response IDs across calls.
lib/crewai/tests/llms/openai/test_openai.py:1633
Functiontest_openai_responses_api_auto_chain_param
Test that auto_chain parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1532
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_openai_responses_api_basic_call
Test basic Responses API call with text generation.
lib/crewai/tests/llms/openai/test_openai.py:1112
Functiontest_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
Functiontest_openai_responses_api_builtin_tools_param
Test that builtin_tools parameter is properly configured.
lib/crewai/tests/llms/openai/test_openai.py:1365
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_openai_responses_api_initialization
Test that OpenAI Responses API can be initialized with api='responses'.
lib/crewai/tests/llms/openai/test_openai.py:796
Functiontest_openai_responses_api_last_reasoning_items_property
Test last_reasoning_items property.
lib/crewai/tests/llms/openai/test_openai.py:1706
Functiontest_openai_responses_api_last_response_id_property
Test last_response_id property.
lib/crewai/tests/llms/openai/test_openai.py:1554
Functiontest_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
Functiontest_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
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
← previousnext →16,501–16,600 of 19,735, ranked by callers