Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,496 in github.com/crewAIInc/crewAI
⨍
Functions
13,496
◇
Types & classes
2,774
↳
Endpoints
764
↓ 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
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
all_of
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:50
↓ 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
Method
append_agent_result
Record an agent result, optionally making it visible to the user.
lib/crewai/src/crewai/experimental/conversational_mixin.py:606
↓ 3 callers
Function
append_message
Append a message to ``state.messages`` or the flow fallback buffer.
lib/crewai/src/crewai/flow/conversation.py:116
↓ 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:1926
↓ 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:181
↓ 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:138
↓ 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
Method
assert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/cli/tests/test_plus_api.py:33
↓ 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
bind
Rebind the runtime ``Memory`` dependency after restore. Required after deserializing from a checkpoint, since the live ``Memory`` can
lib/crewai/src/crewai/memory/memory_scope.py:68
↓ 3 callers
Function
build
(tf: tarfile.TarFile)
lib/crewai/tests/skills/test_cache.py:199
↓ 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
Function
build_simple_crew
(tool)
lib/crewai/tests/tools/test_structured_tool.py:328
↓ 3 callers
Function
build_text_tool_calling_fallback_message
Build instructions for downgrading native tools to text tool calls.
lib/crewai/src/crewai/utilities/agent_utils.py:1446
↓ 3 callers
Method
calculate_usage_metrics
Calculates and returns the usage metrics.
lib/crewai/src/crewai/crew.py:2191
↓ 3 callers
Method
call
Call Azure AI Inference API. Args: messages: Input messages tools: List of tool/function definitions call
lib/crewai/src/crewai/llms/providers/azure/completion.py:471
↓ 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:26
↓ 3 callers
Method
call
()
lib/crewai/tests/utilities/test_agent_utils.py:1305
↓ 3 callers
Method
call_llm_and_parse
Execute LLM call with hooks and parse the response. Returns routing decision based on parsing result.
lib/crewai/src/crewai/experimental/agent_executor.py:1413
↓ 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:102
↓ 3 callers
Method
callback
(self, step)
lib/crewai/tests/agents/test_agent.py:672
↓ 3 callers
Method
chat
(self)
lib/crewai/tests/test_flow_ask.py:289
↓ 3 callers
Method
check_output
Check if an output type is set.
lib/crewai/src/crewai/task.py:562
↓ 3 callers
Method
chunk
Chunk the input text into smaller pieces. Args: text: The text to chunk. Returns: A list of text chunks.
lib/crewai-tools/src/crewai_tools/rag/chunkers/base_chunker.py:179
↓ 3 callers
Method
classify_intent
Map user text to one of the given outcomes using an LLM.
lib/crewai/src/crewai/experimental/conversational_mixin.py:751
↓ 3 callers
Function
clear_all
Clear all global hooks across every interception point.
lib/crewai/src/crewai/hooks/dispatch.py:142
↓ 3 callers
Method
close
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1913
↓ 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
copy_template
Copy a file from src to dst.
lib/cli/src/crewai_cli/utils.py:72
↓ 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
Method
create_crew
Create a new crew deployment. Args: confirm (bool): Whether to skip the interactive confirmation prompt. ski
lib/cli/src/crewai_cli/deploy/main.py:340
↓ 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_skill_loader_tool
Create a loader tool when metadata-only skills are available. Args: skills: Skills configured on the agent. source: Event source
lib/crewai/src/crewai/skills/tool.py:89
↓ 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
Method
crew_by_name
( self, project_name: str, log_type: str = "deployment" )
lib/crewai-core/src/crewai_core/plus_api.py:325
↓ 3 callers
Method
crew_by_uuid
(self, uuid: str, log_type: str = "deployment")
lib/crewai-core/src/crewai_core/plus_api.py:332
↓ 3 callers
Method
current
(self)
lib/cli/src/crewai_cli/organization/main.py:90
↓ 3 callers
Method
delete
( self, scope_prefix: str | None = None, categories: list[str] | None = None,
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:411
↓ 3 callers
Method
delete_crew_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:337
↓ 3 callers
Method
delete_crew_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:342
↓ 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
Method
deploy_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:309
↓ 3 callers
Method
deploy_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:314
↓ 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
done
(self)
lib/crewai/tests/test_flow.py:316
↓ 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:272
↓ 3 callers
Function
embed_texts
Embed multiple texts in a single API call. The embedder already accepts ``list[str]``, so this just calls it once with the full batch and nor
lib/crewai/src/crewai/memory/types.py:312
↓ 3 callers
Function
enable_agent_streaming
Enable streaming on all agents that have an LLM configured. Args: agents: Iterable of agents to enable streaming on.
lib/crewai/src/crewai/crews/utils.py:46
↓ 3 callers
Function
enable_prompt_line_editing
Enable cursor movement/history editing for Click text prompts when available.
lib/cli/src/crewai_cli/utils.py:59
↓ 3 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:27
↓ 3 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:310
↓ 3 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/semantic_quality_metrics.py:25
↓ 3 callers
Method
evaluate_training_data
Evaluate the training data based on the llm output, human feedback, and improved output. Args: - training_data: The trai
lib/crewai/src/crewai/utilities/evaluators/task_evaluator.py:115
↓ 3 callers
Method
execute_async
Execute the task asynchronously.
lib/crewai/src/crewai/task.py:609
↓ 3 callers
Method
execute_native_tool
Execute native tool calls in a batch. Processes all tools from pending_tool_calls, executes them, and appends results to the conversa
lib/crewai/src/crewai/experimental/agent_executor.py:1693
↓ 3 callers
Method
extract
(self, options: Any)
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:291
↓ 3 callers
Method
extract_all_states
Extract conversation states from all registered extensions. Args: conversation_history: The sequence of A2A messages exchanged.
lib/crewai/src/crewai/a2a/extensions/base.py:195
↓ 3 callers
Function
extract_common_params
Extract common parameters from handler kwargs. Args: kwargs: Handler kwargs dict. Returns: CommonParams with extracted value
lib/crewai/src/crewai/a2a/updates/base.py:152
↓ 3 callers
Method
extract_id
Extract the checkpoint ID from a file path. The filename format is ``{ts}_{uuid8}_p-{parent}.json``. The checkpoint ID is the ``{ts}_
lib/crewai/src/crewai/state/provider/json_provider.py:113
↓ 3 callers
Method
extract_memories
Extract discrete memories from a raw content blob using the LLM. This is a pure helper -- it does NOT store anything. Call remember()
lib/crewai/src/crewai/memory/unified_memory.py:667
↓ 3 callers
Method
filter_by_names
(self, names: list[str] | None = None)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:63
↓ 3 callers
Function
find_version_files
Find all __init__.py files that contain __version__. Args: base_path: Base directory to search in. Returns: List of paths to
lib/devtools/src/crewai_devtools/cli.py:677
↓ 3 callers
Method
fitToAvailableSpace
(centerScreen = false)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:2404
↓ 3 callers
Function
flow_template_expression_description
(prefix: str)
lib/crewai/src/crewai/flow/expressions.py:115
↓ 3 callers
Method
flush_to_central
Sync local shard records to the central shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:773
↓ 3 callers
Function
format_inline_value
(value: Any)
lib/crewai/src/crewai/flow/skill.py:538
↓ 3 callers
Function
format_native_tool_output_for_agent
Format native tool output when a tool explicitly defines a formatter.
lib/crewai/src/crewai/utilities/agent_utils.py:1541
↓ 3 callers
Method
from_content
(content: str | Path | None = None)
lib/crewai-tools/src/crewai_tools/rag/data_types.py:100
↓ 3 callers
Method
from_settings
Build an ``Oauth2Settings`` instance from the persisted CrewAI settings.
lib/crewai-core/src/crewai_core/auth/oauth2.py:45
↓ 3 callers
Method
from_tool_pack
Create multiple MergeAgentHandlerTool instances from a Tool Pack. Args: tool_pack_id: UUID of the Tool Pack
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:267
↓ 3 callers
Function
generate_input_description_with_ai
Generate an input description using AI based on the context of the crew. Args: input_name: The name of the input placeholder. cre
lib/crewai/src/crewai/utilities/crew_chat.py:407
↓ 3 callers
Function
get_crewai_project_config
Return the normalized ``[tool.crewai]`` table from pyproject data.
lib/crewai-core/src/crewai_core/project.py:37
↓ 3 callers
Function
get_enclosing_parent_id
Get the parent of the current scope (stack[-2]).
lib/crewai/src/crewai/events/event_context.py:68
↓ 3 callers
Function
get_enterprise_api_base_url
Get the enterprise API base URL from environment or use default.
lib/crewai-tools/src/crewai_tools/adapters/enterprise_adapter.py:12
↓ 3 callers
Method
get_file_info
Get information about an uploaded file. Args: file_id: The file identifier. Returns: Dictionary with file in
lib/crewai-files/src/crewai_files/uploaders/base.py:101
↓ 3 callers
Function
get_files
Retrieve files for a crew execution. Args: execution_id: Unique identifier for the crew execution. Returns: Dictionary of fi
lib/crewai/src/crewai/utilities/file_store.py:193
↓ 3 callers
Method
get_last_raw_result
(self, fallback: Any)
lib/crewai/src/crewai/tools/tool_usage.py:143
↓ 3 callers
Method
get_loader
(self)
lib/crewai-tools/src/crewai_tools/rag/data_types.py:64
↓ 3 callers
Function
get_packages
Get all packages from lib/ directory. Args: lib_dir: Path to lib/ directory. Returns: List of package directory paths.
lib/devtools/src/crewai_devtools/cli.py:693
↓ 3 callers
Function
get_platform_integration_token
Get the platform API base URL from environment or use default.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/misc.py:10
↓ 3 callers
Method
goto
(self, url: str)
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:288
↓ 3 callers
Function
handle_agent_action_core
Core logic for handling agent actions and tool results. Args: formatted_answer: The agent's action tool_result: The result of exe
lib/crewai/src/crewai/utilities/agent_utils.py:672
↓ 3 callers
Method
handle_agent_reasoning
Public method for the planning process that creates and refines a plan for the task until the agent is ready to execute it. Returns:
lib/crewai/src/crewai/utilities/reasoning_handler.py:187
↓ 3 callers
Method
handle_flow_status
Show flow status panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:350
↓ 3 callers
Method
handle_lite_agent_execution
Handle lite agent execution events with panel display.
lib/crewai/src/crewai/events/utils/console_formatter.py:814
← previous
next →
1,101–1,200 of 13,496, ranked by callers