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
↓ 3 callers
Method
_tracing_was_asked_for
Did somebody turn tracing on for this run? Read here rather than through `tracing_asked_for()`, because the ContextVar that helper re
lib/cli/src/crewai_cli/crew_run_tui.py:1421
↓ 3 callers
Function
_truncate_log_text
(value: Any, limit: int)
lib/cli/src/crewai_cli/crew_run_tui.py:59
↓ 3 callers
Function
_trusted_amp_origins
Where the saved login may be sent: the AMP this machine is configured for (`crewai enterprise configure`), one already exported in this shell, and
lib/cli/src/crewai_cli/experimental/eval_crew.py:703
↓ 3 callers
Function
_trusted_deserialize
Return True only if ``CREWAI_DESERIALIZE_CALLBACKS`` is an explicit yes.
lib/crewai/src/crewai/types/callback.py:26
↓ 3 callers
Function
_user_data_lock_name
Return a stable lock name for the user data file.
lib/crewai-core/src/crewai_core/user_data.py:29
↓ 3 callers
Function
_validate_format
Validate content type against supported formats. Args: file_type: Type label for error messages (e.g., "Image", "Audio"). filenam
lib/crewai-files/src/crewai_files/processing/validators.py:201
↓ 3 callers
Method
_validate_output_file_path
Validate an output file path for security concerns. Args: value: The output file path to validate. allow_templates: I
lib/crewai/src/crewai/task.py:531
↓ 3 callers
Function
_wait
Poll until the evaluation is done or failed. Every unfinished answer goes to ON_STATUS, so a caller that has somewhere to show progress can s
lib/cli/src/crewai_cli/experimental/eval_crew.py:1537
↓ 3 callers
Method
_write_checkpoint
Write a UTF-8 checkpoint whose entity name is non-ASCII, as the runtime does.
lib/crewai/tests/test_checkpoint_cli.py:235
↓ 3 callers
Function
_write_classic_crew_project
( root: Path, monkeypatch: pytest.MonkeyPatch, *, with_crew_module: bool = True )
lib/crewai/tests/cli/test_crew_chat.py:177
↓ 3 callers
Function
_write_project
Create a minimal Poetry-style project with a lock file in ``tmp_path``.
lib/cli/tests/test_update_crew.py:26
↓ 3 callers
Function
_zip_deployment_flag
Whether AMP holds this deployment's code as a ZIP, or None when the status does not say. AMP's status sends `source_type` ("zip", "studio", "
lib/cli/src/crewai_cli/deploy/main.py:114
↓ 3 callers
Function
aclear_files
Clear files for a crew execution asynchronously. Args: execution_id: Unique identifier for the crew execution.
lib/crewai/src/crewai/utilities/file_store.py:98
↓ 3 callers
Method
action_deploy_crew
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1467
↓ 3 callers
Method
action_view_traces
Open AMP's view of this run's traces. crewAI prints that link after a run, but never under a TUI — its console is kept out of this la
lib/cli/src/crewai_cli/crew_run_tui.py:1374
↓ 3 callers
Function
activity
(flow, seq, **kwargs)
lib/crewai/tests/test_flow_replies.py:52
↓ 3 callers
Method
add
(self, mdx: str)
lib/crewai-tools/src/crewai_tools/tools/mdx_search_tool/mdx_search_tool.py:39
↓ 3 callers
Method
add
(self, csv: str)
lib/crewai-tools/src/crewai_tools/tools/csv_search_tool/csv_search_tool.py:39
↓ 3 callers
Method
add
(self, docx: str)
lib/crewai-tools/src/crewai_tools/tools/docx_search_tool/docx_search_tool.py:39
↓ 3 callers
Method
add
(self, pdf: str)
lib/crewai-tools/src/crewai_tools/tools/pdf_search_tool/pdf_search_tool.py:40
↓ 3 callers
Method
add_edge
Add an edge from this node to another. Args: edge_type: The relationship type. target_id: The event_id of the target
lib/crewai/src/crewai/state/event_record.py:78
↓ 3 callers
Method
add_sources
(self)
lib/crewai/src/crewai/knowledge/knowledge.py:154
↓ 3 callers
Method
adelete
Async delete an uploaded file. Default implementation runs sync delete in executor. Override in subclasses for native async support.
lib/crewai-files/src/crewai_files/uploaders/base.py:86
↓ 3 callers
Function
agent_definition_path
Return the project's JSON or YAML agent definition.
lib/cli/src/crewai_cli/agent_tools.py:137
↓ 3 callers
Function
aget_all_files
Get merged crew and task files asynchronously. Task files override crew files with the same name. Args: crew_id: Unique identifier f
lib/crewai/src/crewai/utilities/file_store.py:154
↓ 3 callers
Method
aget_by_hash
Get a cached upload by file hash. Args: file_hash: Hash of the file content. provider: The provider name. Re
lib/crewai-files/src/crewai_files/cache/upload_cache.py:207
↓ 3 callers
Function
aget_files
Retrieve files for a crew execution asynchronously. Args: execution_id: Unique identifier for the crew execution. Returns: D
lib/crewai/src/crewai/utilities/file_store.py:81
↓ 3 callers
Method
ainvoke
Async version of invoke. Alias for invoke_async.
lib/crewai/src/crewai/agents/agent_executor.py:3322
↓ 3 callers
Method
all_of
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:50
↓ 3 callers
Function
allows_private_host
Whether *hostname* is explicitly allowed to resolve privately. Matching is exact on the hostname: no wildcards, and IP addresses are never al
lib/crewai-tools/src/crewai_tools/security/safe_path.py:276
↓ 3 callers
Function
analyze_query
Use the LLM to analyze a recall query. On LLM failure, returns safe defaults so recall degrades to plain vector search. Args: query:
lib/crewai/src/crewai/memory/analyze.py:204
↓ 3 callers
Method
animateEdgeWidth
( edges, edgeId, targetWidth, duration = CONSTANTS.EDGE.ANIMATION_DURATION, )
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:584
↓ 3 callers
Method
animateToPosition
(targetPosition)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:2391
↓ 3 callers
Function
append_message
Append a message to ``state.messages`` or the flow fallback buffer.
lib/crewai/src/crewai/flow/conversation.py:117
↓ 3 callers
Function
apply_execution_context
Write an ExecutionContext back into the ContextVars.
lib/crewai/src/crewai/context.py:120
↓ 3 callers
Method
areset
(self)
lib/crewai/tests/agents/test_agent.py:1899
↓ 3 callers
Method
aresolve_files
Async resolve multiple files in parallel. Args: files: Dictionary mapping names to file inputs. provider: Provider na
lib/crewai-files/src/crewai_files/resolution/resolver.py:451
↓ 3 callers
Method
asave
Save documents to the knowledge base asynchronously. Args: documents: List of document strings to save.
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:239
↓ 3 callers
Method
asave
(self, documents)
lib/crewai/tests/agents/test_agent.py:1893
↓ 3 callers
Method
asearch
Search for documents in the knowledge base asynchronously. Args: query: List of query strings. limit: Maximum number
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:196
↓ 3 callers
Method
aset_by_hash
Cache an uploaded file by hash. Args: file_hash: Hash of the file content. content_type: MIME type of the file.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:262
↓ 3 callers
Function
assert_anonymous
A random uuid4: not the run's id, not the project's, nothing derived.
lib/cli/tests/experimental/test_eval_crew.py:976
↓ 3 callers
Method
assert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/cli/tests/test_plus_api.py:150
↓ 3 callers
Method
assert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/crewai/tests/cli/test_plus_api.py:48
↓ 3 callers
Function
astore_files
Store files for a crew execution asynchronously. Args: execution_id: Unique identifier for the crew execution. files: Dictionary
lib/crewai/src/crewai/utilities/file_store.py:64
↓ 3 callers
Method
ato_pydantic
Async equivalent of ``to_pydantic`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/utilities/converter.py:125
↓ 3 callers
Function
awaited_evaluation
What `crewai eval` said about this run, when it started it: None for a run nobody is evaluating. Never raises: a directory or a file that cannot
lib/crewai-core/src/crewai_core/eval_handshake.py:75
↓ 3 callers
Function
bare_context_windows
Index context limits by bare model name. Each catalog entry casts a vote for its limit. The bare name keeps the limit with the most votes. A
lib/crewai/src/crewai/llms/context_window.py:216
↓ 3 callers
Function
build
(tf: tarfile.TarFile)
lib/crewai/tests/skills/test_cache.py:213
↓ 3 callers
Function
build_env_with_tool_repository_credentials
Return a copy of ``os.environ`` augmented with UV_INDEX_* credentials for ``repository_handle``. The handle is normalized to upper-case with
lib/crewai-core/src/crewai_core/tool_credentials.py:12
↓ 3 callers
Function
build_execution_plan
Build an execution plan from handlers and their dependencies. Args: handlers: All handlers for an event type dependencies: Mappin
lib/crewai/src/crewai/events/handler_graph.py:105
↓ 3 callers
Method
build_router_context
(self)
lib/crewai/tests/test_flow_jobs.py:77
↓ 3 callers
Function
build_simple_crew
(tool)
lib/crewai/tests/tools/test_structured_tool.py:354
↓ 3 callers
Function
build_skill_catalog
Label the metadata-only skills an execution can still load. Skills resolved from different orgs or search paths can share a frontmatter name.
lib/crewai/src/crewai/skills/loader.py:245
↓ 3 callers
Function
build_zip
Return a zip holding *names*, shaped like an OOXML package.
lib/crewai-tools/tests/url_read_tool_test.py:126
↓ 3 callers
Method
calculate_usage_metrics
Calculates and returns the usage metrics.
lib/crewai/src/crewai/crew.py:2336
↓ 3 callers
Method
call
(self, messages, **kwargs)
lib/cli/tests/test_run_agent.py:275
↓ 3 callers
Method
call
Mock LLM call that returns a predefined response. Properly formats messages to match OpenAI's expected structure.
lib/crewai/tests/test_custom_llm.py:27
↓ 3 callers
Method
call_llm_native_tools
Execute LLM call with native function calling. Always calls the LLM so it can read reflection prompts and decide whether to provide a
lib/crewai/src/crewai/agents/agent_executor.py:1724
↓ 3 callers
Function
call_stop_override
Override the stop list for ``llm`` within the current call scope. Only ``llm``'s reads via :attr:`BaseLLM.stop_sequences` see ``stop``; other
lib/crewai/src/crewai/llms/base_llm.py:174
↓ 3 callers
Method
call_tool_result
Call a tool and return its content together with the ``isError`` flag. MCP servers report a failed tool as a *successful* JSON-RPC response
lib/crewai/src/crewai/mcp/client.py:468
↓ 3 callers
Function
captured_task_failures
Every TaskFailedEvent the producer *emits*, captured at the emit boundary. Patches ``crewai_event_bus.emit`` rather than subscribing a handler to
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:369
↓ 3 callers
Method
chat
Start an experimental conversation using the same options as Flow.chat. Requires ``conversational=True``. Use ``tui=True`` for the terminal U
lib/crewai/src/crewai/agent/core.py:1966
↓ 3 callers
Function
check_artifact_source
Reject file kinds with no file_path: text output can never fill them.
lib/crewai/src/crewai/artifacts.py:109
↓ 3 callers
Method
check_output
Check if an output type is set.
lib/crewai/src/crewai/task.py:633
↓ 3 callers
Method
classify_intent
Map user text to one of the given outcomes using an LLM.
lib/crewai/src/crewai/flow/conversational_mixin.py:1007
↓ 3 callers
Function
claude_supports_vision
Return whether a Claude model ID names Claude 3 or later. The ID must start with ``claude-<n>`` or ``claude-<family>-<n>``, so ``claude-sonne
lib/crewai/src/crewai/llms/providers/utils/common.py:12
↓ 3 callers
Function
clear_all_llm_call_hooks
Clear all registered global LLM call hooks (both before and after). Returns: Tuple of (before_hooks_cleared, after_hooks_cleared) Ex
lib/crewai/src/crewai/hooks/llm_hooks.py:399
↓ 3 callers
Method
close
Close the underlying stream.
lib/crewai-files/src/crewai_files/core/sources.py:389
↓ 3 callers
Method
close
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1913
↓ 3 callers
Method
close
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:182
↓ 3 callers
Method
close
(self)
lib/crewai/tests/memory/test_storage_backend_async_parity.py:46
↓ 3 callers
Function
close_span
Set span status to OK and end it. Args: span: The span to close.
lib/crewai/src/crewai/telemetry/utils.py:116
↓ 3 callers
Method
coding_agent_span
Records which AI coding assistant (if any) is running this process. Emitted at most once per process as a feature usage event, so it lands
lib/crewai/src/crewai/telemetry/telemetry.py:1346
↓ 3 callers
Method
compute_key
Compute a collision-resistant key using SHA-256.
lib/crewai/src/crewai/a2a/auth/utils.py:42
↓ 3 callers
Function
compute_sha256
Compute the SHA-256 hash of the given content. Args: content: The content to hash. Returns: The SHA-256 hash of the content as a
lib/crewai-tools/src/crewai_tools/rag/misc.py:5
↓ 3 callers
Function
configure_auth_client
Configure HTTP client with auth-specific settings. Only HTTPDigestAuth and APIKeyAuth need client configuration. Args: auth: Authent
lib/crewai/src/crewai/a2a/auth/utils.py:262
↓ 3 callers
Function
configured_project_json_crew
Return the configured JSON crew definition for crew projects.
lib/cli/src/crewai_cli/run_crew.py:166
↓ 3 callers
Function
context_windows_from_catalog
Build model-id context windows from a LiteLLM catalog payload. Catalog keys are kept as published. When a key is ``provider/model`` and that
lib/crewai/src/crewai/llms/context_window.py:90
↓ 3 callers
Function
copy_template
Copy a file from src to dst; ``extras`` go into its crewai dependency.
lib/cli/src/crewai_cli/utils.py:164
↓ 3 callers
Method
count
(self, scope_prefix: str | None = None)
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:644
↓ 3 callers
Function
create_async_chunk_generator
Create an async chunk generator that uses a holder to access streaming output. Args: state: The streaming state. run_coro: Corout
lib/crewai/src/crewai/utilities/streaming.py:522
↓ 3 callers
Function
create_frame_generator
Create a scoped synchronous public frame generator.
lib/crewai/src/crewai/utilities/streaming.py:254
↓ 3 callers
Function
create_memory_tools
Create Recall and Remember tools for the given memory instance. When memory is read-only (``_read_only=True``), only the RecallMemoryTool is
lib/crewai/src/crewai/tools/memory_tools.py:104
↓ 3 callers
Function
create_streaming_state
Create and register streaming state. Args: current_task_info: Task context info. result_holder: List to hold the final result.
lib/crewai/src/crewai/utilities/streaming.py:412
↓ 3 callers
Function
created_config
Yield a getter for the config RagTool hands to the client factory.
lib/crewai-tools/tests/tools/rag/test_rag_tool_default_provider.py:25
↓ 3 callers
Method
crew_by_name
( self, project_name: str, log_type: str = "deployment" )
lib/crewai-core/src/crewai_core/plus_api.py:502
↓ 3 callers
Method
crew_by_uuid
(self, uuid: str, log_type: str = "deployment")
lib/crewai-core/src/crewai_core/plus_api.py:509
↓ 3 callers
Method
current
(self)
lib/cli/src/crewai_cli/organization/main.py:90
↓ 3 callers
Function
delegate_to_analyst
(task: str)
lib/crewai/tests/agents/test_agent_spreadsheets.py:610
↓ 3 callers
Method
delete
( self, scope_prefix: str | None = None, categories: list[str] | None = None,
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:433
↓ 3 callers
Method
delete_crew_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:514
↓ 3 callers
Method
delete_crew_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:519
↓ 3 callers
Method
delta_since
Return the per-call usage accrued since ``baseline`` was captured. Both objects must come from the same monotonically increasing accu
lib/crewai/src/crewai/types/usage_metrics.py:79
↓ 3 callers
Function
deny_nth_model_call
Deny the nth model call of the run, returning the log of attempts.
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:127
↓ 3 callers
Method
descendants
Return all descendant nodes, children recursively. Args: event_id: The root event ID to start from. Returns:
lib/crewai/src/crewai/state/event_record.py:160
↓ 3 callers
Method
disallow_file
Revoke an artifact path. Missing aliases are ignored.
lib/crewai/src/crewai/tools/agent_tools/deferred_tool_result_reader.py:43
↓ 3 callers
Method
disconnect
Close HTTP connection. Raises: MCPConnectionError: If the server refused the connection. The refusal is reported
lib/crewai/src/crewai/mcp/transports/http.py:167
↓ 3 callers
Method
download_pdf
(self, pdf_url: str, save_path: str)
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:161
↓ 3 callers
Method
embed_batch
Generate embeddings for multiple texts. Args: texts: List of texts to embed Returns: List of embedd
lib/crewai-tools/src/crewai_tools/rag/embedding_service.py:285
← previous
next →
1,801–1,900 of 19,663, ranked by callers