Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,264 in github.com/crewAIInc/crewAI
⨍
Functions
19,264
◇
Types & classes
3,413
↳
Endpoints
990
Method
add
Add content to the knowledge base. Args: *args: Content items to add (strings, paths, or document dicts) **kwargs: Ad
lib/crewai-tools/src/crewai_tools/adapters/crewai_rag_adapter.py:115
Method
add
Add Excel file content to the knowledge source, chunk it, compute embeddings, and save the embeddings.
lib/crewai/src/crewai/knowledge/source/excel_knowledge_source.py:145
Method
add
Add string content to the knowledge source, chunk it, compute embeddings, and save them.
lib/crewai/src/crewai/knowledge/source/string_knowledge_source.py:24
Method
add
Add CSV file content to the knowledge source, chunk it, compute embeddings, and save the embeddings.
lib/crewai/src/crewai/knowledge/source/csv_knowledge_source.py:25
Method
add
Add text file content to the knowledge source, chunk it, compute embeddings, and save the embeddings.
lib/crewai/src/crewai/knowledge/source/text_file_knowledge_source.py:21
Method
add
Add PDF file content to the knowledge source, chunk it, compute embeddings, and save the embeddings.
lib/crewai/src/crewai/knowledge/source/pdf_knowledge_source.py:41
Method
add
Process content, chunk it, compute embeddings, and save them.
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:36
Method
add
Add JSON file content to the knowledge source, chunk it, compute embeddings, and save the embeddings.
lib/crewai/src/crewai/knowledge/source/json_knowledge_source.py:37
Function
add_const_to_oneof_variants
Add const fields to oneOf variants for discriminated unions. The json_schema_to_pydantic library requires each oneOf variant to have a const
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:327
Method
add_documents
Add documents with their embeddings to a collection. This method performs an upsert operation - if a document with the same ID alread
lib/crewai/src/crewai/rag/core/base_client.py:181
Method
add_documents
Add documents with their embeddings to a collection. Performs an upsert operation - documents with existing IDs are updated. Generate
lib/crewai/src/crewai/rag/chromadb/client.py:309
Function
add_key_in_dict_recursively
Recursively adds a key/value pair to all nested dicts matching `criteria`. Args: d: The dictionary to modify. key: The key to add
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:145
Method
add_message_hook
(context)
lib/crewai/tests/hooks/test_llm_hooks.py:123
Function
add_numbers
Add two numbers together and return the sum.
lib/crewai/tests/llms/bedrock/test_bedrock.py:1226
Function
add_numbers
Add two numbers together and return the sum.
lib/crewai/tests/llms/azure/test_azure.py:1342
Function
add_numbers
Add two numbers together and return the sum.
lib/crewai/tests/llms/anthropic/test_anthropic.py:1132
Function
add_numbers
Add two numbers together and return the sum.
lib/crewai/tests/llms/google/test_google.py:1189
Function
add_numbers
Add two numbers together and return the sum.
lib/crewai/tests/llms/openai/test_openai.py:1917
Method
add_texts
Add texts, create embeddings, and add to the Collection and index. Important notes on ids: - If _id or id is a key in the metadat
lib/crewai-tools/src/crewai_tools/tools/mongodb_vector_search_tool/vector_search.py:168
Method
adelete
Async delete an uploaded file from Gemini. Args: file_id: The file name/ID to delete. Returns: True if delet
lib/crewai-files/src/crewai_files/uploaders/gemini.py:308
Method
adelete
Async delete an uploaded file from OpenAI. Args: file_id: The file ID to delete. Returns: True if deletion w
lib/crewai-files/src/crewai_files/uploaders/openai.py:679
Method
adelete
Async delete an uploaded file from Anthropic. Args: file_id: The file ID to delete. Returns: True if deletio
lib/crewai-files/src/crewai_files/uploaders/anthropic.py:226
Method
adelete
(self, file_id: str)
lib/crewai-files/tests/test_acleanup_listing_nonblocking.py:18
Method
adelete
( self, scope_prefix: str | None = None, categories: list[str] | None = None,
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:689
Method
adelete
Delete memories asynchronously.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:898
Method
adelete_collection
Delete a collection and all its data asynchronously. Keyword Args: collection_name: The name of the collection to delete.
lib/crewai/src/crewai/rag/core/base_client.py:388
Method
adelete_collection
Delete a collection and all its data asynchronously. Permanently removes a collection and all documents, embeddings, and metadata it contains
lib/crewai/src/crewai/rag/chromadb/client.py:566
Method
aexecute_task
Execute a task asynchronously.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:688
Method
aexecute_task
( self, task: Any, context: str | None = None, tools: list[Any] | None = None,
lib/crewai/tests/agents/agent_adapters/test_base_agent_adapter.py:57
Function
aexecute_task_with_a2a
Execute task with A2A delegation support (async).
lib/crewai/src/crewai/a2a/wrapper.py:143
Function
aexecute_tool_and_check_finality
Execute a tool asynchronously and check if the result should be a final answer. This is the async version of execute_tool_and_check_finality. It
lib/crewai/src/crewai/utilities/tool_utils.py:35
Method
aextract_memories
Async variant of extract_memories.
lib/crewai/src/crewai/memory/unified_memory.py:1050
Method
afrom_checkpoint
Read a snapshot asynchronously. Args: location: The identifier returned by a previous ``acheckpoint`` call. Returns:
lib/crewai/src/crewai/state/provider/core.py:102
Method
afrom_checkpoint
Read a checkpoint from the SQLite database asynchronously. Args: location: A location string returned by ``acheckpoint()``.
lib/crewai/src/crewai/state/provider/sqlite_provider.py:147
Method
after
(ctx)
lib/crewai/tests/hooks/test_dispatch.py:103
Method
after_both
(self, result)
lib/crewai/tests/events/test_event_ordering.py:1152
Method
after_callback
(result: CrewOutput)
lib/crewai/tests/crew/test_async_crew.py:196
Method
after_each
(self)
lib/crewai/tests/test_flow_from_definition.py:182
Method
after_either
(self, result)
lib/crewai/tests/events/test_event_ordering.py:862
Method
after_feedback
(self, _feedback)
lib/crewai/tests/utilities/test_events.py:793
Method
after_feedback
(self, _feedback)
lib/crewai/tests/utilities/test_events.py:844
Function
after_handler
(source: object, event: BaseEvent)
lib/crewai/tests/utilities/events/test_async_event_bus.py:222
Function
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/tools/test_tool_usage.py:211
Method
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/utilities/test_agent_utils.py:1021
Method
after_hook
Log and verify after hook execution.
lib/crewai/tests/hooks/test_llm_hooks.py:557
Method
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/hooks/test_tool_hooks.py:672
Method
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/agents/test_native_tool_calling.py:340
Method
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/agents/test_native_tool_calling.py:1268
Function
after_kickoff
Marks a method to execute after crew kickoff. Args: meth: The method to mark. Returns: A wrapped method marked for after kic
lib/crewai/src/crewai/project/annotations.py:54
Function
after_llm_call
( func: Callable[[LLMCallHookContext], str | None], )
lib/crewai/src/crewai/hooks/decorators.py:138
Method
after_llm_call_hook
Log and verify after hook execution.
lib/crewai/tests/hooks/test_llm_hooks.py:467
Method
after_llm_call_hooks
Get the after_llm_call hooks for this agent.
lib/crewai/src/crewai/lite_agent.py:485
Function
after_llm_call_reducer
Legacy calling convention for ``post_model_call`` hooks. A non-empty string return replaces the response on the context.
lib/crewai/src/crewai/hooks/llm_hooks.py:218
Method
after_none
(self, result)
lib/crewai/tests/events/test_event_ordering.py:1344
Method
after_parallel_execution
Check for more todos after parallel execution completes. Also checks if replanning is needed based on execution results.
lib/crewai/src/crewai/agents/agent_executor.py:1586
Function
after_tool_call
( func: Callable[[ToolCallHookContext], str | None], )
lib/crewai/src/crewai/hooks/decorators.py:253
Method
after_tool_call_hook
Log and verify after hook execution.
lib/crewai/tests/hooks/test_tool_hooks.py:532
Function
after_tool_call_reducer
Legacy calling convention for ``post_tool_call`` hooks. A non-None return replaces the tool result on the context.
lib/crewai/src/crewai/hooks/tool_hooks.py:153
Function
agent
Marks a method as a crew agent. Args: meth: The method to mark. Returns: A wrapped method marked as an agent with memoizatio
lib/crewai/src/crewai/project/annotations.py:78
Function
agent
()
lib/crewai/tests/mcp/test_tool_resolver_native.py:13
Function
agent
()
lib/crewai/tests/mcp/test_amp_mcp.py:13
Method
agent
(self)
lib/crewai/tests/mcp/test_amp_mcp.py:473
Function
agent_callback
(_)
lib/crewai/tests/test_crew.py:1602
Function
agent_card
Fetch the real agent card from the server.
lib/crewai/tests/a2a/test_a2a_integration.py:38
Function
agent_project
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
lib/cli/tests/test_create_agent.py:19
Function
agents_md_eval
Fail when this branch's AGENTS.md teaches coding agents less than BASE's.
lib/devtools/src/crewai_devtools/agents_md_eval.py:350
Method
aget_or_create_collection
Get an existing collection or create it if it doesn't exist asynchronously. Keyword Args: collection_name: The name of the collec
lib/crewai/src/crewai/rag/core/base_client.py:163
Method
aget_or_create_collection
Get an existing collection or create it if it doesn't exist asynchronously. Returns existing collection if found, otherwise creates a new one
lib/crewai/src/crewai/rag/chromadb/client.py:256
Method
akickoff
Async version of kickoff. Alias for kickoff_async. Args: messages: Either a string query or a list of message dictionaries.
lib/crewai/src/crewai/lite_agent.py:827
Method
akickoff
Native async method to start the flow execution. Alias for kickoff_async. Args: inputs: Optional dictionary containing input valu
lib/crewai/src/crewai/flow/runtime/__init__.py:2771
Method
akickoff
Async version of kickoff. Alias for kickoff_async. Args: messages: Either a string query or a list of message dictionaries.
lib/crewai/src/crewai/agent/core.py:2429
Method
allow_hook
(context)
lib/crewai/tests/hooks/test_tool_hooks.py:177
Function
allow_tmp_paths
Allow absolute paths outside CWD (e.g. /tmp/) for these search-tool tests. Path validation is tested separately in test_rag_tool_path_validation.
lib/crewai-tools/tests/tools/test_search_tools.py:27
Function
allow_tmp_paths
Allow absolute paths outside CWD (e.g. /tmp/) for these data-type tests. Path validation is tested separately in test_rag_tool_path_validation.py
lib/crewai-tools/tests/tools/rag/test_rag_tool_add_data_type.py:14
Function
allow_tmp_paths
Allow absolute paths outside CWD (e.g. /tmp/) for these RagTool tests. Path validation is tested separately in test_rag_tool_path_validation.py.
lib/crewai-tools/tests/tools/rag/rag_tool_test.py:13
Method
alpha_crew
(self)
lib/crewai/tests/events/test_event_ordering.py:492
Method
alternate_entry_point
(self)
lib/crewai/tests/test_flow_definition.py:664
Method
always_fail
(params, **kwargs)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:249
Method
always_fail
(params, **kwargs)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:328
Method
always_fail
(params, **kwargs)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:594
Function
always_skip
(_: TaskOutput)
lib/crewai/tests/test_crew.py:1301
Function
amp
()
lib/crewai-core/tests/test_plus_api_proxy.py:96
Function
an_openai_error
()
lib/cli/tests/test_run_usage.py:629
Method
analyst
(self)
lib/crewai/tests/hooks/test_crew_scoped_hooks.py:140
Method
analyze_audio
(self)
lib/crewai/tests/test_flow_multimodal.py:247
Method
analyze_files
(self)
lib/crewai/tests/test_flow_multimodal.py:310
Function
analyze_for_consolidation
Decide insert/update/delete for a single memory against similar existing records. Uses the small ``ConsolidationPlan`` schema (3 fields) for fast
lib/crewai/src/crewai/memory/analyze.py:333
Method
analyze_image
(self)
lib/crewai/tests/test_flow_multimodal.py:106
Method
analyze_image
(self)
lib/crewai/tests/test_flow_multimodal.py:148
Method
analyze_image
(self)
lib/crewai/tests/test_flow_multimodal.py:190
Method
analyze_image
(self)
lib/crewai/tests/test_flow_multimodal.py:336
Method
analyze_pdf
(self)
lib/crewai/tests/test_flow_multimodal.py:167
Method
analyze_query_step
Analyze the query, embed distilled sub-queries, extract filters. Short queries (below ``query_analysis_threshold`` characters) skip t
lib/crewai/src/crewai/memory/recall_flow.py:185
Method
analyze_text
(self)
lib/crewai/tests/test_flow_multimodal.py:209
Method
analyze_video
(self)
lib/crewai/tests/test_flow_multimodal.py:228
Method
anemia_analysis
(self)
lib/crewai/tests/test_flow.py:1152
Method
anemia_router
(self)
lib/crewai/tests/test_flow.py:1145
Method
animate
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:151
Method
animate
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:598
Method
animate
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1006
← previous
next →
6,701–6,800 of 19,264, ranked by callers