Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
14,252 in github.com/crewAIInc/crewAI
⨍
Functions
14,252
◇
Types & classes
2,905
↳
Endpoints
796
↓ 14 callers
Function
_scaffold_standard_crew
( root: Path, *, name: str = "my_crew", include_crew_py: bool = True, include_agents_yaml:
lib/cli/tests/deploy/test_validate.py:52
↓ 14 callers
Method
add_documents
Add documents with their embeddings to a collection. Keyword Args: collection_name: The name of the collection to add documents t
lib/crewai/src/crewai/rag/qdrant/client.py:234
↓ 14 callers
Method
close
Kill the cached persistent sandbox if one exists.
lib/crewai-tools/src/crewai_tools/tools/e2b_sandbox_tool/e2b_base_tool.py:183
↓ 14 callers
Method
discard
(self)
lib/crewai/tests/test_flow_from_definition.py:3708
↓ 14 callers
Function
discover_skills
Scan a directory for skill directories containing SKILL.md. Loads each discovered skill at METADATA disclosure level. Args: search_p
lib/crewai/src/crewai/skills/loader.py:44
↓ 14 callers
Method
drain_writes
Block until all pending background saves have completed. Called automatically by ``recall()`` and should be called by the crew at shu
lib/crewai/src/crewai/memory/unified_memory.py:350
↓ 14 callers
Function
get_conversion_instructions
Generate conversion instructions based on the model and LLM capabilities. Args: model: A Pydantic model class. llm: The language
lib/crewai/src/crewai/utilities/converter.py:530
↓ 14 callers
Function
get_execution_uuid
Return the active execution uuid, if any.
lib/crewai/src/crewai/execution.py:27
↓ 14 callers
Method
load
Load all task output records from the database. Returns: List of dictionaries containing task output records, ordered by task_ind
lib/crewai/src/crewai/memory/storage/kickoff_task_outputs_storage.py:162
↓ 14 callers
Function
load_skill_metadata
Load a skill at METADATA disclosure level. Parses SKILL.md frontmatter only and validates directory name. Args: skill_dir: Path to t
lib/crewai/src/crewai/skills/parser.py:95
↓ 14 callers
Method
pause_live_updates
Pause Live session updates to allow for human input without interference. This stops any active streaming Live session to prevent console ref
lib/crewai/src/crewai/events/utils/console_formatter.py:192
↓ 14 callers
Function
platform_context
Context manager to temporarily set the platform integration token. Args: integration_token: The integration token to set within the context
lib/crewai/src/crewai/context.py:52
↓ 14 callers
Method
reset
(self)
lib/crewai/tests/agents/test_agent.py:1923
↓ 14 callers
Function
sanitize_scope_name
Sanitize a name for use in hierarchical scope paths. Converts to lowercase, replaces non-alphanumeric chars (except underscore and hyphen) wi
lib/crewai/src/crewai/memory/utils.py:8
↓ 14 callers
Method
set
Sync wrapper for aset.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:429
↓ 13 callers
Function
_build_crew
(policy: ToolFailurePolicy | None = None, **task_kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:119
↓ 13 callers
Function
_estimate_token_count
Estimate token count using a conservative cross-provider heuristic. Args: text: The text to estimate tokens for. Returns: Es
lib/crewai/src/crewai/utilities/agent_utils.py:835
↓ 13 callers
Method
_invoke_after_llm_call_hooks
Invoke after_llm_call hooks for direct LLM calls (no agent context). This method should be called by native provider implementations after
lib/crewai/src/crewai/llms/base_llm.py:1049
↓ 13 callers
Function
_is_version_yanked
Return ``(yanked, reason)`` for ``version_str`` against PyPI releases.
lib/crewai-core/src/crewai_core/version.py:91
↓ 13 callers
Method
_usage_to_dict
Convert a provider usage object to a plain dict and flatten the cache/reasoning sub-counts that LiteLLM nests under provider-specific
lib/crewai/src/crewai/llm.py:2092
↓ 13 callers
Method
_validate_response
Handle and display error messages from API responses. Args: response: The response from the Plus API.
lib/cli/src/crewai_cli/command.py:40
↓ 13 callers
Function
_write
(tmp_path: Path, contents: str)
lib/cli/tests/test_run_declarative_flow.py:261
↓ 13 callers
Method
cancel
(id)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:617
↓ 13 callers
Method
delete
Delete memories matching the given criteria. Args: scope_prefix: Optional scope path prefix. categories: Optional lis
lib/crewai/src/crewai/memory/storage/backend.py:80
↓ 13 callers
Method
execute
(self)
lib/crewai/tests/test_streaming_integration.py:236
↓ 13 callers
Method
finalize_batch
Finalize batch and return it for sending
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:327
↓ 13 callers
Method
format
Format log record as JSON string.
lib/crewai/src/crewai/a2a/utils/logging.py:23
↓ 13 callers
Method
generate
(self)
lib/crewai/tests/telemetry/test_flow_telemetry.py:286
↓ 13 callers
Method
get_client_id
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:30
↓ 13 callers
Function
get_constraints_for_provider
Get constraints for a provider by name or return if already ProviderConstraints. Args: provider: Provider name string or ProviderConstrai
lib/crewai-files/src/crewai_files/processing/constraints.py:323
↓ 13 callers
Method
insert
(self, index: int, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:48
↓ 13 callers
Function
parse_toml
Parse a TOML string and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:36
↓ 13 callers
Function
parse_tool_call_args
Parse tool call arguments from a JSON string or dict. Returns: ``(args_dict, None)`` on success, or ``(None, error_result)`` on J
lib/crewai/src/crewai/utilities/agent_utils.py:1882
↓ 13 callers
Method
read
(self, tool: str, input: str)
lib/crewai/tests/tools/test_tool_failure.py:1068
↓ 12 callers
Function
_assert_tools_overlapped
()
lib/crewai/tests/agents/test_native_tool_calling.py:131
↓ 12 callers
Method
_is_conversational_enabled
(self)
lib/crewai/src/crewai/experimental/conversational_mixin.py:941
↓ 12 callers
Function
_make_tar_gz
Build an in-memory .tar.gz containing the given filename → content mapping.
lib/crewai/tests/skills/test_cache.py:16
↓ 12 callers
Method
_oauth2_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:40
↓ 12 callers
Function
_parallel_prompt
()
lib/crewai/tests/agents/test_native_tool_calling.py:103
↓ 12 callers
Function
_pin_crewai_deps
Replace crewai dependency version pins in a pyproject.toml string. Handles both pinned (==) and minimum (>=) version specifiers, as well as e
lib/devtools/src/crewai_devtools/cli.py:622
↓ 12 callers
Function
_saved_methods
(store)
lib/crewai/tests/test_flow_from_definition.py:3411
↓ 12 callers
Function
_validate_deployment_repo_crewai_pin
Fail unless every effective canary CrewAI requirement has the exact pin.
lib/devtools/src/crewai_devtools/cli.py:1554
↓ 12 callers
Method
aadd_documents
Add documents with their embeddings to a collection asynchronously. Keyword Args: collection_name: The name of the collection to
lib/crewai/src/crewai/rag/qdrant/client.py:279
↓ 12 callers
Method
clear
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1248
↓ 12 callers
Method
create
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:68
↓ 12 callers
Function
create_project_zip
Create a deployable ZIP archive for a CrewAI project.
lib/cli/src/crewai_cli/deploy/archive.py:39
↓ 12 callers
Function
download_skill
Download a skill from the registry and store it in the cache. Args: org: Organisation slug. name: Skill name. source: Opt
lib/crewai/src/crewai/skills/registry.py:275
↓ 12 callers
Method
format_output_for_agent
(self, raw_result: object)
lib/crewai/tests/tools/test_base_tool.py:610
↓ 12 callers
Method
from_dict
Create a Fingerprint from a dictionary representation. Args: data: Dictionary representation of a fingerprint Returns:
lib/crewai/src/crewai/security/fingerprint.py:136
↓ 12 callers
Method
get_cached_path
Return the cached skill directory path if usable, else None. Args: org: Organisation slug. name: Skill name.
lib/crewai/src/crewai/skills/cache.py:44
↓ 12 callers
Function
get_current_call_id
Get current call_id from context
lib/crewai/src/crewai/llms/base_llm.py:139
↓ 12 callers
Function
handle_unknown_error
Handle unknown errors by informing the user. Args: printer: Printer instance for output exception: The exception that occurred
lib/crewai/src/crewai/utilities/agent_utils.py:715
↓ 12 callers
Method
list
List all CLI configuration parameters.
lib/cli/src/crewai_cli/settings/main.py:24
↓ 12 callers
Function
llm_call_context
Context manager that establishes an LLM call scope with a unique call_id.
lib/crewai/src/crewai/llms/base_llm.py:91
↓ 12 callers
Method
load
Load and process all files from a directory recursively. Args: source_content: Directory path or URL to a directory listing
lib/crewai-tools/src/crewai_tools/rag/loaders/directory_loader.py:10
↓ 12 callers
Function
parse_frontmatter
Split SKILL.md content into frontmatter dict and body text. Args: content: Raw SKILL.md file content. Returns: Tuple of (fro
lib/crewai/src/crewai/skills/parser.py:39
↓ 12 callers
Method
read
Fetch content from URL (for providers that don't support URL references).
lib/crewai-files/src/crewai_files/core/sources.py:528
↓ 12 callers
Function
register_before_llm_call_hook
Register a global before_llm_call hook. Global hooks are added to all executors automatically. This is a convenience function for registering
lib/crewai/src/crewai/hooks/llm_hooks.py:191
↓ 12 callers
Function
resolve_registry_ref
Resolve a registry reference to a Skill object. Resolution order: 1. ./skills/{name}/ in the current working directory (project-local) 2.
lib/crewai/src/crewai/skills/registry.py:114
↓ 12 callers
Method
resume_live_updates
Resume Live session updates after human input is complete. New streaming sessions will be created on-demand when needed. This method
lib/crewai/src/crewai/events/utils/console_formatter.py:202
↓ 12 callers
Method
save
(self, records: list[MemoryRecord])
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:289
↓ 12 callers
Method
start
(self)
lib/crewai/tests/test_crew.py:4547
↓ 12 callers
Method
start
(self)
lib/crewai/tests/utilities/test_events.py:629
↓ 12 callers
Method
to_dict
Convert to JSON-RPC error object format.
lib/crewai/src/crewai/a2a/errors.py:146
↓ 12 callers
Method
to_pydantic
Generate structured output using the specified Pydantic model. Returns: Instance of the specified Pydantic model with structured
lib/crewai/src/crewai/utilities/internal_instructor.py:139
↓ 11 callers
Method
_agent
(self, **kwargs)
lib/crewai/tests/test_tool_cache_default.py:143
↓ 11 callers
Method
_make_state
(self)
lib/crewai/tests/test_checkpoint.py:192
↓ 11 callers
Method
_require_memory
Return the bound ``Memory`` or raise a clear error if missing.
lib/crewai/src/crewai/memory/memory_scope.py:77
↓ 11 callers
Function
_resolve_tools
Resolve tool specs into tool instances or serialized BaseTool dicts. Strings keep the existing shorthand behavior. Dicts are passed through so
lib/crewai/src/crewai/project/json_loader.py:1803
↓ 11 callers
Method
_run
Read a file, or a window of its lines, as text.
lib/crewai-tools/src/crewai_tools/tools/file_read_tool/file_read_tool.py:174
↓ 11 callers
Method
_run
Process input text synchronously.
lib/crewai/tests/tools/test_base_tool.py:149
↓ 11 callers
Method
_setup_connected_tool
(self, rows: list[tuple], **kwargs)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:391
↓ 11 callers
Method
_should_defer_trace_finalization
Whether this kickoff should defer final flow trace finalization.
lib/crewai/src/crewai/flow/runtime/__init__.py:479
↓ 11 callers
Function
_split_messages_into_chunks
Split messages into chunks at message boundaries. Excludes system messages and expands oversized single messages before chunking. Each chunk
lib/crewai/src/crewai/utilities/agent_utils.py:955
↓ 11 callers
Function
_stub_api
A CrewAI AMP client stub serving one skill.
lib/crewai/tests/skills/test_registry.py:52
↓ 11 callers
Function
_write_json_checkpoint
( base_dir: str, branch: str = "main", name: str | None = None, data: str | None = None, t
lib/crewai/tests/test_checkpoint_cli.py:69
↓ 11 callers
Method
add
Add a new task output to storage. Args: task: The task that was executed. output: The output produced by the task.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:58
↓ 11 callers
Function
build
(model: str = "gpt-5.6-sol", **kwargs)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:46
↓ 11 callers
Function
create_folder_structure
( name: str, parent_folder: str | None = None )
lib/cli/src/crewai_cli/create_crew.py:46
↓ 11 callers
Function
create_test_png
Create a minimal valid PNG for testing.
lib/crewai-files/tests/processing/test_transformers.py:20
↓ 11 callers
Method
delete
Delete an uploaded file. Args: file_id: The file identifier to delete. Returns: True if deletion was success
lib/crewai-files/src/crewai_files/uploaders/base.py:76
↓ 11 callers
Function
execute_single_native_tool_call
Execute a single native tool call with full lifecycle management. Handles: arg parsing, tool lookup, max-usage check, cache read/write, befor
lib/crewai/src/crewai/utilities/agent_utils.py:1602
↓ 11 callers
Method
execute_sql
Execute *sql_query* and return the results as a list of dicts. Parameters ---------- sql_query: The SQL statement
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:439
↓ 11 callers
Function
get_after_llm_call_hooks
Get all registered global after_llm_call hooks. Returns: List of registered after hooks
lib/crewai/src/crewai/hooks/llm_hooks.py:266
↓ 11 callers
Method
get_mcp_tools
(self, mcps: list[str])
lib/crewai/tests/agents/agent_builder/test_base_agent.py:25
↓ 11 callers
Function
parse_skill_ref
Parse a registry reference into its organisation, name and version. Accepts '@org/skill-name' and the version-pinned '@org/skill-name@1.2.0'
lib/crewai/src/crewai/skills/registry.py:46
↓ 11 callers
Function
read_file
(path)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:35
↓ 11 callers
Method
replay
Replay the crew execution from a specific task.
lib/crewai/src/crewai/crew.py:2031
↓ 11 callers
Function
require
Import a module, optionally returning a specific attribute. Args: name: The module name to import. purpose: Description of what r
lib/crewai/src/crewai/utilities/import_utils.py:21
↓ 11 callers
Method
run_crew
Execute the crew and capture the result.
lib/crewai/src/crewai/crew.py:1018
↓ 11 callers
Method
search
( self, query: list[str], limit: int = 5, metadata_filter: dict[str, Any] | No
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:59
↓ 11 callers
Function
validate_video
Validate a video file against constraints. Args: file: The video file to validate. constraints: Video constraints to validate aga
lib/crewai-files/src/crewai_files/processing/validators.py:388
↓ 10 callers
Function
_create_analyst_crew
Create a simple analyst crew for file analysis.
lib/crewai/tests/test_flow_multimodal.py:80
↓ 10 callers
Function
_create_batch_slice
Create a batch slice from prepared documents. Args: prepared: PreparedDocuments containing ids, texts, and metadatas. start_index
lib/crewai/src/crewai/rag/chromadb/utils.py:112
↓ 10 callers
Method
_emit_stream_chunk_event
Emit stream chunk event. Args: chunk: The text content of the chunk. from_task: The task that initiated the call.
lib/crewai/src/crewai/llms/base_llm.py:663
↓ 10 callers
Method
_extract_finish_reason_and_response_id
LiteLLM responses/chunks share the choices-shape with OpenAI/Azure; delegate to the shared extractor.
lib/crewai/src/crewai/llm.py:2196
↓ 10 callers
Function
_find_checkpoint
Find the CheckpointConfig for an event source. Walks known relationships: Task -> Agent -> Crew. Flow and Agent carry their own checkpoint fi
lib/crewai/src/crewai/state/checkpoint_listener.py:88
↓ 10 callers
Function
_format_messages_for_summary
Format messages with role labels for summarization. Skips system messages. Handles None content, tool_calls, and multimodal content blocks.
lib/crewai/src/crewai/utilities/agent_utils.py:900
↓ 10 callers
Function
_llm_stop_words_applied
Apply the executor's stop words to the LLM for the duration of one call. Uses :func:`crewai.llms.base_llm.call_stop_override` so the LLM's stop
lib/crewai/src/crewai/utilities/agent_utils.py:344
↓ 10 callers
Method
_make_manager
(self, *, ephemeral: bool)
lib/crewai/tests/tracing/test_tracing.py:1794
← previous
next →
201–300 of 14,252, ranked by callers