Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
20,757 in github.com/crewAIInc/crewAI
⨍
Functions
20,757
◇
Types & classes
3,596
↳
Endpoints
1,012
Function
test_context_summarization_emits_lifecycle_events_with_llm_agent_and_task
()
lib/crewai/tests/utilities/test_agent_utils.py:104
Function
test_context_summarization_shows_triggered_and_completed_panels
()
lib/crewai/tests/utilities/test_agent_utils.py:72
Method
test_context_var_isolation_between_tests
Test that context variable changes don't leak between test methods.
lib/crewai/tests/test_context.py:203
Method
test_context_var_takes_precedence_over_env_var
(self)
lib/crewai/tests/test_context.py:46
Function
test_context_window_exceeded_error_handling
Test that litellm.ContextWindowExceededError is converted to LLMContextLengthExceededError.
lib/crewai/tests/test_llm.py:467
Function
test_context_window_preflight_triggers_only_above_usable_limit
The proactive threshold preserves the 15% context-window headroom.
lib/crewai/tests/test_llm.py:89
Function
test_context_window_validation
A published catalog limit is used as given.
lib/crewai/tests/test_llm.py:355
Method
test_context_with_response
Test that context includes response when provided.
lib/crewai/tests/hooks/test_llm_hooks.py:70
Method
test_context_with_result
Test that context includes result when provided.
lib/crewai/tests/hooks/test_tool_hooks.py:96
Method
test_continue_iteration
Test iteration continuation.
lib/crewai/tests/agents/test_agent_executor.py:474
Function
test_control_scope_prefix_stays_in_tenant
(storage: LanceDBStorage)
lib/crewai/tests/memory/test_lancedb_filter_escaping.py:78
Method
test_conversation_config_drives_defer_flag
``ConversationConfig(defer_trace_finalization=...)`` controls whether a conversational subclass defers per-turn trace finalization.
lib/crewai/tests/test_flow_conversation.py:1915
Function
test_conversation_console_output_respects_verbose
(monkeypatch, capsys, console_listener, entrypoint, verbose)
lib/crewai/tests/agents/test_conversation.py:89
Function
test_conversation_exports_routes_and_custom_replies
( monkeypatch, quiet, trace_scope )
lib/crewai/tests/telemetry/test_conversation_spans.py:27
Function
test_conversation_hitl_pause_is_not_a_completed_turn
( in_memory_grant_collectors, monkeypatch, tmp_path, streamed, authenticated )
lib/crewai/tests/telemetry/test_trace_lifecycle.py:518
Function
test_conversation_input_submits_turn
(defer_trace_finalization)
lib/cli/tests/test_crew_run_tui.py:988
Function
test_conversation_pause_closes_root_before_resume
(monkeypatch, tmp_path, quiet)
lib/crewai/tests/telemetry/test_conversation_spans.py:192
Function
test_conversation_quit_can_ask_for_deferred_session_consent
(monkeypatch)
lib/cli/tests/test_trace_consent_session.py:189
Method
test_conversation_state_is_implied_when_none_declared
(self)
lib/crewai/tests/test_flow_conversation.py:3175
Method
test_conversation_turn_completed_tracks_feature_usage
Completed conversation turns count conversational Flow usage.
lib/crewai/tests/test_flow_conversation.py:1326
Function
test_conversation_turn_done_records_assistant_message
()
lib/cli/tests/test_crew_run_tui.py:968
Function
test_conversation_turns_finish_and_resume_with_stable_identity
( in_memory_grant_collectors, monkeypatch, tmp_path, streamed, authenticated )
lib/crewai/tests/telemetry/test_trace_lifecycle.py:453
Function
test_conversational_block_can_be_explicitly_disabled
()
lib/crewai/tests/test_flow_definition.py:507
Method
test_conversational_flow_auto_defaults_to_conversation_state
``class C(Flow): conversational = True`` resolves state to ConversationState. Pins the auto-default in ``_create_initial_state``: when the us
lib/crewai/tests/test_flow_conversation.py:1015
Function
test_conversational_flow_does_not_take_the_steps_tui
The STEPS TUI renders method progress and cannot drive a chat turn.
lib/cli/tests/test_run_declarative_flow.py:708
Function
test_conversational_flow_headless_explains_instead_of_one_turn
( tmp_path: Path, capsys: pytest.CaptureFixture[str], monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:825
Function
test_conversational_flow_rejects_an_empty_inputs_object
`--inputs '{}'` asked for something unsupported; answer it, don't ignore it.
lib/cli/tests/test_run_declarative_flow.py:752
Function
test_conversational_flow_rejects_inputs
`--inputs` has nowhere to go: handle_turn owns the kickoff inputs.
lib/cli/tests/test_run_declarative_flow.py:728
Function
test_conversational_flow_without_inputs_still_opens_the_tui
( tmp_path: Path, monkeypatch: pytest.MonkeyPatch )
lib/cli/tests/test_run_declarative_flow.py:775
Function
test_conversational_human_feedback_flow_avoids_the_tui
Textual cannot service the runtime's blocking feedback prompt. The STEPS TUI already declines these for that reason; a conversational one mus
lib/cli/tests/test_run_declarative_flow.py:793
Function
test_conversational_is_recorded_as_a_string
Same reason as resumed: a bool arrives as key presence, not a value.
lib/crewai/tests/telemetry/test_telemetry.py:506
Method
test_conversational_turn_emits_message_and_route_events
(self)
lib/crewai/tests/test_flow_conversation.py:555
Method
test_converse_cache_read_tokens_are_reported_as_cached
(self)
lib/crewai/tests/events/test_llm_usage_event.py:442
Method
test_converse_cache_write_tokens_are_reported_as_cache_creation
(self)
lib/crewai/tests/events/test_llm_usage_event.py:459
Function
test_converse_compacts_and_retries_actual_provider_error
(streaming: bool)
lib/crewai/tests/test_flow_context_compaction.py:131
Function
test_converse_compacts_request_and_preserves_transcript
(streaming: bool)
lib/crewai/tests/test_flow_context_compaction.py:84
Function
test_converse_route_executes_agent_tools
(monkeypatch)
lib/crewai/tests/agents/test_conversation.py:155
Method
test_converse_usage_keys_are_normalized
(self)
lib/crewai/tests/events/test_llm_usage_event.py:429
Method
test_convert_multiple_plan_steps_to_todo_list
Test converting multiple PlanSteps to a TodoList.
lib/crewai/tests/utilities/test_planning_types.py:357
Method
test_convert_plan_step_to_todo_item
Test converting a PlanStep to TodoItem.
lib/crewai/tests/utilities/test_planning_types.py:334
Function
test_convert_to_model_does_not_call_the_llm_when_json_fits
( use_async: bool, )
lib/crewai/tests/utilities/test_converter.py:1143
Function
test_convert_to_model_logs_a_failed_refit_without_verbose
( use_async: bool, output_json: bool, cause: str, caplog: pytest.LogCaptureFixture, )
lib/crewai/tests/utilities/test_converter.py:1275
Function
test_convert_to_model_refits_json_that_does_not_fit_the_schema
( use_async: bool, )
lib/crewai/tests/utilities/test_converter.py:1092
Function
test_convert_to_model_refits_off_schema_json_for_output_json
( use_async: bool, )
lib/crewai/tests/utilities/test_converter.py:1107
Function
test_convert_to_model_refits_off_schema_json_for_output_json_with_function_calling
With function calling, output_json is refit through Instructor, which reaches the provider client directly instead of ``llm.call``.
lib/crewai/tests/utilities/test_converter.py:1328
Function
test_convert_to_model_refits_off_schema_json_with_function_calling
( use_async: bool, )
lib/crewai/tests/utilities/test_converter.py:1314
Function
test_convert_to_model_returns_original_text_when_refit_fails
( use_async: bool, converter_cls: type[Converter] | None, output_json: bool )
lib/crewai/tests/utilities/test_converter.py:1124
Function
test_convert_to_model_with_basemodel_input_different_class
()
lib/crewai/tests/utilities/test_converter.py:105
Function
test_convert_to_model_with_basemodel_input_matching_json
()
lib/crewai/tests/utilities/test_converter.py:99
Function
test_convert_to_model_with_basemodel_input_matching_pydantic
()
lib/crewai/tests/utilities/test_converter.py:93
Function
test_convert_to_model_with_escaped_special_characters
()
lib/crewai/tests/utilities/test_converter.py:137
Function
test_convert_to_model_with_invalid_json
()
lib/crewai/tests/utilities/test_converter.py:79
Function
test_convert_to_model_with_multiple_special_characters
()
lib/crewai/tests/utilities/test_converter.py:156
Function
test_convert_to_model_with_no_model
()
lib/crewai/tests/utilities/test_converter.py:87
Function
test_convert_to_model_with_special_characters
()
lib/crewai/tests/utilities/test_converter.py:118
Function
test_convert_to_model_with_valid_json
()
lib/crewai/tests/utilities/test_converter.py:71
Function
test_convert_with_instructions
()
lib/crewai/tests/utilities/test_converter.py:397
Function
test_convert_with_instructions_failure
( mock_get_instructions: Mock, mock_create_converter: Mock, mock_agent: Mock )
lib/crewai/tests/utilities/test_converter.py:254
Function
test_convert_with_instructions_success
( mock_get_instructions: Mock, mock_create_converter: Mock, mock_agent: Mock )
lib/crewai/tests/utilities/test_converter.py:236
Function
test_converter_error_handling
()
lib/crewai/tests/utilities/test_converter.py:476
Function
test_converter_preserves_requested_model_instance
()
lib/crewai/tests/utilities/test_converter_model_response.py:61
Function
test_converter_retries_off_schema_response_as_a_validation_error
Agent/LiteAgent kickoff(response_format=...) validate the LLM's reply with Converter, which has no agent to refit with: an off-schema reply is ret
lib/crewai/tests/utilities/test_converter.py:1160
Function
test_converter_retry_logic
()
lib/crewai/tests/utilities/test_converter.py:496
Function
test_converter_validates_foreign_model
(method: str, valid: bool)
lib/crewai/tests/utilities/test_converter_model_response.py:26
Function
test_converter_with_ambiguous_input
()
lib/crewai/tests/utilities/test_converter.py:602
Function
test_converter_with_enum
()
lib/crewai/tests/utilities/test_converter.py:572
Function
test_converter_with_function_calling
()
lib/crewai/tests/utilities/test_converter.py:622
Function
test_converter_with_list_field
()
lib/crewai/tests/utilities/test_converter.py:549
Function
test_converter_with_llama3_1_model
()
lib/crewai/tests/utilities/test_converter.py:433
Function
test_converter_with_llama3_2_model
()
lib/crewai/tests/utilities/test_converter.py:417
Function
test_converter_with_nested_model
()
lib/crewai/tests/utilities/test_converter.py:453
Function
test_converter_with_optional_fields
()
lib/crewai/tests/utilities/test_converter.py:523
Method
test_converts_multiple_tools
Test converting multiple tools to OpenAI schema.
lib/crewai/tests/utilities/test_agent_utils.py:516
Method
test_converts_nested
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1012
Method
test_converts_single_tool
Test converting a single tool to OpenAI schema.
lib/crewai/tests/utilities/test_agent_utils.py:501
Method
test_converts_top_level
(self)
lib/crewai/tests/utilities/test_pydantic_schema_utils.py:1005
Method
test_copies_edge_files_into_snapshot
(self, tmp_path: Path)
lib/devtools/tests/test_docs_versioning.py:102
Function
test_copies_keep_the_state_declaration
(clone)
lib/crewai/tests/agents/test_agent_state.py:255
Method
test_copy_drops_checkpoint_resume_pointers
(self)
lib/crewai/tests/test_crew_copy_resume_state.py:40
Function
test_copy_during_active_turn_has_fresh_history_and_can_run_concurrently
( monkeypatch, clone )
lib/crewai/tests/agents/test_conversation.py:378
Method
test_copy_of_crew_wired_agent_does_not_opt_in
A handler offered by a crew at kickoff (set_cache_handler) is runtime wiring, not construction-time consent — copies of such agents mu
lib/crewai/tests/test_tool_cache_default.py:228
Method
test_copy_of_default_agent_does_not_opt_in
copy() rebuilds from model_dump(), which includes the field default cache=True — that must not read as an explicit opt-in on the copy
lib/crewai/tests/test_tool_cache_default.py:203
Method
test_copy_of_explicit_cache_false_with_handler_stays_off
(self)
lib/crewai/tests/test_tool_cache_default.py:224
Method
test_copy_of_handler_opted_in_agent_stays_opted_in
An explicit cache_handler is an opt-in too; copy() excludes the handler itself, but the consent must survive — the copy wires its own
lib/crewai/tests/test_tool_cache_default.py:215
Method
test_copy_of_opted_in_agent_stays_opted_in
(self)
lib/crewai/tests/test_tool_cache_default.py:211
Method
test_copy_task_drops_previous_run_output
(self)
lib/crewai/tests/test_crew_copy_resume_state.py:49
Method
test_copy_would_execute_its_tasks_from_the_start
The copy must not resume: with the stale outputs inherited, the execution start index would equal len(tasks) and skip everything.
lib/crewai/tests/test_crew_copy_resume_state.py:59
Function
test_core_eval_spans_carry_target_and_eval_id_and_nothing_else
`cli_usage:eval` keeps `target` and `eval_id`; every `eval_finished:*` and `eval_stopped:*` keeps `eval_id` alone; no other feature keeps either.
lib/crewai-core/tests/test_smoke.py:361
Function
test_core_feature_span_keeps_only_what_the_feature_may_send
Each feature names what it may add. A key off its list — an id, run content, or a dimension every span already carries — is dropped, and a fea
lib/crewai-core/tests/test_smoke.py:280
Function
test_core_load_failed_stop_carries_its_error_class_and_no_other_stop_does
`crewai run` names the class a project failed to load with on a `load_failed` stop, never the message; any other stop or start drops it.
lib/crewai-core/tests/test_smoke.py:423
Function
test_core_models_span_carries_the_models_compared_and_nothing_else
`cli_usage:eval_models` names the models and how many — provider/model names, not a run — and still drops an id or run content.
lib/crewai-core/tests/test_smoke.py:322
Function
test_core_telemetry_disabled_by_conventional_yes_values
( monkeypatch: pytest.MonkeyPatch, value: str )
lib/crewai-core/tests/test_smoke.py:188
Function
test_core_telemetry_never_installs_a_global_provider
Telemetry must leave the process-wide TracerProvider untouched. Installing it globally routed every OTel-instrumented library in the host pro
lib/crewai-core/tests/test_smoke.py:229
Function
test_core_telemetry_records_feature_usage
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-core/tests/test_smoke.py:254
Function
test_core_telemetry_records_flow_creation_version
( monkeypatch: pytest.MonkeyPatch, )
lib/crewai-core/tests/test_smoke.py:470
Function
test_core_telemetry_stays_enabled_for_conventional_no_values
( monkeypatch: pytest.MonkeyPatch, value: str )
lib/crewai-core/tests/test_smoke.py:200
Function
test_core_telemetry_unrecognized_disable_value_warns_once
( monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture )
lib/crewai-core/tests/test_smoke.py:211
Function
test_corrupt_pdf_reports_error_without_raising
A malformed PDF becomes an error string, not a traceback.
lib/crewai-tools/tests/url_read_tool_test.py:380
Function
test_corrupt_xlsx_reports_error_without_raising
A zip that claims to be a workbook but is not becomes an error string.
lib/crewai-tools/tests/url_read_tool_test.py:804
Function
test_cost_and_time_are_per_run_when_the_service_sends_them
(deployed, monkeypatch, capsys)
lib/cli/tests/experimental/test_eval_crew.py:1779
← previous
next →
13,101–13,200 of 20,757, ranked by callers