Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
Function
test_json_run_installs_dependencies_when_pyproject_has_no_lockfile
JSON crew runs should lock/sync project dependencies only when needed.
lib/cli/tests/test_run_crew.py:586
Function
test_json_run_skips_dependency_install_when_lockfile_and_venv_exist
( monkeypatch, tmp_path: Path, lockfile: str )
lib/cli/tests/test_run_crew.py:647
Function
test_json_run_skips_dependency_install_without_pyproject
( monkeypatch, tmp_path: Path )
lib/cli/tests/test_run_crew.py:668
Function
test_json_run_skips_uv_sync_when_only_poetry_lock_exists_without_venv
( monkeypatch, tmp_path: Path )
lib/cli/tests/test_run_crew.py:626
Function
test_json_run_syncs_frozen_when_uv_lock_exists_without_venv
( monkeypatch, tmp_path: Path )
lib/cli/tests/test_run_crew.py:606
Function
test_json_run_uses_poetry_run_for_poetry_lock_without_uv_lock
( monkeypatch, tmp_path: Path )
lib/cli/tests/test_run_crew.py:135
Function
test_json_run_uses_project_env_when_pyproject_exists
JSON crew runs should execute inside the project uv environment.
lib/cli/tests/test_run_crew.py:72
Function
test_json_run_without_pyproject_runs_in_process
(monkeypatch, tmp_path: Path)
lib/cli/tests/test_run_crew.py:539
Function
test_json_runner_code_loads_current_cli_package_over_project_env
(tmp_path: Path)
lib/cli/tests/test_run_crew.py:189
Function
test_json_runner_ends_a_quit_prompt_as_click_ends_its_commands
Ctrl-C or Ctrl-D at a prompt in the runner, the API key's included.
lib/cli/tests/test_run_crew.py:505
Function
test_json_runner_ignores_crewai_modules_planted_in_the_project
The runner starts in the project folder; a crewai_core package there must not be the module that pins where the saved login travels, while the
lib/cli/tests/test_run_crew.py:282
Function
test_json_runner_imports_with_older_project_env_crewai_core
(tmp_path: Path)
lib/cli/tests/test_run_crew.py:357
Function
test_json_runner_imports_with_older_project_env_crewai_core
(tmp_path: Path)
lib/crewai/tests/cli/test_run_crew.py:228
Function
test_json_runner_on_a_crewai_without_missing_api_key_error_fails_as_before
Before 1.15.34 crewai raised a plain ValueError for a missing key.
lib/cli/tests/test_run_crew.py:521
Function
test_json_runner_pins_the_machines_proxy_before_the_project_env_loads
The runner is a fresh interpreter that never imports cli.py. It reads the machine's proxy and CA for AMP before `_run_json_crew` loads the project
lib/cli/tests/test_run_crew.py:237
Function
test_json_runner_stops_a_crew_without_its_key_with_one_line
The class is the project's crewai's own, and the stop is a message, not a traceback.
lib/cli/tests/test_run_crew.py:477
Function
test_json_runner_stops_when_plus_api_fails_to_import
Only a crewai-core without plus_api is skipped; a plus_api that fails to import stops the runner with its own error instead of running unpinned.
lib/cli/tests/test_run_crew.py:329
Function
test_json_runtime_fields_are_deploy_errors
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:198
Method
test_json_schema_is_string
(self)
lib/crewai/tests/test_callback.py:325
Function
test_json_schema_state
()
lib/crewai/tests/test_flow_from_definition.py:3346
Function
test_json_schema_state_required_fields_can_come_from_kickoff_inputs
()
lib/crewai/tests/test_flow_from_definition.py:3361
Function
test_json_schema_state_validates_inputs
()
lib/crewai/tests/test_flow_from_definition.py:3355
Function
test_json_search_tool
()
lib/crewai-tools/tests/tools/test_search_tools.py:114
Method
test_json_serializable
AgentCard should be JSON serializable.
lib/crewai/tests/a2a/utils/test_agent_card.py:295
Method
test_json_serialize_module_function
(self)
lib/crewai/tests/test_callback.py:249
Function
test_json_setup_env_asks_for_the_key_of_the_provider_crewai_runs_the_model_on
( tmp_path, monkeypatch, capsys, no_provider_keys, terminal_stdin, model, prompt, key_name )
lib/cli/tests/test_create_crew.py:1989
Function
test_json_setup_env_blank_key_already_exported_prints_no_line_to_add
( tmp_path, monkeypatch, capsys, no_provider_keys )
lib/cli/tests/test_create_crew.py:1905
Function
test_json_setup_env_blank_key_prints_the_line_to_add_and_claims_no_save
( tmp_path, monkeypatch, capsys, no_provider_keys, terminal_stdin )
lib/cli/tests/test_create_crew.py:1776
Function
test_json_setup_env_blank_region_still_reports_the_keys_saved
( tmp_path, monkeypatch, capsys, no_provider_keys )
lib/cli/tests/test_create_crew.py:1889
Function
test_json_setup_env_hides_only_secrets_at_a_terminal
( tmp_path, monkeypatch, terminal_stdin, model, prompts )
lib/cli/tests/test_create_crew.py:1956
Function
test_json_setup_env_lists_each_missing_key_of_a_multi_key_provider
( tmp_path, monkeypatch, capsys, no_provider_keys )
lib/cli/tests/test_create_crew.py:1809
Function
test_json_setup_env_lists_neither_azure_deployment_name_nor_api_version
( tmp_path, monkeypatch, capsys, no_provider_keys )
lib/cli/tests/test_create_crew.py:1873
Function
test_json_setup_env_ollama_needs_no_key_and_prints_nothing_extra
( tmp_path, monkeypatch, capsys )
lib/cli/tests/test_create_crew.py:2010
Function
test_json_setup_env_reads_a_piped_key_from_stdin
(tmp_path, monkeypatch, capsys)
lib/cli/tests/test_create_crew.py:2001
Function
test_json_setup_env_saved_key_keeps_the_success_message
( tmp_path, monkeypatch, capsys, terminal_stdin )
lib/cli/tests/test_create_crew.py:1795
Method
test_json_skills_structure
Each skill in JSON should have required fields.
lib/crewai/tests/a2a/utils/test_agent_card.py:260
Method
test_json_string
Test data_type='json' with existing JSON file.
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:145
Method
test_json_string_response_is_parsed
Test that JSON string response from LLM is correctly parsed.
lib/crewai/tests/test_async_human_feedback.py:1049
Method
test_json_structure_preservation
Test that JSON structures are preserved and not interpolated incorrectly.
lib/crewai/tests/utilities/test_string_utils.py:33
Function
test_json_task_agent_mismatch_is_error
(tmp_path: Path)
lib/cli/tests/deploy/test_validate.py:189
Function
test_json_text_from_the_schema_request_is_used
The LiteLLM fallback returns the structured instance as JSON text.
lib/crewai/tests/agents/test_executor_structured_output_with_tools.py:245
Function
test_json_the_render_encoder_cannot_walk_is_left_as_text
Python 3.12's C decoder accepts nesting its indent encoder cannot walk. The decoder here does that on every version, with an input `ast` cannot
lib/cli/tests/test_crew_run_tui.py:2496
Function
test_json_validation_uses_project_environment_without_crewai
( monkeypatch: pytest.MonkeyPatch, tmp_path: Path )
lib/cli/tests/deploy/test_cli_only_install.py:73
Function
test_json_watsonx_models_use_the_prefix_crewai_can_run
LiteLLM rejects `watson/`; it knows the provider only as `watsonx`.
lib/cli/tests/test_create_crew.py:1829
Method
test_json_without_outcome_raises
Parsed JSON missing a usable outcome fails closed.
lib/crewai/tests/test_async_human_feedback.py:1102
Function
test_json_wizard_agent_attribute_prompts_are_compact
(monkeypatch)
lib/cli/tests/test_create_crew.py:1256
Function
test_json_wizard_agent_falls_back_to_current_small_model_when_provider_is_skipped
( monkeypatch, )
lib/cli/tests/test_create_crew.py:1666
Function
test_json_wizard_defaults_to_sequential_and_memory_enabled
(monkeypatch)
lib/cli/tests/test_create_crew.py:401
Function
test_json_wizard_platform_catalog_contains_every_supported_app
()
lib/cli/tests/test_create_crew.py:768
Function
test_json_wizard_platform_tool_selection_stays_in_agent_tools
(monkeypatch)
lib/cli/tests/test_create_crew.py:670
Function
test_json_wizard_shows_interpolation_hint
(capsys)
lib/cli/tests/test_create_crew.py:449
Function
test_json_wizard_task_attribute_prompts_are_compact
(monkeypatch)
lib/cli/tests/test_create_crew.py:1288
Function
test_json_wizard_task_reprompts_on_cancelled_agent_pick
Esc on the agent picker must reprompt, not silently assign agent 0.
lib/cli/tests/test_create_crew.py:1543
Function
test_json_wizard_text_prompt_uses_full_prompt_for_readline
(monkeypatch)
lib/cli/tests/test_create_crew.py:460
Function
test_json_wizard_tool_picker_collapses_categories_by_default
(monkeypatch)
lib/cli/tests/test_create_crew.py:517
Function
test_json_wizard_tool_picker_expands_one_category_at_a_time
(monkeypatch)
lib/cli/tests/test_create_crew.py:540
Function
test_json_wizard_tool_picker_lists_builtin_tools_across_categories
(monkeypatch)
lib/cli/tests/test_create_crew.py:614
Function
test_json_wizard_tool_picker_preserves_selection_across_renders
(monkeypatch)
lib/cli/tests/test_create_crew.py:590
Function
test_json_wizard_tool_picker_prioritizes_common_tools
(monkeypatch)
lib/cli/tests/test_create_crew.py:477
Function
test_jsonl_strings_may_contain_unicode_line_separators
(tmp_path)
lib/crewai/tests/test_jev_evaluation_runner.py:390
Method
test_jupyter_keeps_live_panel
( self, clean_terminal_env: pytest.MonkeyPatch )
lib/crewai/tests/utilities/test_console_formatter_pause_resume.py:321
Function
test_jwt_auth_llm_validation
Test that JWT token validation works correctly.
lib/crewai/tests/test_custom_llm.py:232
Method
test_keep_n
(self)
lib/crewai/tests/test_checkpoint_cli.py:337
Method
test_keep_n
(self)
lib/crewai/tests/test_checkpoint_cli.py:400
Method
test_keeps_date
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:850
Method
test_keeps_date_time
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:845
Method
test_keeps_plain_not_found_for_real_typos
(self)
lib/crewai/tests/llms/openai/test_responses_only_models.py:203
Function
test_key
(researcher, writer)
lib/crewai/tests/test_crew.py:4031
Function
test_key
()
lib/crewai/tests/test_task.py:1143
Function
test_key
()
lib/crewai/tests/agents/agent_builder/test_base_agent.py:41
Method
test_key_error_for_invalid_name
(self)
lib/crewai-tools/tests/tools/tool_collection_test.py:52
Function
test_key_set_after_construction_is_picked_up
An LLM built at import time with the placeholder works once the key is set.
lib/crewai/tests/llms/test_missing_api_key.py:193
Method
test_key_set_after_construction_is_picked_up
(self)
lib/crewai/tests/llms/test_missing_api_key.py:345
Function
test_key_with_interpolated_inputs
()
lib/crewai/tests/test_crew.py:4057
Method
test_keyless_provider_ignores_placeholder
Ollama needs no key, so the placeholder falls back to its default.
lib/crewai/tests/llms/test_missing_api_key.py:432
Method
test_keys_method
Test keys() method for dict unpacking.
lib/crewai/tests/utilities/test_files.py:251
Function
test_kickoff_async_basic_functionality_and_output
Tests the basic functionality and output of kickoff_async.
lib/crewai/tests/test_crew.py:1470
Function
test_kickoff_async_orders_the_conversation_the_same_way
`kickoff_async` shares `_prepare_kickoff` and `_setup_messages`. Sharing is not the same as being covered: the async executor entry points re
lib/crewai/tests/agents/test_agent_kickoff_message_history.py:309
Function
test_kickoff_drains_agent_memory_saves_before_completion_event
Agents save through their own ``agent.memory`` when set; those pools must also be drained before CrewKickoffCompletedEvent.
lib/crewai/tests/test_crew.py:5163
Function
test_kickoff_drains_pending_memory_saves_before_completion_event
Background memory saves must finish (and emit their completion events) before CrewKickoffCompletedEvent, otherwise listeners that tear down on
lib/crewai/tests/test_crew.py:5122
Method
test_kickoff_emits_started_exactly_once
(self)
lib/crewai/tests/hooks/test_interception_conformance.py:761
Function
test_kickoff_flow_conversational_flow_in_a_terminal_opens_the_tui
( monkeypatch: pytest.MonkeyPatch, )
lib/cli/tests/test_kickoff_flow.py:125
Function
test_kickoff_flow_conversational_flow_without_terminal_exits_with_guidance
( monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str] )
lib/cli/tests/test_kickoff_flow.py:108
Function
test_kickoff_flow_falls_back_to_uv_when_no_conversational_flow
( monkeypatch, )
lib/cli/tests/test_kickoff_flow.py:69
Method
test_kickoff_flushes_event_bus_before_returning
`kickoff_async` must drain pending LLMCallCompletedEvent handlers before detaching the listener — otherwise late handlers landing on t
lib/crewai/tests/test_flow_usage_metrics.py:308
Function
test_kickoff_for_each_empty_input
Tests if kickoff_for_each handles an empty input list.
lib/crewai/tests/test_crew.py:1392
Function
test_kickoff_for_each_error_handling
Tests error handling in kickoff_for_each when kickoff raises an error.
lib/crewai/tests/test_crew.py:1433
Function
test_kickoff_for_each_invalid_input
Tests if kickoff_for_each raises TypeError for invalid input types.
lib/crewai/tests/test_crew.py:1412
Function
test_kickoff_for_each_multiple_inputs
Tests if kickoff_for_each works with multiple inputs.
lib/crewai/tests/test_crew.py:1364
Function
test_kickoff_for_each_single_input
Tests if kickoff_for_each works with a single input.
lib/crewai/tests/test_crew.py:1340
Method
test_kickoff_for_each_streaming_from_docs
Test kickoff_for_each streaming example from documentation.
lib/crewai/tests/test_streaming_integration.py:146
Method
test_kickoff_no_response_format_returns_raw_text
Test that kickoff without response_format returns plain text.
lib/crewai/tests/agents/test_agent_executor.py:1882
Method
test_kickoff_output_sees_failures_recorded_on_the_agent
The LiteAgent under kickoff records against the owning Agent.
lib/crewai/tests/tools/test_tool_failure.py:789
Method
test_kickoff_resets_between_runs
Agent.kickoff() goes through _prepare_kickoff, not task execution.
lib/crewai/tests/tools/test_tool_failure.py:771
Function
test_kickoff_response_format_gets_the_structured_answer
()
lib/crewai/tests/agents/test_executor_structured_output_with_tools.py:348
Method
test_kickoff_response_format_with_planning_and_tools
Test response_format with planning + tools (multi-step research). This is the key test for _synthesize_final_answer_from_todos: 1. Pl
lib/crewai/tests/agents/test_agent_executor.py:1831
Method
test_kickoff_response_format_without_planning
Test that kickoff(response_format) returns structured output without planning.
lib/crewai/tests/agents/test_agent_executor.py:1802
Function
test_kickoff_saves_a_task_output_with_a_url_field
(researcher, output_field)
lib/crewai/tests/test_crew.py:3564
Method
test_kickoff_stamps_a_start_time
Kickoff records a start time; a terminal event consumes and clears it.
lib/crewai/tests/telemetry/test_crew_completed_span.py:143
Method
test_kickoff_streaming_async_captures_chunks
Test that async streaming captures LLM chunks.
lib/crewai/tests/test_streaming.py:351
← previous
next →
15,101–15,200 of 19,482, ranked by callers