Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,282 in github.com/crewAIInc/crewAI
⨍
Functions
13,282
◇
Types & classes
2,710
↳
Endpoints
764
↓ 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_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:58
↓ 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
_dict_tool_use_response
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1361
↓ 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:1764
↓ 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:1885
↓ 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:942
↓ 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:538
↓ 7 callers
Method
_format_messages
(self, messages: str | list[LLMMessage])
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:134
↓ 7 callers
Function
_install_client
Install *client* the way a hosted runtime does.
lib/crewai/tests/skills/test_registry.py:73
↓ 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:1702
↓ 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:1388
↓ 7 callers
Function
_resolving
Resolve refs against a temp cwd and cache, with *api* as the registry.
lib/crewai/tests/skills/test_registry.py:81
↓ 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:1159
↓ 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
_task_for
(agent: Agent)
lib/crewai/tests/events/test_skill_usage_events.py:42
↓ 7 callers
Function
_tool_use_input
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:183
↓ 7 callers
Function
_tool_use_name
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:179
↓ 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
add
Add a tool result to the cache. Args: tool: Name of the tool. input: Input string used for the tool. outp
lib/crewai/src/crewai/agents/cache/cache_handler.py:23
↓ 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:214
↓ 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
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:920
↓ 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
create_agent_executor
Create an agent executor for the agent. Returns: An instance of the CrewAgentExecutor class.
lib/crewai/src/crewai/agent/core.py:1077
↓ 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:50
↓ 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:288
↓ 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
finalize_session_traces
Emit a final ``FlowFinishedEvent`` and finalize the trace batch. Pairs with ``flow.defer_trace_finalization = True`` (or ``Conversati
lib/crewai/src/crewai/experimental/conversational_mixin.py:1197
↓ 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:442
↓ 7 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:226
↓ 7 callers
Method
get_async_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:108
↓ 7 callers
Method
get_required_fields
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:37
↓ 7 callers
Method
get_sync_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:113
↓ 7 callers
Method
get_token
Return the access token if valid and not expired, else None.
lib/crewai-core/src/crewai_core/token_manager.py:65
↓ 7 callers
Function
get_uploader
Get Gemini file uploader.
lib/crewai-files/src/crewai_files/uploaders/factory.py:89
↓ 7 callers
Function
handle_context_length
Handle context length exceeded by either summarizing or raising an error. Args: respect_context_window: Whether to respect context window
lib/crewai/src/crewai/utilities/agent_utils.py:787
↓ 7 callers
Function
import_and_validate_definition
Pydantic-compatible function to import a class/function from a string path. Args: v: Import path string in the format 'module.path.ClassN
lib/crewai/src/crewai/utilities/import_utils.py:87
↓ 7 callers
Method
is_batch_initialized
Check if batch is initialized
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:484
↓ 7 callers
Function
is_newer_version_available
Return ``(is_newer, current_version, latest_version)``.
lib/crewai-core/src/crewai_core/version.py:184
↓ 7 callers
Method
list_records
List records in a scope, newest first. Args: scope: Optional scope path prefix to filter by. If None and root_scope
lib/crewai/src/crewai/memory/unified_memory.py:936
↓ 7 callers
Method
load
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/json_loader.py:10
↓ 7 callers
Method
load_pending_feedback
Load state and pending feedback context. Args: flow_uuid: Unique identifier for the flow instance Returns: T
lib/crewai/src/crewai/flow/persistence/sqlite.py:246
↓ 7 callers
Function
load_skill
Load one skill input into Skill objects. Accepts a pre-loaded Skill object, skill search path, inline SKILL.md string, or '@org/name' registr
lib/crewai/src/crewai/skills/loader.py:148
↓ 7 callers
Method
load_state
Load the most recent state for a given flow UUID. Args: flow_uuid: Unique identifier for the flow instance Returns:
lib/crewai/src/crewai/flow/persistence/sqlite.py:178
↓ 7 callers
Method
mark_running
Mark a todo as running by step number.
lib/crewai/src/crewai/utilities/planning_types.py:90
↓ 7 callers
Function
memoize
Memoize a method by caching its results based on arguments. Handles both sync and async methods. Pydantic BaseModel instances are converted t
lib/crewai/src/crewai/project/utils.py:38
↓ 7 callers
Function
parse_inputs_json
Parse a ``--inputs`` JSON object, exiting with a pointed error if invalid.
lib/cli/src/crewai_cli/input_prompt.py:24
↓ 7 callers
Function
read_toml
Read a TOML file from disk and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:24
↓ 7 callers
Method
register_handler
Register an event handler for a specific event type. Args: event_type: The event class to listen for handler: The han
lib/crewai/src/crewai/events/event_bus.py:797
↓ 7 callers
Function
render_text_description_and_args
Render the tool name, description, and args in plain text. search: This tool is used for search, args: {"query": {"type": "string"}} calculat
lib/crewai/src/crewai/utilities/agent_utils.py:203
↓ 7 callers
Method
run
( self, crew: Crew | None = None, agents: list[Agent] | list[BaseAgent] | None = None,
lib/crewai/src/crewai/experimental/evaluation/experiment/runner.py:32
↓ 7 callers
Method
run
(self)
lib/crewai/tests/test_stream_frames.py:288
↓ 7 callers
Method
save_tokens
Save the access token and its expiration time. Args: access_token: The access token to save. expires_at: The UNIX tim
lib/crewai-core/src/crewai_core/token_manager.py:50
↓ 7 callers
Method
search
( self, query_embedding: list[float], scope_prefix: str | None = None, categor
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:371
↓ 7 callers
Function
set_triggering_event_id
Set the ID of the triggering event for causal chain tracking. Args: event_id: The event_id that triggered the current execution, or None.
lib/crewai/src/crewai/events/event_context.py:109
↓ 7 callers
Method
setup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_webpage_loader.py:10
↓ 7 callers
Method
setup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_xml_loader.py:10
↓ 7 callers
Method
setup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_webpage_loader.py:18
↓ 7 callers
Method
setup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_xml_loader.py:18
↓ 7 callers
Method
shutdown
Gracefully shutdown the event loop and wait for all tasks to finish. Args: wait: If True, wait for all pending tasks to complete
lib/crewai/src/crewai/events/event_bus.py:897
↓ 7 callers
Function
store_files
Store files for a crew execution. Args: execution_id: Unique identifier for the crew execution. files: Dictionary mapping names t
lib/crewai/src/crewai/utilities/file_store.py:178
↓ 7 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:158
↓ 7 callers
Function
unregister_after_tool_call_hook
Unregister a specific global after_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fou
lib/crewai/src/crewai/hooks/tool_hooks.py:323
↓ 7 callers
Function
unregister_before_tool_call_hook
Unregister a specific global before_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fo
lib/crewai/src/crewai/hooks/tool_hooks.py:297
↓ 7 callers
Function
update_pyproject_version
Update the [project] version field in a pyproject.toml file. Args: file_path: Path to pyproject.toml file. new_version: New versi
lib/devtools/src/crewai_devtools/cli.py:304
↓ 7 callers
Function
validate_crew_project
Validate JSON crew structure without kicking off the crew.
lib/crewai/src/crewai/project/json_loader.py:277
↓ 7 callers
Function
validate_import_path
Import and return the class/function from the import path. Args: v: Import path string in the format 'module.path.ClassName'. Return
lib/crewai/src/crewai/utilities/import_utils.py:51
↓ 6 callers
Function
CrewaiPlatformTools
Factory function that returns crewai platform tools. Args: apps: List of platform apps to get tools that are available on the platform.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tools.py:14
↓ 6 callers
Function
_agent_with_skills
(search_path: Path)
lib/crewai/tests/events/test_skill_usage_events.py:31
↓ 6 callers
Function
_attach_flow_definition
( flow_class: type[Flow], methods: dict[str, dict[str, object]] )
lib/crewai/tests/test_flow_visualization.py:80
↓ 6 callers
Function
_augment_prompt_with_a2a
Add A2A delegation instructions to prompt. Args: a2a_agents: Dictionary of A2A agent configurations task_description: Original ta
lib/crewai/src/crewai/a2a/wrapper.py:639
↓ 6 callers
Method
_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:48
↓ 6 callers
Method
_build_upload_result
Build an UploadResult for a completed upload. Args: file_id: The uploaded file ID. content_type: The file's content t
lib/crewai-files/src/crewai_files/uploaders/openai.py:146
↓ 6 callers
Method
_clear_streams
Clear the read and write streams.
lib/crewai/src/crewai/mcp/transports/base.py:111
↓ 6 callers
Method
_create_manager_agent
(self)
lib/crewai/src/crewai/crew.py:1500
↓ 6 callers
Function
_create_skill_dir
Create a skill directory containing a minimal SKILL.md.
lib/crewai/tests/events/test_skill_usage_events.py:21
↓ 6 callers
Function
_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_integration.py:18
← previous
next →
401–500 of 13,282, ranked by callers