Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
↓ 2 callers
Function
_tool_flow
(ref: str)
lib/crewai/tests/test_flow_tool_action_failure_policy.py:40
↓ 2 callers
Function
_trace_provider
crewAI's own provider for a run's trace. The OpenTelemetry SDK turns every provider into one that records nothing when `OTEL_SDK_DISABLED` is
lib/crewai/src/crewai/telemetry/tracing/session.py:92
↓ 2 callers
Method
_traced_execution_id
This app's own execution, if it was traced. Taken from the session the run itself opened, not from the project's last-run record: tha
lib/cli/src/crewai_cli/crew_run_tui.py:1477
↓ 2 callers
Function
_tracing_disabled
Tracing turned off for this run: `tracing=False`, or `CREWAI_TRACING_ENABLED` false when the run says nothing. `OTEL_SDK_DISABLED` is not one
lib/crewai/src/crewai/execution.py:142
↓ 2 callers
Method
_tracing_off_in_code
Does the crew or flow set `tracing=False`? Then no run of it is traced, and none can be evaluated.
lib/cli/src/crewai_cli/crew_run_tui.py:866
↓ 2 callers
Function
_track_connections
Record every connection ``sqlite3.connect`` hands out for the rest of the test.
lib/crewai/tests/test_sqlite_connection_lifecycle.py:26
↓ 2 callers
Method
_track_future
Track a future and set up automatic cleanup when it completes. Args: future: The future to track Returns: Th
lib/crewai/src/crewai/events/event_bus.py:193
↓ 2 callers
Method
_training_handler
Handle training data for the agent task prompt to improve output on Training.
lib/crewai/src/crewai/agent/core.py:1555
↓ 2 callers
Function
_trigger_name
(value: Any)
lib/crewai/src/crewai/flow/dsl/_conditions.py:32
↓ 2 callers
Function
_trim
Rows without the empty ones at the end and the empty columns at the right, and how many columns past the cap were dropped.
lib/crewai-files/src/crewai_files/spreadsheets/reading.py:666
↓ 2 callers
Method
_try_initialize_flow_batch_from_context
Claim a flow trace batch when an action event fires inside kickoff. When ``suppress_flow_events=True`` (infrastructure flows such as
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:878
↓ 2 callers
Method
_try_parse_plan
(self, text: str)
lib/cli/src/crewai_cli/crew_run_tui.py:2465
↓ 2 callers
Function
_unescape_text
Replace literal backslash-n sequences with real newlines.
lib/cli/src/crewai_cli/crew_run_tui.py:69
↓ 2 callers
Method
_unpack_model_output
( model_output: dict[str, Any] | BaseModel | str, model: type[BaseModel], *, i
lib/crewai/src/crewai/task.py:1352
↓ 2 callers
Method
_unwrap_schema
(schema: Mapping[str, Any] | dict[str, Any])
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py:75
↓ 2 callers
Function
_update_all_versions
Bump __version__, pyproject deps, template deps, and run uv sync.
lib/devtools/src/crewai_devtools/cli.py:855
↓ 2 callers
Method
_update_crew_from_zip
Update an existing deployment by uploading a project ZIP archive.
lib/cli/src/crewai_cli/deploy/main.py:747
↓ 2 callers
Function
_update_docs_and_create_pr
Update Edge changelogs, freeze a snapshot, and open the docs PR. Runs after the version-bump PR has merged. For a stable release, freezes ``d
lib/devtools/src/crewai_devtools/cli.py:1130
↓ 2 callers
Function
_update_workflow_crewai_pins
Rewrite ``crewai[extras]==<old>`` pins in a single workflow file. Operates line-by-line on the raw file via ``_repin_crewai_install`` so only
lib/devtools/src/crewai_devtools/cli.py:1358
↓ 2 callers
Method
_upsert_to_central
Convert scrolled points to Qdrant Points and upsert to central shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:766
↓ 2 callers
Function
_url_name
(file: FileInput)
lib/crewai-files/src/crewai_files/spreadsheets/__init__.py:176
↓ 2 callers
Function
_usable_project_id
Return the configured id if it is usable as an identifier. Whitespace-only values are treated as absent: they are truthy in Python but are no
lib/crewai-core/src/crewai_core/project.py:334
↓ 2 callers
Function
_usage
(prompt_tokens: int, completion_tokens: int)
lib/crewai/tests/llms/openai/test_openai.py:2568
↓ 2 callers
Function
_usage_dict_to_metrics
Normalize an LLM call's raw usage dict into ``UsageMetrics``. Thin wrapper around ``UsageMetrics.from_provider_dict`` so the flow aggregator
lib/crewai/src/crewai/flow/runtime/__init__.py:280
↓ 2 callers
Function
_uses_poetry_lockfile
Return True when Poetry is the only available lock source.
lib/cli/src/crewai_cli/run_crew.py:548
↓ 2 callers
Function
_uv_script_exits
(monkeypatch, returncode: int)
lib/cli/tests/test_run_crew.py:1344
↓ 2 callers
Method
_valid_route_labels
(self)
lib/crewai/src/crewai/flow/conversational_mixin.py:1545
↓ 2 callers
Method
_validate_and_emit_structured_output
Validate content against response model and emit completion event. Args: content: Response content to validate respon
lib/crewai/src/crewai/llms/providers/azure/completion.py:826
↓ 2 callers
Method
_validate_and_fix_endpoint
Validate and fix Azure endpoint URL format. Azure OpenAI endpoints should be in the format: https://<resource-name>.openai.azure.com/
lib/crewai/src/crewai/llms/providers/azure/completion.py:417
↓ 2 callers
Method
_validate_and_save_token
Validate the JWT and persist it via the token manager.
lib/crewai-core/src/crewai_core/auth/oauth2.py:186
↓ 2 callers
Function
_validate_embedding_config
Validate embedding config and provide clearer error messages for union validation. This pre-validator catches Pydantic ValidationErrors from the
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:32
↓ 2 callers
Method
_validate_function_signature
Validate that the function signature matches the args schema.
lib/crewai/src/crewai/tools/structured_tool.py:332
↓ 2 callers
Method
_validate_model_in_constants
Validate if a model name exists in the provider's constants or matches provider patterns. This method first checks the hardcoded constants li
lib/crewai/src/crewai/llm.py:565
↓ 2 callers
Method
_validate_save_path
(path: str)
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:156
↓ 2 callers
Function
_validate_step_name
(name: str, *, field: str)
lib/crewai/src/crewai/flow/flow_definition.py:879
↓ 2 callers
Method
_validate_url
Validate URL format.
lib/crewai-tools/src/crewai_tools/tools/scrapegraph_scrape_tool/scrapegraph_scrape_tool.py:132
↓ 2 callers
Function
_walk_files
List regular files below root as project-relative paths.
lib/cli/src/crewai_cli/deploy/archive.py:105
↓ 2 callers
Function
_walk_pages
Recursively walk a navigation subtree, applying ``transform`` to every bare page string (i.e. leaves of the ``pages`` lists).
scripts/docs/prefix_version_paths.py:61
↓ 2 callers
Function
_warn_conversion_failed
( converter: Converter, model: type[BaseModel], error: ConverterError )
lib/crewai/src/crewai/utilities/converter.py:361
↓ 2 callers
Method
_with_artifact_tool
Add the save_artifact tool when ``artifacts`` is on and none is there. A crew adds it already; this covers a task run outside a crew and kick
lib/crewai/src/crewai/agent/core.py:1349
↓ 2 callers
Method
_with_spreadsheets
The task prompt and tools, plus the overview and tools for the spreadsheets the task's URLs point to; unchanged when there are none.
lib/crewai/src/crewai/agent/core.py:742
↓ 2 callers
Function
_wrap_with_filters
Wrap a hook so it only runs for matching agents/tools (context-shape aware).
lib/crewai/src/crewai/hooks/dispatch.py:375
↓ 2 callers
Function
_write_export
Write FILES under FOLDER: the names written, and how many were skipped. MARKER, when given, is written last, and only when nothing was skipped.
lib/cli/src/crewai_cli/experimental/eval_crew.py:2749
↓ 2 callers
Function
_write_flow_project
(project_root: Path)
lib/cli/tests/test_flow_commands.py:28
↓ 2 callers
Function
_writes
Stand-in for an agent whose tool writes ``path`` during the run.
lib/crewai/tests/test_artifacts.py:420
↓ 2 callers
Function
a_step
()
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:251
↓ 2 callers
Method
aadd
Add string content asynchronously.
lib/crewai/src/crewai/knowledge/source/string_knowledge_source.py:30
↓ 2 callers
Method
acheckpoint
Async version of :meth:`checkpoint`. Args: location: Storage destination. For JsonProvider this is a directory pa
lib/crewai/src/crewai/state/runtime.py:325
↓ 2 callers
Method
aclear
Clear all entries from the cache. Returns: Number of entries cleared.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:369
↓ 2 callers
Method
aclear_expired
Remove all expired entries from the cache. Returns: Number of entries removed.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:347
↓ 2 callers
Function
aclear_task_files
Clear files for a task execution asynchronously. Args: task_id: Unique identifier for the task.
lib/crewai/src/crewai/utilities/file_store.py:143
↓ 2 callers
Method
aclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 2 callers
Method
aclose
Close the async client and clean up resources. This ensures proper cleanup of the underlying aiohttp session to avoid unclosed connec
lib/crewai/src/crewai/llms/providers/azure/completion.py:1418
↓ 2 callers
Function
active_tool_failures
Records for the execution in progress, or None outside a collector.
lib/crewai/src/crewai/tools/tool_failure.py:286
↓ 2 callers
Method
add
( # type: ignore[override] self, youtube_channel_handle: str, )
lib/crewai-tools/src/crewai_tools/tools/youtube_channel_search_tool/youtube_channel_search_tool.py:41
↓ 2 callers
Method
add
(self, docs_url: str)
lib/crewai-tools/src/crewai_tools/tools/code_docs_search_tool/code_docs_search_tool.py:39
↓ 2 callers
Method
add
(self, website: str)
lib/crewai-tools/src/crewai_tools/tools/website_search/website_search_tool.py:40
↓ 2 callers
Method
add
( # type: ignore[override] self, repo: str, content_types: list[str] | None = None,
lib/crewai-tools/src/crewai_tools/tools/github_search_tool/github_search_tool.py:53
↓ 2 callers
Method
add
(self, directory: str)
lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/directory_search_tool.py:40
↓ 2 callers
Method
add
(self, youtube_video_url: str)
lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/youtube_video_search_tool.py:39
↓ 2 callers
Function
add_crew_attributes
Add crew attributes to a span. Args: span: The span to add the attributes to. crew: The crew whose attributes should be added.
lib/crewai/src/crewai/telemetry/utils.py:54
↓ 2 callers
Method
add_event
Add event to buffer
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:283
↓ 2 callers
Function
add_stream_sink
Register a sink in the current context.
lib/crewai/src/crewai/events/stream_context.py:17
↓ 2 callers
Function
add_tools_to_agent_project
Append ``tools`` to the agent definition and return the newly added ones. Saves ``platform_token`` to the project's ``.env`` and adds the ``c
lib/cli/src/crewai_cli/agent_tools.py:41
↓ 2 callers
Method
adelete
Delete memories asynchronously.
lib/crewai/src/crewai/memory/storage/backend.py:203
↓ 2 callers
Function
aexecute_a2a_delegation
Execute a task delegation to a remote A2A agent asynchronously. Native async implementation with multi-turn support. Use this when running in
lib/crewai/src/crewai/a2a/utils/delegation.py:239
↓ 2 callers
Function
afetch_agent_card
Fetch AgentCard from an A2A endpoint asynchronously. Native async implementation. Use this when running in an async context. Args: e
lib/crewai/src/crewai/a2a/utils/agent_card.py:157
↓ 2 callers
Function
agent_definition_tools
Return the string tool references in the agent definition.
lib/cli/src/crewai_cli/agent_tools.py:103
↓ 2 callers
Function
aget_task_files
Retrieve files for a task execution asynchronously. Args: task_id: Unique identifier for the task. Returns: Dictionary of fi
lib/crewai/src/crewai/utilities/file_store.py:126
↓ 2 callers
Function
aggregate_raw_outputs_from_task_outputs
Generate string context from the task outputs. Args: task_outputs: List of TaskOutput objects. Returns: A string containing
lib/crewai/src/crewai/utilities/formatter.py:16
↓ 2 callers
Function
ahandle_knowledge_retrieval
Handle async knowledge retrieval for task execution. Args: agent: The agent performing the task. task: The task being executed.
lib/crewai/src/crewai/agent/utils.py:329
↓ 2 callers
Method
akickoff_for_each
Native async execution of the Crew's workflow for each input. Uses native async throughout rather than thread-based async. Args:
lib/crewai/src/crewai/crew.py:1333
↓ 2 callers
Method
aon_inbound
Handle async inbound. Args: message: The inbound response. Returns: Modified response with async header.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:114
↓ 2 callers
Method
aon_outbound
Handle async outbound. Args: message: The outbound request. Returns: Modified request with async header.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:101
↓ 2 callers
Method
apply_auth
Apply API key authentication. Args: client: HTTP client for making auth requests. headers: Current request headers.
lib/crewai/src/crewai/a2a/auth/client_schemes.py:277
↓ 2 callers
Method
aread
Async fetch content from URL.
lib/crewai-files/src/crewai_files/core/sources.py:541
↓ 2 callers
Method
aremove_by_file_id
Remove a cached upload by file ID. Args: file_id: The file ID to remove. provider: The provider name. Return
lib/crewai-files/src/crewai_files/cache/upload_cache.py:326
↓ 2 callers
Method
areset
Reset the knowledge base asynchronously.
lib/crewai/src/crewai/knowledge/knowledge.py:201
↓ 2 callers
Method
aresolve
Async resolve a file to its delivery format for a provider. Args: file: The file to resolve. provider: Provider name
lib/crewai-files/src/crewai_files/resolution/resolver.py:425
↓ 2 callers
Function
arun_with_rate_limit_retry
Asynchronously run an operation with retries for transient rate limits.
lib/crewai/src/crewai/llms/retry.py:166
↓ 2 callers
Function
ask
(project: Path, question: str)
lib/devtools/src/crewai_devtools/agents_md_eval.py:208
↓ 2 callers
Function
ask_for_api_key
Ask for ``name``, an API key a run failed without, and save it. The key is asked for, exported and saved as :func:`ask_for_missing_api_keys`
lib/cli/src/crewai_cli/api_keys.py:165
↓ 2 callers
Function
assert_agent_runtime_field_schema
(properties: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:47
↓ 2 callers
Function
assert_llm_definition_schema
(schema_defs: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:63
↓ 2 callers
Function
assert_planning_config_schema
(schema_defs: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:54
↓ 2 callers
Method
assert_sent_to
(provider: str, request)
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:558
↓ 2 callers
Method
associate_job
Associate admitted work with the active originating turn/reply. This does not register, submit, control or mutate the job. Call through
lib/crewai/src/crewai/experimental/flow_turns.py:148
↓ 2 callers
Function
astore_task_files
Store files for a task execution asynchronously. Args: task_id: Unique identifier for the task. files: Dictionary mapping names t
lib/crewai/src/crewai/utilities/file_store.py:109
↓ 2 callers
Function
async_convert_to_model
Async equivalent of ``convert_to_model`` — uses native ``acall``. Mirrors the dispatch semantics of the sync version exactly; the only differ
lib/crewai/src/crewai/utilities/converter.py:436
↓ 2 callers
Function
async_convert_with_instructions
Async equivalent of ``convert_with_instructions`` — calls ``ato_pydantic``/``ato_json``.
lib/crewai/src/crewai/utilities/converter.py:535
↓ 2 callers
Method
ato_json
Async equivalent of ``to_json``. The function-calling path delegates to ``InternalInstructor`` (currently sync-only); we run it via `
lib/crewai/src/crewai/utilities/converter.py:181
↓ 2 callers
Function
attempt
Run one operation while retaining its retryable error.
lib/crewai/src/crewai/llms/retry.py:131
↓ 2 callers
Method
aupload
Async upload a file to S3 for use with Bedrock. Uses streaming upload with automatic multipart for large files. For FilePath sources,
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:380
↓ 2 callers
Function
awaiting_dir
Where the tokens live: this user's crewAI data directory, wherever the environment says home is. Windows reads it from the known-folder API.
lib/crewai-core/src/crewai_core/eval_handshake.py:62
↓ 2 callers
Function
backslashed
A workbook at the root and one under ``xl/``, with ``_rels/.rels`` naming ``xl\\workbook.xml``.
lib/crewai-files/tests/spreadsheets/test_reading.py:836
↓ 2 callers
Function
bare_model_name
Return the model family without provider, region, date, or version suffix. ``us.anthropic.claude-sonnet-4-5-20250929-v1:0`` and ``us.anthropi
lib/crewai/src/crewai/llms/context_window.py:174
↓ 2 callers
Method
begin_event_processing
Mark that an event handler started processing (for synchronization).
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:249
↓ 2 callers
Method
build
(provider: str, **kwargs)
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:549
↓ 2 callers
Function
build_action
Turn one `do:` action into the callable the flow runs for that node.
lib/crewai/src/crewai/flow/runtime/_actions.py:471
↓ 2 callers
Function
build_embedder_from_provider
Build an embedding function instance from a provider. Args: provider: The embedding provider configuration. Returns: An inst
lib/crewai/src/crewai/rag/embeddings/factory.py:120
← previous
next →
2,701–2,800 of 19,663, ranked by callers