Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,264 in github.com/crewAIInc/crewAI
⨍
Functions
19,264
◇
Types & classes
3,413
↳
Endpoints
990
↓ 5 callers
Function
prune_checkpoints
( location: str, keep: int | None, older_than: str | None, dry_run: bool = False )
lib/cli/src/crewai_cli/checkpoint_cli.py:707
↓ 5 callers
Method
record_export
Record the run for `crewai eval` once its spans have reached Wharf, and say where to look at it. Only a run whose every export succee
lib/crewai/src/crewai/telemetry/tracing/grants.py:387
↓ 5 callers
Function
recorded_tool_name
The tool_name the code under test handed to telemetry.
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:71
↓ 5 callers
Method
remove_crew
Remove a crew deployment. Args: uuid (Optional[str]): The UUID of the crew to remove.
lib/cli/src/crewai_cli/deploy/main.py:930
↓ 5 callers
Method
render
({ ctx, id, x, y })
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:82
↓ 5 callers
Method
request_input
Request user input via console (blocking). Displays the prompt message with formatting and waits for the user to type their response.
lib/crewai/src/crewai/flow/async_feedback/providers.py:139
↓ 5 callers
Function
required_key_names
Return the upper-cased ``ENV_VARS`` names ``provider`` needs set to run. Entries with a runtime default are left out, and so is azure's and c
lib/cli/src/crewai_cli/constants.py:223
↓ 5 callers
Method
reset
Clear all stored task outputs.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:79
↓ 5 callers
Function
resolve_plus_response
Return ``response``, awaiting it first when the client is async. Args: response: A response, or an awaitable resolving to one. Retur
lib/crewai/src/crewai/utilities/agent_utils.py:107
↓ 5 callers
Function
resolve_ref
Return the Python symbol named by a project definition field.
lib/crewai/src/crewai/utilities/declarative_refs.py:41
↓ 5 callers
Function
route
(decision, expected="billing", **extra)
lib/crewai/tests/test_jev_evaluation_runner.py:112
↓ 5 callers
Method
run
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/flow/runtime/_actions.py:72
↓ 5 callers
Function
run_after_tool_call_hooks
Run all ``post_tool_call`` hooks against a context. Returns: The (possibly modified) tool result carried on the context.
lib/crewai/src/crewai/hooks/tool_hooks.py:193
↓ 5 callers
Function
run_before_tool_call_hooks
Run all ``pre_tool_call`` hooks against a context. Returns: True if a hook blocked execution (returned False or raised :class:`Ho
lib/crewai/src/crewai/hooks/tool_hooks.py:173
↓ 5 callers
Function
running_with
(*stopped)
lib/cli/tests/experimental/test_eval_crew.py:1830
↓ 5 callers
Method
save
(self, documents: list[str])
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:105
↓ 5 callers
Function
should_auto_collect_first_time_traces
True if we should auto-collect traces for first-time user. Returns: True if first-time user AND telemetry not disabled AND tracing not ex
lib/crewai/src/crewai/events/listeners/tracing/utils.py:488
↓ 5 callers
Method
shutdown
(self)
lib/crewai/src/crewai/telemetry/tracing/ephemeral.py:174
↓ 5 callers
Method
shutdown
Gracefully shutdown the event loop and wait for all tasks to finish. Args: wait: If True, wait for all pending tasks to complete
lib/crewai/src/crewai/events/event_bus.py:897
↓ 5 callers
Method
store
Persist content and return its internal binding details. Args: content: Tool result text to store. estimated_token_co
lib/crewai/src/crewai/utilities/tool_result_artifacts.py:64
↓ 5 callers
Function
store_task_files
Store files for a task execution. Args: task_id: Unique identifier for the task. files: Dictionary mapping names to file inputs.
lib/crewai/src/crewai/utilities/file_store.py:214
↓ 5 callers
Method
stream
()
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:721
↓ 5 callers
Function
strip_null_from_types
Remove null type from anyOf/type arrays. Pydantic generates `T | None` for optional fields, which creates schemas with null in the type. Howe
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:464
↓ 5 callers
Method
stub_sync
( self, llm: BedrockCompletion, monkeypatch: pytest.MonkeyPatch, text: str = A
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:116
↓ 5 callers
Function
temp_csv_file
()
lib/crewai-tools/tests/rag/test_csv_loader.py:12
↓ 5 callers
Function
to_langchain
Convert a list of tools to CrewStructuredTool instances.
lib/crewai/src/crewai/tools/base_tool.py:693
↓ 5 callers
Method
tools
Retrieve a tool prompt by key. Args: tool: The key of the tool prompt to retrieve. Returns: The tool prompt
lib/crewai/src/crewai/utilities/i18n.py:78
↓ 5 callers
Function
triggered_by_scope
Context manager to set the triggering event ID for causal chain tracking. All events emitted within this context will have their triggered_by_eve
lib/crewai/src/crewai/events/event_context.py:119
↓ 5 callers
Method
validate
Validate a file against provider constraints. Args: file: The file to validate. Returns: List of validation
lib/crewai-files/src/crewai_files/processing/processor.py:72
↓ 5 callers
Function
validate_directory_path
Validate that a directory path is safe to read. Same as :func:`validate_file_path` but also checks that the path is an existing directory.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:144
↓ 5 callers
Function
validate_file
Validate a file against provider constraints. Dispatches to the appropriate validator based on file type. Args: file: The file to va
lib/crewai-files/src/crewai_files/processing/validators.py:510
↓ 5 callers
Function
validate_image
Validate an image file against constraints. Args: file: The image file to validate. constraints: Image constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:224
↓ 4 callers
Method
__init__
(self)
lib/crewai/tests/test_flow.py:527
↓ 4 callers
Function
_a_run_that_exits
`run_crew` printing an error, then exiting with CODE, as the JSON crew, declarative flow and agent paths do when their run fails.
lib/cli/tests/experimental/test_eval_crew.py:4567
↓ 4 callers
Method
_acall_handlers
Asynchronously call provided async handlers. Args: source: The object that emitted the event event: The event instanc
lib/crewai/src/crewai/events/event_bus.py:429
↓ 4 callers
Method
_aexecute_tasks
Executes tasks using native async and returns the final output. Args: tasks: List of tasks to execute start_index: In
lib/crewai/src/crewai/crew.py:1365
↓ 4 callers
Function
_answer_key_prompts
Answer API-key prompts in order and record each prompt's text and options.
lib/cli/tests/test_create_flow.py:145
↓ 4 callers
Function
_assert_history_tools_declared_and_disabled
Anthropic rejects tool_use/tool_result blocks in a request without tools.
lib/crewai/tests/llms/anthropic/test_anthropic.py:2267
↓ 4 callers
Function
_assert_tool_call_usage
(event: LLMCallCompletedEvent)
lib/crewai/tests/test_llm_litellm_usage_events.py:122
↓ 4 callers
Function
_awaiting_dir
This user's crewAI data directory, found from the account's home in the account database, never from `HOME` or `XDG_DATA_HOME`: a project's `.env`
lib/cli/src/crewai_cli/crew_run_tui.py:384
↓ 4 callers
Function
_bad_request
(message: str, param: str = "reasoning_effort")
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:67
↓ 4 callers
Function
_blank
(value: Cell)
lib/crewai-files/src/crewai_files/spreadsheets/reading.py:619
↓ 4 callers
Function
_build
(**kwargs: object)
lib/crewai/tests/utilities/test_prompts_custom_templates.py:16
↓ 4 callers
Method
_build_config
Build an EdgeConfig for the given vector dimensionality.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:148
↓ 4 callers
Method
_build_messages
(self)
lib/crewai/src/crewai/utilities/converter.py:48
↓ 4 callers
Method
_build_s3_uri
Build an S3 URI from a key. Args: key: The S3 object key. Returns: S3 URI string.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:215
↓ 4 callers
Method
_chat
(handler_result: Any)
lib/crewai/tests/test_flow_conversation.py:3700
↓ 4 callers
Method
_claim_usage
Atomically check max usage and increment the counter. Returns: None if usage was claimed, otherwise a :class:`ToolFailure`. A
lib/crewai/src/crewai/tools/base_tool.py:329
↓ 4 callers
Method
_cleanup_deferred_tool_results
Remove temporary tool-result files and their reader aliases.
lib/crewai/src/crewai/agents/agent_executor.py:422
↓ 4 callers
Function
_cleanup_real_tool
(tool: OracleVectorSearchTool)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:166
↓ 4 callers
Function
_cli_args
Arguments of a documented `crewai …` line, with `<placeholder>` values filled.
lib/cli/tests/test_create_crew.py:2617
↓ 4 callers
Function
_coerce_int
(value: Any)
lib/crewai/src/crewai/types/usage_metrics.py:13
↓ 4 callers
Method
_coerce_response_to_pydantic
Validate an LLM response into the configured Pydantic model. Pure post-processing — performs no I/O. Shared by ``to_pydantic`` and ``
lib/crewai/src/crewai/utilities/converter.py:54
↓ 4 callers
Function
_collected
The single collected trace event of `event_type`.
lib/crewai/tests/tracing/test_trace_human_feedback_events.py:60
↓ 4 callers
Method
_complete_step
(self, style: str, message: str, detail: str = "")
lib/cli/src/crewai_cli/crew_run_tui.py:2429
↓ 4 callers
Function
_condition_branches
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/runtime/__init__.py:176
↓ 4 callers
Method
_context_window_model_name
Return the model id used for context-window lookup. LiteLLM keeps provider-qualified names such as ``openai/gpt-5.6-luna``. Strip a r
lib/crewai/src/crewai/llm.py:2618
↓ 4 callers
Function
_conversation_agent
()
lib/crewai/tests/telemetry/test_tracer_isolation.py:197
↓ 4 callers
Method
_convert_tools_for_interference
Convert tools to a format that can be used for interference. Args: tools: List of tools to convert. Returns:
lib/crewai/src/crewai/llms/base_llm.py:649
↓ 4 callers
Function
_copy_method_metadata
Copy metadata from original function to wrapper. Args: wrapper: The wrapper object to copy metadata to original: The original fun
lib/crewai/src/crewai/hooks/wrappers.py:15
↓ 4 callers
Method
_copy_state
Create a copy of the current state. Returns: A copy of the current state
lib/crewai/src/crewai/flow/runtime/__init__.py:1821
↓ 4 callers
Function
_count_usage
One usage count, never more: a word from a closed list, nothing that names the run, the account or its content.
lib/cli/src/crewai_cli/experimental/eval_crew.py:318
↓ 4 callers
Function
_create_hook_decorator
Create a hook decorator with filtering support. This factory function eliminates code duplication across the four hook decorators. Args:
lib/crewai/src/crewai/hooks/decorators.py:18
↓ 4 callers
Method
_create_mock_plan_response
Helper to create mock plan response.
lib/crewai/tests/utilities/test_structured_planning.py:508
↓ 4 callers
Method
_create_tasks_summary
Creates a summary of all tasks. Returns: A string summarizing all tasks with their details.
lib/crewai/src/crewai/utilities/planning_handler.py:140
↓ 4 callers
Method
_current
(self, coverage: CoveredUpdate)
lib/crewai/src/crewai/experimental/flow_replies.py:143
↓ 4 callers
Function
_datetime_to_nanoseconds
(dt: datetime)
lib/crewai/src/crewai/telemetry/tracing/handlers.py:579
↓ 4 callers
Method
_declaration
(**overrides: Any)
lib/crewai/tests/test_flow_conversation.py:3282
↓ 4 callers
Function
_definition_condition_parts
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/visualization/builder.py:34
↓ 4 callers
Function
_delegate_to_a2a
Delegate to A2A agent with multi-turn conversation support. Args: self: The agent instance agent_response: The AgentResponse indi
lib/crewai/src/crewai/a2a/wrapper.py:1233
↓ 4 callers
Method
_deployment_page_url
Build the deployment show URL, resolving UUID-only responses if needed.
lib/cli/src/crewai_cli/deploy/main.py:386
↓ 4 callers
Function
_deserialize_llm_from_context
( llm_data: dict[str, Any] | str | None, )
lib/crewai/src/crewai/flow/human_feedback.py:129
↓ 4 callers
Function
_dict_tool_use_stream_events
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1666
↓ 4 callers
Method
_dispatch_interception
Dispatch ``point`` unless this flow must not expose it. Returns whether the dispatch happened, so callers can keep the EXECUTION_STAR
lib/crewai/src/crewai/flow/runtime/__init__.py:2640
↓ 4 callers
Method
_display_deployment_info
Display deployment information. Args: json_response (Dict[str, Any]): The deployment information to display.
lib/cli/src/crewai_cli/deploy/main.py:336
↓ 4 callers
Function
_done_with
(**fields)
lib/cli/tests/experimental/test_eval_crew.py:2222
↓ 4 callers
Function
_drop_table
(tool: OracleVectorSearchTool, table_name: str)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:160
↓ 4 callers
Method
_eligible
(self, record: DeliveryRecord)
lib/crewai/src/crewai/experimental/flow_replies.py:237
↓ 4 callers
Method
_ensure_scope_index
Create a BTREE scalar index on the ``scope`` column if not present. A scalar index lets LanceDB skip a full table scan when filtering by
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:208
↓ 4 callers
Method
_enter_runtime_scope
(self)
lib/crewai/src/crewai/events/event_bus.py:318
↓ 4 callers
Function
_eval_workflow
()
lib/devtools/tests/test_agents_md_eval.py:377
↓ 4 callers
Method
_evaluation_started
(self, started: dict[str, Any])
lib/cli/src/crewai_cli/crew_run_tui.py:1654
↓ 4 callers
Method
_execute_core
Run the core execution logic of the task.
lib/crewai/src/crewai/task.py:849
↓ 4 callers
Method
_execute_first_tool
Execute the first tool from the tool_uses list and return its result. This is used when available_functions is provided, to directly execute
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1515
↓ 4 callers
Method
_exit_runtime_scope
(self, outermost: bool)
lib/crewai/src/crewai/events/event_bus.py:331
↓ 4 callers
Method
_extract_azure_token_usage
Extract token usage and response metadata from Azure response.
lib/crewai/src/crewai/llms/providers/azure/completion.py:1368
↓ 4 callers
Method
_extract_builtin_tool_outputs
Extract and parse all built-in tool outputs from Responses API. Parses web_search, file_search, code_interpreter, computer_use, and r
lib/crewai/src/crewai/llms/providers/openai/completion.py:1860
↓ 4 callers
Method
_extract_finish_reason_and_id
Extract raw finish_reason (``stopReason``) from a Bedrock Converse response dict. Defensive — returns (None, None) on any failure. Be
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2167
↓ 4 callers
Method
_extract_reasoning_items
Extract reasoning items with encrypted content from response. Used for ZDR (Zero Data Retention) compliance to capture encrypted reas
lib/crewai/src/crewai/llms/providers/openai/completion.py:1979
↓ 4 callers
Method
_extract_responses_finish_reason_and_id
Extract finish_reason and response_id from an OpenAI Responses API ``Response`` object. The Responses API exposes ``status`` rather th
lib/crewai/src/crewai/llms/providers/openai/completion.py:3189
↓ 4 callers
Function
_flow
(storage: MagicMock)
lib/crewai/tests/memory/test_encoding_flow_analyze_fallback.py:16
↓ 4 callers
Function
_flow_state_row_ids
Return the flow_states row ids saved for a flow, oldest first.
lib/crewai/tests/test_flow_persistence.py:645
↓ 4 callers
Method
_format_feedback_message
Format feedback as a message.
lib/crewai/src/crewai/core/providers/human_input.py:46
↓ 4 callers
Method
_format_tools_for_converse
Convert CrewAI tools to Converse API format following AWS specification.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2115
↓ 4 callers
Method
_get_async_client
Get or create the async OpenAI client.
lib/crewai-files/src/crewai_files/uploaders/openai.py:178
↓ 4 callers
Method
_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:344
↓ 4 callers
Function
_get_cache_file
Return the path to the version cache file, creating the dir if needed.
lib/crewai-core/src/crewai_core/version.py:42
↓ 4 callers
Method
_get_client
Get or create the S3 client.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:160
↓ 4 callers
Method
_get_client
Get or create the Anthropic client.
lib/crewai-files/src/crewai_files/uploaders/anthropic.py:48
↓ 4 callers
Method
_get_client_params
Get client parameters for compatibility with base class. Note: This method is kept for compatibility but the Google Gen AI SDK uses a
lib/crewai/src/crewai/llms/providers/gemini/completion.py:324
← previous
next →
1,201–1,300 of 19,264, ranked by callers