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
↓ 5 callers
Function
load_from_url
Load content from a URL. Args: url: The URL to fetch content from kwargs: Additional keyword arguments (can include 'headers' ove
lib/crewai-tools/src/crewai_tools/rag/loaders/utils.py:6
↓ 5 callers
Function
load_project_env
The project's `.env` over this process's environment, with two exceptions. `crewai eval`'s token: the token this process was started with is
lib/cli/src/crewai_cli/run_crew.py:916
↓ 5 callers
Function
lock
Acquire a named lock, yielding while it is held. Args: name: A human-readable lock name (e.g. ``"chromadb_init"``). The bui
lib/crewai-core/src/crewai_core/lock_store.py:80
↓ 5 callers
Function
main
Entry point for the CLI.
lib/devtools/src/crewai_devtools/cli.py:2618
↓ 5 callers
Function
make_not_found
(message: str, code: str | None = None)
lib/crewai/tests/llms/openai/test_responses_only_models.py:38
↓ 5 callers
Function
merge_tool_failures
Concatenate failure lists, dropping records already present. Guardrail retries rebuild the output from overlapping sources, so identity is no
lib/crewai/src/crewai/tools/tool_failure.py:214
↓ 5 callers
Method
on_tool_use
Record a tool usage event in the current trace. Args: tool_name: Name of the tool used. tool_args: Arguments passed t
lib/crewai/src/crewai/experimental/evaluation/evaluation_listener.py:230
↓ 5 callers
Function
optimize_image
Optimize an image to fit within a target file size. Uses iterative quality reduction to achieve target size. Args: file: The image f
lib/crewai-files/src/crewai_files/processing/transformers.py:83
↓ 5 callers
Function
planned_crew
(llm: BaseLLM, description: str)
lib/crewai/tests/agents/test_agent_spreadsheets.py:686
↓ 5 callers
Function
prepare_kickoff
Prepare crew for kickoff execution. Handles before callbacks, event emission, task handler reset, input interpolation, task callbacks, agent
lib/crewai/src/crewai/crews/utils.py:243
↓ 5 callers
Method
process_response_with_all
Process response through all registered extensions. Args: agent_response: The parsed agent response. extension_states
lib/crewai/src/crewai/a2a/extensions/base.py:233
↓ 5 callers
Function
process_task_state
Process A2A task state and return result dictionary. Shared logic for both polling and streaming handlers. Args: a2a_task: The A2A t
lib/crewai/src/crewai/a2a/task_helpers.py:138
↓ 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:163
↓ 5 callers
Function
set_rag_config
Set global RAG client configuration and instantiate the client. Args: config: The RAG client configuration (ChromaDBConfig).
lib/crewai/src/crewai/rag/config/utils.py:27
↓ 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
start
(self)
lib/crewai/tests/agents/test_lite_agent.py:323
↓ 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
↓ 5 callers
Function
validate_model
Validate and convert a JSON string to a Pydantic model or dict. Args: result: The JSON string to validate and convert. model: The
lib/crewai/src/crewai/utilities/converter.py:284
↓ 5 callers
Function
write_env_file
Writes environment variables to a gitignored .env file for local use. The file holds API keys, so it is written owner-only, an existing one is
lib/cli/src/crewai_cli/utils.py:270
↓ 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
Method
_aexport_output
Async equivalent of ``_export_output`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/task.py:1308
↓ 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_collection_params
Build collection params, sizing vectors from the embedder when possible. When ``vectors_config`` is not given and the embedding function expo
lib/crewai/src/crewai/rag/qdrant/client.py:73
↓ 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
Function
_build_rag_config
Build a RAG config for ``provider`` around a CrewAI embedding function. When ``base_config`` is the active config for the same provider, its
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:26
↓ 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:2684
↓ 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:1833
↓ 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
Function
_create_point_from_document
Create a PointStruct from a document and its embedding. Args: doc: Document dictionary containing content, metadata, and optional doc_id.
lib/crewai/src/crewai/rag/qdrant/utils.py:254
↓ 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
_default_config
A config that uses the default storage folder, placed under tmp_path.
lib/crewai/tests/rag/qdrant/test_local_client_sharing.py:143
↓ 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:2652
↓ 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
← previous
next →
1,201–1,300 of 19,482, ranked by callers