MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,484 in github.com/crewAIInc/crewAI

Functiontest_openai_async_with_parameters
Test async call with multiple parameters.
lib/crewai/tests/llms/openai/test_openai_async.py:123
Functiontest_openai_async_with_response_format_json
Test async call with JSON response format.
lib/crewai/tests/llms/openai/test_openai_async.py:111
Functiontest_openai_async_with_response_format_none
Test async call with response_format set to None.
lib/crewai/tests/llms/openai/test_openai_async.py:99
Functiontest_openai_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/openai/test_openai_async.py:49
Functiontest_openai_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/openai/test_openai_async.py:24
Methodtest_openai_cached_prompt_tokens_are_not_added_twice
(self)
lib/crewai/tests/events/test_llm_usage_event.py:385
Methodtest_openai_call_with_interceptor_tracks_requests
Test that interceptor tracks OpenAI API requests.
lib/crewai/tests/llms/hooks/test_openai_interceptor.py:59
Methodtest_openai_client_is_reused_across_calls
(self)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:306
Functiontest_openai_client_setup_with_extra_arguments
Test that OpenAICompletion is initialized with correct parameters
lib/crewai/tests/llms/openai/test_openai.py:519
Functiontest_openai_compatible_providers_are_not_one_provider
OpenRouter, DeepSeek, Ollama and the rest share one class; each is its own vendor, so an OpenRouter key and endpoint must not travel to DeepSeek.
lib/crewai/tests/utilities/test_create_llm_like.py:157
Functiontest_openai_compatible_subclass_inherits_the_guard
OpenRouter routes through OpenAICompatibleCompletion, not OpenAICompletion.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:464
Functiontest_openai_compatible_token_count_uses_character_fallback
Compatible endpoints fall back when they lack Responses counting.
lib/crewai/tests/llms/openai/test_openai.py:76
Functiontest_openai_completion_call
Test that OpenAICompletion call method works
lib/crewai/tests/llms/openai/test_openai.py:289
Functiontest_openai_completion_call_arguments
Test that OpenAICompletion.call is invoked with correct arguments
lib/crewai/tests/llms/openai/test_openai.py:330
Functiontest_openai_completion_call_returns_usage_metrics
Test that OpenAICompletion.call returns usage metrics
lib/crewai/tests/llms/openai/test_openai.py:455
Functiontest_openai_completion_called_during_crew_execution
Test that OpenAICompletion.call is actually invoked when running a crew
lib/crewai/tests/llms/openai/test_openai.py:302
Functiontest_openai_completion_initialization_parameters
Test that OpenAICompletion is initialized with correct parameters
lib/crewai/tests/llms/openai/test_openai.py:272
Functiontest_openai_completion_is_used_when_no_provider_prefix
Test that OpenAICompletion is used when no provider prefix is given (defaults to openai)
lib/crewai/tests/llms/openai/test_openai.py:28
Functiontest_openai_completion_is_used_when_openai_provider
Test that OpenAICompletion from completion.py is used when LLM uses provider 'openai'
lib/crewai/tests/llms/openai/test_openai.py:17
Functiontest_openai_completion_module_is_imported
Test that the completion module is properly imported when using OpenAI provider
lib/crewai/tests/llms/openai/test_openai.py:225
Functiontest_openai_completion_with_tools
Test that OpenAICompletion.call is invoked with tools when agent has tools
lib/crewai/tests/llms/openai/test_openai.py:412
Functiontest_openai_completions_api_tool_format
Test that tools are converted to Chat Completions API format (externally-tagged).
lib/crewai/tests/llms/openai/test_openai.py:1024
Functiontest_openai_completions_cached_prompt_tokens
Test that the Chat Completions API correctly extracts and tracks cached_prompt_tokens from prompt_tokens_details.cached_tokens. Sends the
lib/crewai/tests/llms/openai/test_openai.py:2127
Functiontest_openai_completions_cached_prompt_tokens_with_tools
Test that the Chat Completions API correctly tracks cached_prompt_tokens when tools are used. The large system prompt should be cached across
lib/crewai/tests/llms/openai/test_openai.py:2213
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
← previousnext →16,301–16,400 of 19,484, ranked by callers