MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,735 in github.com/crewAIInc/crewAI

Methodtest_list_templates_prints_output
(self, mock_get, mock_prompt, cmd)
lib/crewai/tests/cli/remote_template/test_main.py:127
Methodtest_list_templates_quit
(self, mock_get, mock_prompt, mock_install, cmd)
lib/crewai/tests/cli/remote_template/test_main.py:266
Methodtest_list_templates_selects_and_installs
(self, mock_get, mock_prompt, mock_install, cmd)
lib/crewai/tests/cli/remote_template/test_main.py:248
Methodtest_list_triggers_api_error
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:65
Methodtest_list_triggers_no_apps
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:53
Methodtest_list_triggers_success
(self, mock_console_print)
lib/cli/tests/triggers/test_main.py:24
Methodtest_list_triggers_unauthorized_asks_for_login
Not folded into "Error fetching triggers": the login hint survives.
lib/cli/tests/triggers/test_main.py:73
Functiontest_listen_node_has_trigger_methods
Test that listen nodes include trigger method information.
lib/crewai/tests/test_flow_visualization.py:308
Functiontest_listen_runtime_uses_flow_definition_without_legacy_listener_metadata
()
lib/crewai/tests/test_flow.py:328
Functiontest_listener_can_register_handlers_again
A leaked listener must not block later handler registration. `cleanup_event_handlers` wipes the bus between tests, but `setup_listeners` retu
lib/crewai/tests/tracing/test_trace_listener_isolation.py:44
Methodtest_listener_consults_the_predicates
The listener must route through the predicates, not its own logic.
lib/crewai/tests/tools/test_tool_failure.py:536
Functiontest_lists_actual_path_when_descendant_repeats_base_path
( tmp_path: Path, monkeypatch )
lib/crewai-tools/tests/tools/test_directory_read_tool.py:8
Methodtest_lists_every_page_with_the_query
( self, skill_command: SkillCommand, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/skills/test_main.py:390
Methodtest_lists_only_skills_below_instructions_level
(self, tmp_path: Path)
lib/crewai/tests/skills/test_loader.py:241
Functiontest_lite_agent_forced_final_answer_is_admitted_by_the_rpm_limiter
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:509
Functiontest_lite_agent_forces_final_answer_with_user_turn
The forced final answer is requested with a trailing user turn, not assistant prefill.
lib/crewai/tests/agents/test_lite_agent.py:1360
Functiontest_lite_agent_gets_the_overlay_model
()
lib/crewai/tests/test_llm_overlay.py:157
Methodtest_lite_agent_hooks_integration_with_real_llm
Test that LiteAgent executes before/after LLM call hooks and prints messages correctly.
lib/crewai/tests/hooks/test_llm_hooks.py:440
Methodtest_lite_agent_hooks_integration_with_real_tool
Test that LiteAgent executes before/after tool call hooks with real tool calls.
lib/crewai/tests/hooks/test_tool_hooks.py:497
Functiontest_lite_agent_inside_flow_sync
Test that LiteAgent.kickoff() works magically inside a Flow. This tests the "magic auto-async" pattern where calling agent.kickoff() from wit
lib/crewai/tests/agents/test_lite_agent.py:752
Functiontest_lite_agent_inside_flow_with_tools
Test that LiteAgent with tools works correctly inside a Flow.
lib/crewai/tests/agents/test_lite_agent.py:787
Functiontest_lite_agent_kickoff_async_inside_flow
Test that Agent.kickoff_async() works correctly from async Flow methods.
lib/crewai/tests/agents/test_lite_agent.py:845
Functiontest_lite_agent_memory_instance_recall_and_save_called
With a custom memory instance, kickoff calls recall and then extract_memories/remember.
lib/crewai/tests/agents/test_lite_agent.py:1161
Functiontest_lite_agent_memory_none_default
With memory=None (default), _memory is None and no memory is used.
lib/crewai/tests/agents/test_lite_agent.py:1107
Functiontest_lite_agent_memory_true_resolves_to_default_memory
With memory=True, _memory is a Memory instance.
lib/crewai/tests/agents/test_lite_agent.py:1132
Functiontest_lite_agent_model_dump_json_with_callable_guardrail
()
lib/crewai/tests/test_guardrail_serialization.py:121
Methodtest_lite_agent_output_exposes_token_usage_object
(self)
lib/crewai/tests/test_usage_shape_parity.py:52
Functiontest_lite_agent_output_includes_messages
Test that LiteAgentOutput includes messages from agent execution.
lib/crewai/tests/agents/test_lite_agent.py:224
Methodtest_lite_agent_output_token_usage_zeroed_when_absent
(self)
lib/crewai/tests/test_usage_shape_parity.py:66
Functiontest_lite_agent_raises_typed_error_after_two_empty_answers
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:499
Functiontest_lite_agent_recovers_from_one_empty_answer
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:491
Functiontest_lite_agent_retry_is_admitted_by_the_rpm_limiter
()
lib/crewai/tests/agents/test_empty_llm_response_retry.py:223
Functiontest_lite_agent_returns_usage_metrics
Test that LiteAgent returns usage metrics.
lib/crewai/tests/agents/test_lite_agent.py:203
Functiontest_lite_agent_returns_usage_metrics_async
Test that LiteAgent returns usage metrics when run asynchronously.
lib/crewai/tests/agents/test_lite_agent.py:246
Functiontest_lite_agent_skips_preflight_when_context_respect_is_disabled
()
lib/crewai/tests/agents/test_lite_agent.py:631
Functiontest_lite_agent_standalone_still_works
Test that LiteAgent.kickoff() still works normally outside of a Flow. This verifies that the magic auto-async pattern doesn't break standalone us
lib/crewai/tests/agents/test_lite_agent.py:868
Functiontest_lite_agent_structured_output
Test that Agent can return a simple structured output.
lib/crewai/tests/agents/test_lite_agent.py:160
Functiontest_lite_agent_summarizes_before_calling_the_llm
()
lib/crewai/tests/agents/test_lite_agent.py:602
Functiontest_lite_agent_verbose_false_suppresses_printer_output
Test that setting verbose=False suppresses all printer output.
lib/crewai/tests/agents/test_lite_agent.py:1068
Functiontest_lite_agent_with_custom_llm_and_guardrails
Test that CustomLLM (inheriting from BaseLLM) works with guardrails.
lib/crewai/tests/agents/test_lite_agent.py:532
Functiontest_lite_agent_with_invalid_llm
Test that LiteAgent raises proper error when create_llm returns None.
lib/crewai/tests/agents/test_lite_agent.py:652
Functiontest_lite_agent_with_tools
Test that Agent can use tools.
lib/crewai/tests/agents/test_lite_agent.py:118
Functiontest_litellm_anthropic_error_handling
Test that AnthropicError from LiteLLM is handled correctly and not retried.
lib/crewai/tests/agents/test_agent.py:2080
Functiontest_litellm_async_basic_call
Test basic async call with LiteLLM fallback.
lib/crewai/tests/llms/litellm/test_litellm_async.py:11
Functiontest_litellm_async_conversation
Test async call with conversation history.
lib/crewai/tests/llms/litellm/test_litellm_async.py:70
Functiontest_litellm_async_multiple_calls
Test making multiple async calls in sequence.
lib/crewai/tests/llms/litellm/test_litellm_async.py:89
Functiontest_litellm_async_streaming
Test async streaming call with LiteLLM fallback.
lib/crewai/tests/llms/litellm/test_litellm_async.py:126
Functiontest_litellm_async_streaming_with_parameters
Test async streaming call with multiple parameters.
lib/crewai/tests/llms/litellm/test_litellm_async.py:140
Functiontest_litellm_async_with_max_tokens
Test async call with max_tokens parameter.
lib/crewai/tests/llms/litellm/test_litellm_async.py:38
Functiontest_litellm_async_with_parameters
Test async call with multiple parameters.
lib/crewai/tests/llms/litellm/test_litellm_async.py:105
Functiontest_litellm_async_with_system_message
Test async call with system message.
lib/crewai/tests/llms/litellm/test_litellm_async.py:52
Functiontest_litellm_async_with_temperature
Test async call with temperature parameter.
lib/crewai/tests/llms/litellm/test_litellm_async.py:25
Functiontest_litellm_auth_error_handling
Test that LiteLLM authentication errors are handled correctly and not retried.
lib/crewai/tests/agents/test_agent.py:2050
Functiontest_litellm_empty_stream_raises_typed_error_with_one_failed_event
( llm_events: list[Any], )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:329
Functiontest_litellm_empty_then_text_retries_once_with_events_per_call
( stream: bool, use_async: bool, llm_events: list[Any] )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:353
Functiontest_litellm_extra_matches_crewai_routing_for_every_prefix
The CLI copies crewAI's rule for which prefixes have a native provider and which names it takes; a model crewAI sends to LiteLLM must get the
lib/cli/tests/test_constants.py:328
Functiontest_litellm_fetch_attempted_once_per_process
(monkeypatch)
lib/cli/tests/test_model_catalog.py:484
Functiontest_litellm_fills_uncurated_bedrock
(monkeypatch)
lib/cli/tests/test_model_catalog.py:499
Functiontest_litellm_gpt5_call_succeeds_without_stop_error
Integration test: GPT-5 call succeeds when stop words are configured, because stop is omitted from API params and applied client-side.
lib/crewai/tests/test_llm.py:790
Functiontest_litellm_gpt5_does_not_send_stop_in_params
Test that the LiteLLM fallback path does not include 'stop' in API params for GPT-5.x models, since they reject it at the API level.
lib/crewai/tests/test_llm.py:801
Functiontest_litellm_gpt5_uses_the_shared_openai_context_window
()
lib/crewai/tests/test_llm.py:395
Functiontest_litellm_input_token_count_includes_structured_output_tool
()
lib/crewai/tests/test_llm.py:857
Functiontest_litellm_input_token_count_uses_character_fallback
()
lib/crewai/tests/test_llm.py:887
Functiontest_litellm_input_token_count_uses_formatted_messages_and_tools
()
lib/crewai/tests/test_llm.py:833
Functiontest_litellm_keeps_provider_but_formats_multimodal_as_openai_schema
()
lib/crewai/tests/test_llm.py:1135
Functiontest_litellm_loads_without_custom_tool_call_type
Older litellm lacks ChatCompletionDeltaCustomToolCall; it is only a type hint.
lib/crewai/tests/llms/litellm/test_litellm_import_compat.py:26
Functiontest_litellm_map_includes_the_openai_gpt5_family
()
lib/crewai/tests/llms/test_context_window.py:103
Functiontest_litellm_non_gpt5_sends_stop_in_params
Test that the LiteLLM fallback path still includes 'stop' in API params for models that support it.
lib/crewai/tests/test_llm.py:817
Functiontest_litellm_path_preserves_provider_from_model_prefix
(model, expected_provider)
lib/crewai/tests/test_llm.py:1128
Functiontest_litellm_retry_catches_litellm_unsupported_params_error
Test that the retry logic catches LiteLLM's UnsupportedParamsError format ("does not support parameters") in addition to the OpenAI API forma
lib/crewai/tests/test_llm.py:894
Functiontest_litellm_retry_catches_openai_api_stop_error
Test that the retry logic still catches the OpenAI API error format ("Unsupported parameter: 'stop'").
lib/crewai/tests/test_llm.py:931
Functiontest_litellm_strips_provider_prefix
(monkeypatch)
lib/cli/tests/test_model_catalog.py:399
Functiontest_litellm_tier_for_uncurated_provider
(monkeypatch)
lib/cli/tests/test_model_catalog.py:370
Functiontest_live_answer_of_the_wrong_type_fails
(record, answers, error)
lib/crewai/tests/test_jev_evaluation_runner.py:600
Functiontest_live_answer_without_probabilities_or_usage
()
lib/crewai/tests/test_jev_evaluation_runner.py:627
Functiontest_live_azure_documentdb_and_openai_with_entra
Use an explicitly selected identity without falling back to another login.
lib/crewai-tools/tests/tools/test_azure_documentdb_vector_search_e2e.py:154
Functiontest_live_client_errors_become_failed_records
()
lib/crewai/tests/test_jev_evaluation_runner.py:540
Functiontest_live_collection_builds_questions_and_records_metadata
(monkeypatch)
lib/crewai/tests/test_jev_evaluation_runner.py:487
Functiontest_live_collection_requires_questions
(override)
lib/crewai/tests/test_jev_evaluation_runner.py:645
Functiontest_live_collection_skips_recorded_decisions
()
lib/crewai/tests/test_jev_evaluation_runner.py:650
Methodtest_live_llm_object_is_not_downgraded_by_the_definition
(self)
lib/crewai/tests/test_flow_conversation.py:3201
Methodtest_live_router_response_format_is_not_downgraded
(self)
lib/crewai/tests/test_flow_conversation.py:3213
Methodtest_llm_accepts_every_documented_effort
(self, effort)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:701
Methodtest_llm_action_inside_flow_claims_flow_trace_batch
(self)
lib/crewai/tests/test_flow_conversation.py:1874
Functiontest_llm_call
()
lib/crewai/tests/agents/test_agent.py:1387
Functiontest_llm_call_events_share_call_id
All events from a single LLM call should share the same call_id.
lib/crewai/tests/utilities/test_events.py:1750
Functiontest_llm_call_when_stop_is_unsupported
(caplog)
lib/crewai/tests/test_llm.py:763
Functiontest_llm_call_when_stop_is_unsupported_when_additional_drop_params_is_provided
( caplog, )
lib/crewai/tests/test_llm.py:774
Functiontest_llm_call_with_all_attributes
()
lib/crewai/tests/agents/test_agent.py:1524
Functiontest_llm_call_with_error
()
lib/crewai/tests/agents/test_agent.py:1396
Functiontest_llm_call_with_message_list
()
lib/crewai/tests/test_llm.py:80
Functiontest_llm_call_with_ollama_llama3
()
lib/crewai/tests/agents/test_agent.py:1564
Functiontest_llm_call_with_string_input
()
lib/crewai/tests/test_llm.py:55
Functiontest_llm_call_with_string_input_and_callbacks
()
lib/crewai/tests/test_llm.py:64
Functiontest_llm_call_with_tool_and_message_list
()
lib/crewai/tests/test_llm.py:144
Functiontest_llm_call_with_tool_and_string_input
()
lib/crewai/tests/test_llm.py:108
Functiontest_llm_callback_replacement
()
lib/crewai/tests/test_llm.py:29
Functiontest_llm_completed_event_includes_usage
()
lib/crewai/tests/utilities/test_events.py:1345
Methodtest_llm_creates_native_snowflake_provider
( self, monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/snowflake/test_snowflake.py:109
Methodtest_llm_creates_openai_compatible_for_cerebras
Test LLM factory creates OpenAICompatibleCompletion for Cerebras.
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:305
← previousnext →15,501–15,600 of 19,735, ranked by callers