MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Methodtest_oauth2_base_url_with_custom_authorization_server_name
(self)
lib/cli/tests/authentication/providers/test_okta.py:230
Methodtest_oauth2_base_url_with_custom_authorization_server_name
(self)
lib/crewai/tests/cli/authentication/providers/test_okta.py:230
Methodtest_object_with_dict_attr
(self)
lib/crewai/tests/events/test_llm_usage_event.py:155
Methodtest_object_with_dict_excludes_private_attrs
(self)
lib/crewai/tests/events/test_llm_usage_event.py:169
Methodtest_object_without_properties_returns_dict
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:268
Functiontest_observation_failure_collapses_to_done_because_executor_continues
()
lib/cli/tests/test_crew_run_tui.py:1908
Functiontest_observe_command
Test the 'observe' command functionality.
lib/crewai-tools/tests/tools/stagehand_tool_test.py:197
Methodtest_observe_fallback_is_conservative_on_llm_error
(self)
lib/crewai/tests/agents/test_agent_executor.py:1541
Methodtest_observe_parses_json_string_from_llm
End-to-end: observer.observe() correctly parses a JSON string from llm.call().
lib/crewai/tests/agents/test_agent_executor.py:2405
Functiontest_octet_stream_html_is_sniffed_and_stripped
HTML bytes behind an unhelpful header still lose their markup.
lib/crewai-tools/tests/url_read_tool_test.py:428
Functiontest_octet_stream_pdf_falls_back_to_url_extension
A PDF served as octet-stream is still extracted, via its extension.
lib/crewai-tools/tests/url_read_tool_test.py:264
Functiontest_octet_stream_text_bodies_are_returned_verbatim
Decodable, NUL-free bytes are handed back untouched.
lib/crewai-tools/tests/url_read_tool_test.py:473
Functiontest_octet_stream_with_unknown_extension_is_rejected
With neither a usable type nor a known extension, the read is refused.
lib/crewai-tools/tests/url_read_tool_test.py:313
Methodtest_offset_and_a_limit_over_fifty_is_lowered
(self)
lib/crewai-files/tests/spreadsheets/test_answers.py:257
Functiontest_oidc_connection_uses_injected_credential_and_refreshable_callback
Verify OIDC token renewal and caller ownership of injected credentials.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:338
Functiontest_oidc_token_acquisition_failure_is_not_hidden
Verify OIDC credential failures propagate without authentication fallback.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_tool.py:443
Methodtest_ok_response_still_returns_json
(self, monkeypatch)
lib/crewai/tests/tools/test_tool_failure.py:1715
Functiontest_old_crewai_pin_in_uv_lock_warns
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:674
Methodtest_old_memories_at_root_still_accessible
Old memories stored at '/' are still accessible.
lib/crewai/tests/memory/test_memory_root_scope.py:721
Methodtest_older_than
(self)
lib/crewai/tests/test_checkpoint_cli.py:351
Methodtest_older_than
(self)
lib/crewai/tests/test_checkpoint_cli.py:413
Functiontest_ollama_appends_dummy_user_message_when_last_is_assistant
(ollama_llm)
lib/crewai/tests/test_llm.py:967
Functiontest_ollama_base_honors_ollama_host
(monkeypatch)
lib/cli/tests/test_model_catalog.py:303
Methodtest_ollama_base_url_normalized
Test Ollama base URL is normalized to include /v1.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:239
Methodtest_ollama_chat_is_alias
Test ollama_chat is configured same as ollama.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:71
Methodtest_ollama_config
Test Ollama provider configuration.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:62
Functiontest_ollama_does_not_modify_when_last_is_user
(ollama_llm)
lib/crewai/tests/test_llm.py:980
Functiontest_ollama_empty_response_not_filled_with_fallback
(monkeypatch)
lib/cli/tests/test_model_catalog.py:269
Functiontest_ollama_excludes_embedding_models
(monkeypatch)
lib/cli/tests/test_model_catalog.py:286
Functiontest_ollama_is_not_cached_reflects_installed_changes
(monkeypatch)
lib/cli/tests/test_model_catalog.py:538
Functiontest_ollama_never_written_to_catalog_cache
(monkeypatch)
lib/cli/tests/test_model_catalog.py:556
Methodtest_ollama_provider_accepts_model_key
Test Ollama provider accepts 'model' as alias for 'model_name'.
lib/crewai/tests/rag/embeddings/test_backward_compatibility.py:140
Functiontest_ollama_recovery_not_blocked_by_negative_cache
(monkeypatch)
lib/cli/tests/test_model_catalog.py:309
Functiontest_ollama_unreachable_uses_fallback
(monkeypatch)
lib/cli/tests/test_model_catalog.py:276
Methodtest_omits_missing_slugs
(self, mock_get_token, mock_plus_api_class, resolver)
lib/crewai/tests/mcp/test_amp_mcp.py:138
Methodtest_omits_the_status_key_when_there_was_no_response
A missing key means "no response"; a 0 would read as a status.
lib/crewai-core/tests/test_telemetry_deploy.py:192
Methodtest_omits_the_uuid_key_rather_than_writing_an_empty_one
Absent must stay distinguishable from empty, as on the sibling spans.
lib/crewai-core/tests/test_telemetry_deploy.py:126
Methodtest_omitted_defaults_to_none
(self, mock_emit)
lib/crewai/tests/events/test_llm_finish_reason_response_id.py:394
Methodtest_omitted_llm_collapse_uses_project_model
When emit is set without llm=, collapse uses MODEL via create_llm.
lib/crewai/tests/test_human_feedback_decorator.py:379
Methodtest_omitting_it_still_synthesizes_one
(self)
lib/crewai/tests/test_flow_conversation.py:2633
Functiontest_omitting_the_conversational_block_leaves_it_none
()
lib/crewai/tests/test_flow_definition.py:500
Methodtest_on_and_legacy_share_pre_model_call_queue
(self)
lib/crewai/tests/hooks/test_dispatch.py:173
Methodtest_on_decorated_method_registers_and_binds_self
(self)
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:317
Methodtest_on_inbound_called
Test that on_inbound is called and tracks responses.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:148
Methodtest_on_outbound_called
Test that on_outbound is called and tracks requests.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:137
Methodtest_on_registers_global_hook
(self)
lib/crewai/tests/hooks/test_dispatch.py:115
Functiontest_on_task_completed_still_routes_to_task_ended_and_closes_as_ok
The success path shares this handler's span map and must be unaffected. ``on_task_failed`` and ``on_task_completed`` both pop from ``execution_sp
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:334
Functiontest_on_task_failed_closes_the_span_as_error_either_way
Wiring-level coverage, including the case that used to leak the span entirely. Two defects on one line. The handler routed to ``task_ended``, whi
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:299
Functiontest_one_agent_rejects_session_switch_without_exposing_history
(monkeypatch, mode)
lib/crewai/tests/agents/test_conversation.py:300
Functiontest_one_cut_message_keeps_all_but_the_overshoot
A single message over the bound loses what is over, not half of itself.
lib/crewai/tests/telemetry/test_span_attribute_bound.py:241
Functiontest_one_empty_answer_is_retried_once
(empty: Any, use_async: bool)
lib/crewai/tests/agents/test_empty_llm_response_retry.py:107
Functiontest_one_far_down_cell_does_not_pad_the_output
A stray cell at row 100000 must not expand 5 KB into 100k blank rows. openpyxl pads every row up to the sheet's declared dimension, so trimming
lib/crewai-tools/tests/url_read_tool_test.py:675
Methodtest_oneof
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:340
Functiontest_only_a_missing_login_reads_as_anonymous
An unreadable credential store is not "anonymous": it is said out loud.
lib/cli/tests/experimental/test_eval_crew.py:1549
Functiontest_only_a_web_address_is_printed_and_opened
The report link comes from whichever AMP answered — which a project's `.env` may choose — and is opened without a click. Its host is not pinned
lib/cli/tests/experimental/test_eval_crew.py:1199
Methodtest_only_jsx_content
(self)
lib/crewai-tools/tests/rag/test_mdx_loader.py:129
Methodtest_only_one_chosen_header_row_is_kept_at_a_time
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:439
Methodtest_only_special_chars_returns_unknown
(self)
lib/crewai/tests/memory/test_memory_root_scope.py:59
Methodtest_only_the_first_twenty_rows_are_scanned
(self)
lib/crewai-files/tests/spreadsheets/test_reading.py:587
Functiontest_only_the_newest_saved_evaluations_are_kept
(project, monkeypatch)
lib/cli/tests/experimental/test_eval_crew.py:4007
Functiontest_only_the_whitespace_around_the_text_is_forgiven
The text in between is still matched exactly, and nothing matches an empty role.
lib/crewai/tests/test_llm_overlay.py:112
Methodtest_open_deployment_page_does_not_open_uuid_url_when_status_lookup_fails
( self, )
lib/cli/tests/deploy/test_deploy_main.py:492
Functiontest_open_issue_mention_blocks_close
(body: str)
lib/crewai/tests/ci/test_ftc_require_issue.py:99
Functiontest_openai_agent_kickoff_structured_output_with_tools
Test that agent kickoff returns structured output after using tools. This tests post-tool-call structured output handling for OpenAI models.
lib/crewai/tests/llms/openai/test_openai.py:1901
Functiontest_openai_agent_kickoff_structured_output_without_tools
Test that agent kickoff returns structured output without tools. This tests native structured output handling for OpenAI models.
lib/crewai/tests/llms/openai/test_openai.py:1865
Methodtest_openai_agent_kickoff_with_tools_mocked
Test OpenAI agent kickoff with mocked LLM call.
lib/crewai/tests/agents/test_native_tool_calling.py:253
Methodtest_openai_agent_with_native_tool_calling
Test OpenAI agent can use native tool calling.
lib/crewai/tests/agents/test_native_tool_calling.py:226
Methodtest_openai_and_anthropic_different_interceptors
Test that OpenAI and Anthropic LLMs can have different interceptors.
lib/crewai/tests/llms/hooks/test_anthropic_interceptor.py:271
Functiontest_openai_async_basic_call
Test basic async call with OpenAI.
lib/crewai/tests/llms/openai/test_openai_async.py:11
Functiontest_openai_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/openai/test_openai_async.py:66
Functiontest_openai_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/openai/test_openai_async.py:84
Functiontest_openai_async_streaming_keeps_the_delta_of_a_chunk_that_also_carries_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2695
Functiontest_openai_async_streaming_returns_tool_calls_without_available_functions
Test that async streaming returns tool calls list when available_functions is None. Same as the sync test but for the async path (_ahandle_stream
lib/crewai/tests/llms/openai/test_openai.py:2437
Functiontest_openai_async_streaming_returns_usage_metrics
Test that OpenAI async streaming calls return proper token usage metrics.
lib/crewai/tests/llms/openai/test_openai_async.py:142
Functiontest_openai_async_streaming_structured_output_keeps_the_delta_of_a_chunk_that_also_carries_usage
()
lib/crewai/tests/llms/openai/test_openai.py:2715
Functiontest_openai_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/openai/test_openai_async.py:36
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
← previousnext →16,401–16,500 of 19,735, ranked by callers