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
↓ 8 callers
Method
_track_token_usage_internal
Track token usage internally in the LLM instance. Args: usage_data: Token usage data from the API response
lib/crewai/src/crewai/llms/base_llm.py:955
↓ 8 callers
Method
_validate_query
Validate the search query to ensure it's safe to execute. Only SELECT and SHOW statements are allowed for security reasons. Args:
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:356
↓ 8 callers
Method
aclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 8 callers
Method
add
Add content to the knowledge base.
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:98
↓ 8 callers
Function
begin_execution
Start an execution context unless one is already active. The outermost crew or flow receives a new uuid by default. Nested executions inherit
lib/crewai/src/crewai/execution.py:51
↓ 8 callers
Function
chunk_text
Split a text file into chunks of maximum character count. Yields chunks one at a time to minimize memory usage. Args: file: The text
lib/crewai-files/src/crewai_files/processing/transformers.py:227
↓ 8 callers
Function
cleanup_temp_file
(path)
lib/crewai-tools/tests/rag/test_text_loaders.py:19
↓ 8 callers
Method
copy
Creates a deep copy of the Crew instance. Returns: Crew: A new instance with copied components
lib/crewai/src/crewai/crew.py:2114
↓ 8 callers
Method
delete_collection
Delete a collection and all its data. Keyword Args: collection_name: Name of the collection to delete. Raises:
lib/crewai/src/crewai/rag/qdrant/client.py:430
↓ 8 callers
Function
detect_content_type
Detect MIME type from file content. Uses python-magic if available for accurate content-based detection, falls back to mimetypes module using
lib/crewai-files/src/crewai_files/core/sources.py:125
↓ 8 callers
Method
first
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:44
↓ 8 callers
Function
force_additional_properties_false
Force additionalProperties=false on all object-type dicts recursively. OpenAI strict mode requires all objects to have additionalProperties=false
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:181
↓ 8 callers
Function
format_skill_context
Format skill information for agent prompt injection. At METADATA level: returns name and description only. At INSTRUCTIONS level or above: re
lib/crewai/src/crewai/skills/loader.py:293
↓ 8 callers
Method
from_flow
Build an expression with the standard Flow runtime context.
lib/crewai/src/crewai/flow/expressions.py:185
↓ 8 callers
Function
generate_filename
Generate a UUID-based filename with extension from content type. Args: content_type: MIME type to derive extension from. Returns:
lib/crewai-files/src/crewai_files/core/sources.py:110
↓ 8 callers
Function
get_all_files
Get merged crew and task files. Task files override crew files with the same name. Args: crew_id: Unique identifier for the crew exe
lib/crewai/src/crewai/utilities/file_store.py:250
↓ 8 callers
Function
get_crew_context
Get the current crew context from OpenTelemetry baggage. Returns: CrewContext instance containing crew context information, or None if no
lib/crewai/src/crewai/utilities/crew/crew_context.py:10
↓ 8 callers
Function
get_crewai_tools_dependency
Return the generated-project dependency for CrewAI with tools.
lib/cli/src/crewai_cli/version.py:27
↓ 8 callers
Method
get_or_create_collection
Get an existing collection or create it if it doesn't exist. Keyword Args: collection_name: Name of the collection to get or crea
lib/crewai/src/crewai/rag/qdrant/client.py:146
↓ 8 callers
Function
get_tool_call_events
Extract tool call streaming events from mock emit calls.
lib/crewai/tests/llms/test_tool_call_streaming.py:55
↓ 8 callers
Function
get_triggering_event_id
Get the ID of the event that triggered the current execution. Returns: The event_id of the triggering event, or None if not in a triggere
lib/crewai/src/crewai/events/event_context.py:100
↓ 8 callers
Method
is_expired
Check if this cached upload has expired.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:48
↓ 8 callers
Method
is_url
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:20
↓ 8 callers
Function
normalize_scope_path
Normalize a scope path by removing double slashes and ensuring proper format. Args: path: The raw scope path (e.g. '/crew/MyCrewName//age
lib/crewai/src/crewai/memory/utils.py:39
↓ 8 callers
Function
parse_registry_ref
Parse '@org/skill-name' into (org, name), ignoring any version pin. Retained for backwards compatibility. Use :func:`parse_skill_ref` to read
lib/crewai/src/crewai/skills/registry.py:95
↓ 8 callers
Method
path_exists
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:29
↓ 8 callers
Method
publish_tool
( self, handle: str, is_public: bool, version: str, description: str |
lib/crewai-core/src/crewai_core/plus_api.py:259
↓ 8 callers
Function
read_toml
Read a TOML file from disk and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:30
↓ 8 callers
Method
recall
Recall relevant memories. Delegates to this flow's memory. Args: query: Natural language query. **kwargs: Passed to m
lib/crewai/src/crewai/flow/runtime/__init__.py:944
↓ 8 callers
Method
request_human_input
Request human input during LLM hook execution. This method pauses live console updates, displays a prompt to the user, waits for thei
lib/crewai/src/crewai/hooks/llm_hooks.py:114
↓ 8 callers
Function
resolve_refs
Recursively resolve all local $refs in the given JSON Schema using $defs as the source. This is needed because Pydantic generates $ref-based sche
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:99
↓ 8 callers
Function
set_platform_integration_token
Set the platform integration token in the current context. Args: integration_token: The integration token to set.
lib/crewai/src/crewai/context.py:30
↓ 8 callers
Function
strip_jsonc_comments
Strip JSONC comments and trailing commas while preserving string values.
lib/crewai/src/crewai/project/json_loader.py:188
↓ 8 callers
Function
strip_unsupported_formats
Remove format annotations that OpenAI strict mode doesn't support. OpenAI only supports: date-time, date, time, duration. Other formats like
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:230
↓ 8 callers
Method
supports_function_calling
Check if the model supports function calling. Note: This method is only used by the litellm fallback path. Native providers override
lib/crewai/src/crewai/llm.py:2409
↓ 8 callers
Method
supports_stop_words
Check if the model supports stop words. Note: This method is only used by the litellm fallback path. Native providers override this m
lib/crewai/src/crewai/llm.py:2429
↓ 8 callers
Function
tool_failure_collector
Collect the failures of one execution, isolated from concurrent ones. An agent may be shared by tasks running concurrently, so accumulating on
lib/crewai/src/crewai/tools/tool_failure.py:266
↓ 8 callers
Method
tools
Get all available agent tools
lib/crewai/src/crewai/tools/agent_tools/agent_tools.py:22
↓ 8 callers
Function
write_temp_file
(content, suffix=".txt", encoding="utf-8")
lib/crewai-tools/tests/rag/test_text_loaders.py:11
↓ 7 callers
Method
__get__
Support instance methods by implementing the descriptor protocol. Args: obj: The instance that the method is accessed through.
lib/crewai/src/crewai/project/wrappers.py:297
↓ 7 callers
Function
_agent
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_inject_date.py:60
↓ 7 callers
Method
_atomic_write_secure_file
Write content to a secure file via tempfile + os.replace.
lib/crewai-core/src/crewai_core/token_manager.py:124
↓ 7 callers
Method
_build_route_catalog
( self, router_config: RouterConfig | None, )
lib/crewai/src/crewai/experimental/conversational_mixin.py:1219
↓ 7 callers
Method
_build_scope_filter
Build a Qdrant Filter for scope prefix matching.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:244
↓ 7 callers
Function
_cache
(tmp_path: Path)
lib/crewai/tests/skills/test_registry.py:59
↓ 7 callers
Method
_call_completions
Call OpenAI Chat Completions API. Falls back to the Responses API when the model turns out not to be served by chat completions, whic
lib/crewai/src/crewai/llms/providers/openai/completion.py:497
↓ 7 callers
Method
_create_file
(self, directory, filename, content="test content")
lib/crewai-tools/tests/rag/test_directory_loader.py:17
↓ 7 callers
Function
_create_skill_dir
Create a skill directory containing a minimal SKILL.md.
lib/crewai/tests/events/test_skill_usage_events.py:23
↓ 7 callers
Function
_dict_tool_use_response
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1366
↓ 7 callers
Method
_effective_api
Which OpenAI API to actually use for this model. Honours an explicit ``api`` setting, but upgrades to ``"responses"`` for models alre
lib/crewai/src/crewai/llms/providers/openai/completion.py:1769
↓ 7 callers
Function
_ensure_litellm
Lazy-load litellm on first use. Returns True if available.
lib/crewai/src/crewai/llm.py:113
↓ 7 callers
Method
_execute_single_native_tool_call
Execute a single native tool call and return metadata/result.
lib/crewai/src/crewai/experimental/agent_executor.py:1913
↓ 7 callers
Function
_extract_summary_tags
Extract content between <summary></summary> tags. Falls back to the full text if no tags are found. Args: text: Text potentially con
lib/crewai/src/crewai/utilities/agent_utils.py:995
↓ 7 callers
Method
_finalize_task_prompt
Apply skill context, tool preparation, and training data to the task prompt. Args: task_prompt: The task prompt after memory and
lib/crewai/src/crewai/agent/core.py:568
↓ 7 callers
Method
_format_messages
(self, messages: str | list[LLMMessage])
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:134
↓ 7 callers
Method
_initialize_backend_and_send_events
Initialize backend batch and send collected events.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:69
↓ 7 callers
Function
_install_client
Install *client* the way a hosted runtime does.
lib/crewai/tests/skills/test_registry.py:74
↓ 7 callers
Function
_is_escape_hatch_enabled
True when ``ALLOW_UNSAFE_PATHS`` is set and ``FORCE_SAFE_PATHS`` is not.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:79
↓ 7 callers
Function
_is_sqlite
Check if a file is a SQLite database by reading its magic bytes.
lib/cli/src/crewai_cli/checkpoint_cli.py:80
↓ 7 callers
Method
_load_from_file
(self, content)
lib/crewai-tools/tests/rag/test_mdx_loader.py:18
↓ 7 callers
Method
_load_from_path
(self, path)
lib/crewai-tools/tests/rag/test_json_loader.py:25
↓ 7 callers
Method
_make_client_kwargs
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:266
↓ 7 callers
Method
_make_executor
Build a CrewAgentExecutor with minimal deps.
lib/crewai/tests/agents/test_agent.py:2726
↓ 7 callers
Method
_make_executor
Create a minimal CrewAgentExecutor with mocked dependencies.
lib/crewai/tests/agents/test_native_tool_calling.py:1120
↓ 7 callers
Method
_merge_tools
Merge new tools into existing tools list, avoiding duplicates.
lib/crewai/src/crewai/crew.py:1720
↓ 7 callers
Function
_parse_checkpoint_json
Parse checkpoint JSON into metadata dict.
lib/cli/src/crewai_cli/checkpoint_cli.py:91
↓ 7 callers
Method
_prompt_input
Show rich panel and prompt for input. Args: crew: The crew instance for context. Returns: User input string
lib/crewai/src/crewai/core/providers/human_input.py:319
↓ 7 callers
Function
_repin_crewai_install
Rewrite ``crewai[extras]==old`` pins in a shell command string. Splits on the known ``crewai[`` prefix and reconstructs the pin with the new
lib/devtools/src/crewai_devtools/cli.py:1390
↓ 7 callers
Function
_resolving
Resolve refs against a temp cwd and cache, with *api* as the registry.
lib/crewai/tests/skills/test_registry.py:82
↓ 7 callers
Method
_run
Execute the search query against the SingleStore database. Args: search_query: The SQL query to execute **kwargs: Add
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:381
↓ 7 callers
Function
_run_sync
Run a coroutine synchronously, handling nested event loops. If called from within a running event loop, runs the coroutine in a separate thre
lib/crewai/src/crewai/utilities/file_store.py:36
↓ 7 callers
Function
_safe_extractall
Path-traversal-safe extraction for Python versions without tar filters. Validates both the member's own path and, for symlink/hardlink members,
lib/cli/src/crewai_cli/skills/main.py:423
↓ 7 callers
Method
_save_documents
Save the documents to the storage. This method should be called after the chunks and embeddings are generated. Raises: V
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:50
↓ 7 callers
Method
_scroll_all
Scroll all points matching a filter from a shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:256
↓ 7 callers
Method
_stringify_result
(result: Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1411
↓ 7 callers
Method
_submit_save
Submit a save operation to the background thread pool. The future is tracked so that ``drain_writes()`` can wait for it. If the pool
lib/crewai/src/crewai/memory/unified_memory.py:297
↓ 7 callers
Function
_tool_use_input
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:184
↓ 7 callers
Function
_tool_use_name
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:180
↓ 7 callers
Function
_tree_record
Build a parent/child tree: crew_start ├── task_start │ ├── agent_start │ └── agent_complete (started=agent_start)
lib/crewai/tests/test_event_record.py:34
↓ 7 callers
Method
_validate_identifier
Validates table and column names to prevent SQL injection. Simple identifiers must start with a letter and contain only letters, digi
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:193
↓ 7 callers
Method
append_agent_result
Record an agent result, optionally making it visible to the user.
lib/crewai/src/crewai/experimental/conversational_mixin.py:713
↓ 7 callers
Function
apply_checkpoint
Handle checkpoint config for a kickoff method. If *from_checkpoint* carries a ``restore_from`` path, builds and returns a restored instance (
lib/crewai/src/crewai/state/checkpoint_config.py:215
↓ 7 callers
Function
build_env_with_all_tool_credentials
Return ``os.environ`` augmented with UV_INDEX_* credentials for every private index referenced under ``[tool.uv.sources]`` in ``pyproject.toml``.
lib/crewai-core/src/crewai_core/tool_credentials.py:35
↓ 7 callers
Function
build_pdf
Return the bytes of a one-page PDF containing *text*.
lib/crewai-tools/tests/rag/test_pdf_loader.py:18
↓ 7 callers
Method
call
( self, messages, tools=None, callbacks=None, avai
lib/crewai/tests/agents/test_lite_agent.py:539
↓ 7 callers
Function
callable_to_string
Serialize a module-level callable as a ``"module.qualname"`` string. Args: fn: The callable to serialize. Returns: The dotte
lib/crewai/src/crewai/types/callback.py:131
↓ 7 callers
Method
checkpoint
(self)
lib/crewai/tests/test_flow_definition.py:982
↓ 7 callers
Method
close
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 7 callers
Function
compute_composite_score
Compute a weighted composite relevance score from semantic, recency, and importance. composite = w_semantic * semantic + w_recency * decay + w_im
lib/crewai/src/crewai/memory/types.py:345
↓ 7 callers
Method
configure
(self, enterprise_url: str)
lib/cli/src/crewai_cli/enterprise/main.py:21
↓ 7 callers
Method
connect
(self, sockaddr: tuple[str, int])
lib/crewai-tools/tests/utilities/test_safe_requests.py:408
↓ 7 callers
Method
create_client
Creates a ChromaDB client from configuration.
lib/crewai/src/crewai/rag/config/optional_imports/protocols.py:18
↓ 7 callers
Method
create_panel
Create a standardized panel with consistent styling.
lib/crewai/src/crewai/events/utils/console_formatter.py:51
↓ 7 callers
Function
create_test_pdf
Create a minimal valid PDF for testing.
lib/crewai-files/tests/processing/test_transformers.py:30
↓ 7 callers
Function
db_storage_path
Return the path for SQLite database / app-data storage. Creates the directory if it does not exist.
lib/crewai-core/src/crewai_core/paths.py:16
↓ 7 callers
Method
deploy
Deploy a crew using either UUID or project name. Args: uuid (Optional[str]): The UUID of the crew to deploy.
lib/cli/src/crewai_cli/deploy/main.py:289
↓ 7 callers
Function
end_execution
End an execution context owned by the current kickoff. Nested kickoffs pass ``None`` and leave the outer uuid in place.
lib/crewai/src/crewai/execution.py:64
↓ 7 callers
Method
evaluate
Evaluate this value as a full CEL expression.
lib/crewai/src/crewai/flow/expressions.py:228
↓ 7 callers
Function
execute
Execute an A2A task using a CrewAI agent. Args: agent: The CrewAI agent to execute the task. context: The A2A request context con
lib/crewai/src/crewai/a2a/utils/task.py:290
↓ 7 callers
Method
fork
Fork a Crew from a checkpoint, creating a new execution branch. Args: config: Checkpoint configuration with ``restore_from`` set.
lib/crewai/src/crewai/crew.py:454
← previous
next →
401–500 of 14,252, ranked by callers