Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
15,572 in github.com/crewAIInc/crewAI
⨍
Functions
15,572
◇
Types & classes
3,052
↳
Endpoints
859
↓ 1,107 callers
Method
append
Append new training data for a specific agent and iteration. Args: train_iteration: The training iteration number. ag
lib/crewai/src/crewai/utilities/training_handler.py:19
↓ 796 callers
Method
get
Retrieve an auth scheme by key.
lib/crewai/src/crewai/a2a/auth/utils.py:52
↓ 732 callers
Method
kickoff
Execute the crew's workflow. Args: inputs: Optional input dictionary for task interpolation. input_files: Optional di
lib/crewai/src/crewai/crew.py:995
↓ 430 callers
Method
join
(self)
lib/crewai/tests/test_flow_from_definition.py:225
↓ 211 callers
Method
emit
Emit an event to all registered handlers. If handlers have dependencies (registered with depends_on), they execute in dependency orde
lib/crewai/src/crewai/events/event_bus.py:572
↓ 180 callers
Method
from_declaration
Build a runnable declarative flow from contents or a file path.
lib/crewai/src/crewai/flow/runtime/__init__.py:545
↓ 154 callers
Method
run
Executes the tool synchronously. Args: *args: Positional arguments for the tool. **kwargs: Keyword arguments for the
lib/crewai/src/crewai/tools/base_tool.py:532
↓ 143 callers
Method
scoped_handlers
Context manager for temporary event handling scope. Useful for testing or temporary event handling. All handlers registered within th
lib/crewai/src/crewai/events/event_bus.py:832
↓ 142 callers
Method
invoke
Main method for tool execution.
lib/crewai/src/crewai/tools/structured_tool.py:424
↓ 137 callers
Method
call
High-level LLM call method. Args: messages: Input messages for the LLM. Can be a string or list of message d
lib/crewai/src/crewai/llm.py:1846
↓ 136 callers
Method
set
Store an auth scheme.
lib/crewai/src/crewai/a2a/auth/utils.py:47
↓ 128 callers
Method
get
(self, url: str | bytes, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:64
↓ 116 callers
Method
print
Print to console. Simplified to only handle panel-based output.
lib/crewai/src/crewai/events/utils/console_formatter.py:184
↓ 114 callers
Method
update
Update an existing memory record by ID. Args: record_id: ID of the record to update. content: New content; re-embedde
lib/crewai/src/crewai/memory/unified_memory.py:857
↓ 108 callers
Method
_run
(self, url: str)
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:269
↓ 107 callers
Method
pop
(self, index: int = -1)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:57
↓ 106 callers
Method
extend
(self, tools: list[T])
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:44
↓ 104 callers
Method
read_text
Read the file content as string.
lib/crewai-files/src/crewai_files/core/types.py:214
↓ 103 callers
Method
append
(self, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:40
↓ 103 callers
Method
flush
(self, timeout_millis=30000)
lib/crewai/tests/telemetry/test_enterprise_session_compatibility.py:44
↓ 95 callers
Method
print
Print ``content`` with optional color, honoring suppression context.
lib/crewai-core/src/crewai_core/printer.py:78
↓ 79 callers
Method
kickoff
Execute the agent with the given messages using the AgentExecutor. This method provides standalone agent execution without requiring a Crew.
lib/crewai/src/crewai/agent/core.py:1676
↓ 77 callers
Method
wait
(self, *, timeout)
lib/cli/tests/test_trace_consent_session.py:76
↓ 75 callers
Method
add
( # type: ignore[override] self, content: str | Path, data_type: str | DataType | Non
lib/crewai-tools/src/crewai_tools/rag/core.py:80
↓ 75 callers
Method
keys
Return keys for dict unpacking.
lib/crewai-files/src/crewai_files/core/types.py:226
↓ 73 callers
Method
info
Return scope info for path. Args: path: Scope path to get info for. If None and root_scope is set, defaults to ro
lib/crewai/src/crewai/memory/unified_memory.py:964
↓ 72 callers
Method
emit_log
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/telemetry/tracing/session.py:160
↓ 69 callers
Method
handle_turn
Append a user message, run one conversational turn, and return output. Available only when ``conversational = True`` is set on the subclass
lib/crewai/src/crewai/flow/conversational_mixin.py:429
↓ 67 callers
Method
echo
(self)
lib/crewai/tests/test_flow_conversation.py:1553
↓ 65 callers
Method
_handle_action_event
Generic handler for action events (LLM calls, tool usage). Args: event_type: Type of the event. source: Source object
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:962
↓ 63 callers
Method
json
(self)
lib/crewai/src/crewai/crews/crew_output.py:60
↓ 61 callers
Method
get
Sync wrapper for aget.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:415
↓ 60 callers
Function
create_model_from_schema
Create a Pydantic model from a JSON schema. This function takes a JSON schema as input and dynamically creates a Pydantic model class based o
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:811
↓ 59 callers
Function
_make_tool
Return a NL2SQLTool wired to an in-memory SQLite DB. Schema-introspection is patched out so we can create the tool without a real PostgreSQL
lib/crewai-tools/tests/tools/test_nl2sql_security.py:23
↓ 59 callers
Method
print_panel
Print a panel with consistent formatting if verbose is enabled.
lib/crewai/src/crewai/events/utils/console_formatter.py:209
↓ 59 callers
Function
sanitize_tool_name
Sanitize tool name for LLM provider compatibility. Normalizes Unicode, splits camelCase, lowercases, replaces invalid characters with undersc
lib/crewai/src/crewai/utilities/string_utils.py:26
↓ 58 callers
Method
run
(self)
lib/crewai/tests/telemetry/test_trace_lifecycle.py:235
↓ 56 callers
Method
acall
Async high-level LLM call method. Args: messages: Input messages for the LLM. Can be a string or list of mes
lib/crewai/src/crewai/llm.py:1988
↓ 56 callers
Method
akickoff
Native async kickoff method using async task execution throughout. Unlike kickoff_async which wraps sync kickoff in a thread, this method
lib/crewai/src/crewai/crew.py:1215
↓ 55 callers
Method
flow_definition
Return the static Flow Definition built from this Flow class.
lib/crewai/src/crewai/flow/runtime/__init__.py:536
↓ 54 callers
Method
add
Add an event to the record and wire its edges. Args: event: The event to insert. Returns: The created node.
lib/crewai/src/crewai/state/event_record.py:110
↓ 52 callers
Method
load
(self, content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/base_loader.py:24
↓ 51 callers
Method
clear
Remove all nodes from the record under the write lock.
lib/crewai/src/crewai/state/event_record.py:214
↓ 51 callers
Method
open
(nodeName, metadata)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1410
↓ 51 callers
Method
read
Read the file content as bytes.
lib/crewai-files/src/crewai_files/core/types.py:199
↓ 49 callers
Method
count
Count records in scope (and subscopes). Args: scope_prefix: Optional scope path (None = all). Returns: Numbe
lib/crewai/src/crewai/memory/storage/backend.py:168
↓ 49 callers
Method
get
(self, key: str, default: Any = None)
lib/crewai/src/crewai/utilities/prompts.py:32
↓ 46 callers
Method
format
Format this match as a human-readable string including metadata. Returns: A multi-line string with score, content, categories, an
lib/crewai/src/crewai/memory/types.py:92
↓ 45 callers
Function
_build_executor
Create an AgentExecutor without validation — for unit tests. Uses model_construct to skip Pydantic validators so plain Mock() objects are acc
lib/crewai/tests/agents/test_agent_executor.py:25
↓ 44 callers
Method
_validate_query
Raise ValueError if *sql_query* is not permitted under the current config. Splits the query on semicolons and validates each statement
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:293
↓ 44 callers
Function
fetch_result
Build the (body, content_type, final_url) tuple safe_get_bounded returns.
lib/crewai-tools/tests/url_read_tool_test.py:138
↓ 44 callers
Method
slice
Retrieve a prompt slice by key. Args: slice: The key of the prompt slice to retrieve. Returns: The prompt sl
lib/crewai/src/crewai/utilities/i18n.py:56
↓ 42 callers
Function
_end_span
( ctx: TelemetryExecutionContext, event_id: str | None, event: Any, attributes: dict[str, Any]
lib/crewai/src/crewai/telemetry/tracing/handlers.py:750
↓ 42 callers
Method
resolve
Convert MCP server references/configs to CrewAI tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:81
↓ 41 callers
Method
log
Log a message with timestamp if verbose mode is enabled. Args: level: The log level (e.g., 'info', 'warning', 'error').
lib/crewai/src/crewai/utilities/logger.py:17
↓ 39 callers
Method
run
Run all checks. Later checks are skipped when earlier ones make them impossible (e.g. no pyproject.toml → no lockfile check).
lib/cli/src/crewai_cli/deploy/validate.py:302
↓ 36 callers
Method
_unsubscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1879
↓ 36 callers
Method
call
Call the LLM with the given messages. Args: messages: Input messages for the LLM. Can be a string or list of
lib/crewai/src/crewai/llms/base_llm.py:324
↓ 36 callers
Method
load
Load the data from the specified file using pickle. Returns: The data loaded from the file.
lib/crewai/src/crewai/utilities/file_handler.py:154
↓ 36 callers
Method
parse
Parse {% js 'script.js' %} tag. Args: parser: Jinja2 parser instance. Returns: Output node with rendered scr
lib/crewai/src/crewai/flow/visualization/renderers/interactive.py:58
↓ 35 callers
Method
execute
Execute the update mechanism and return result. Args: client: A2A client instance. message: Message to send.
lib/crewai/src/crewai/a2a/updates/base.py:130
↓ 35 callers
Method
feature_usage_span
Records that a feature was used. One span = one count. Args: feature: Feature identifier, e.g. "planning:creation",
lib/crewai/src/crewai/telemetry/telemetry.py:1288
↓ 35 callers
Method
search
(self, query, limit=5, metadata_filter=None, score_threshold=0.6)
lib/crewai/tests/agents/test_agent.py:1923
↓ 34 callers
Function
_app_with_plan
()
lib/cli/tests/test_crew_run_tui.py:48
↓ 34 callers
Method
_prepare_completion_params
Prepare parameters for the completion call. Args: messages: Input messages for the LLM tools: Optional list of tool s
lib/crewai/src/crewai/llm.py:767
↓ 34 callers
Function
build_embedder
(spec: BaseEmbeddingsProvider[T])
lib/crewai/src/crewai/rag/embeddings/factory.py:275
↓ 34 callers
Method
connect
Connect to MCP server and initialize session. Returns: Self for method chaining. Raises: MCPAuthenticationEr
lib/crewai/src/crewai/mcp/client.py:152
↓ 34 callers
Function
get_or_create_project_id
Return the project's id, minting and persisting one if absent. Writes ``project_id`` into the ``[tool.crewai]`` table so it is committed with
lib/crewai-core/src/crewai_core/project.py:281
↓ 34 callers
Method
raise_for_status
Mimic requests' error-status behavior.
lib/crewai-tools/tests/url_read_tool_test.py:36
↓ 33 callers
Method
_emit_call_completed_event
Emit LLM call completed event.
lib/crewai/src/crewai/llms/base_llm.py:624
↓ 32 callers
Method
_make_request
( self, method: HttpMethod, endpoint: str, *, json: Any = None,
lib/crewai-core/src/crewai_core/plus_api.py:181
↓ 32 callers
Method
_subscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1938
↓ 32 callers
Method
execute_task
Execute a task with the agent. Args: task: Task to execute. context: Context to execute the task in. tool
lib/crewai/src/crewai/agent/core.py:858
↓ 31 callers
Method
_safe_telemetry_operation
Execute telemetry operation safely, checking both readiness and environment variables. Args: operation: A callable that performs
lib/crewai/src/crewai/telemetry/telemetry.py:235
↓ 31 callers
Method
execute_sync
Execute the task synchronously.
lib/crewai/src/crewai/task.py:585
↓ 31 callers
Function
get_execution_uuid
Return the active execution uuid, if any.
lib/crewai/src/crewai/execution.py:61
↓ 31 callers
Method
kickoff_async
(self, prompt)
lib/crewai/tests/telemetry/test_wharf_runner.py:38
↓ 31 callers
Function
load_crew
Load a ``Crew`` from a JSON/JSONC definition file. The definition file describes the crew's agents, tasks, process type, and default inputs.
lib/crewai/src/crewai/project/crew_loader.py:25
↓ 31 callers
Method
remember
Store a single item in memory (synchronous). Routes through the same serialized save pool as ``remember_many`` to prevent races, but
lib/crewai/src/crewai/memory/unified_memory.py:435
↓ 30 callers
Function
_make_llm
Build a provider whose SDK clients are pinned to a mock transport. Replaces the private clients rather than patching module globals so the test
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:99
↓ 30 callers
Method
confirm
(self)
lib/crewai/tests/test_flow_from_definition.py:139
↓ 30 callers
Method
title
(self)
lib/crewai/src/crewai/experimental/evaluation/base_evaluator.py:28
↓ 29 callers
Function
_codes
(validator: DeployValidator)
lib/cli/tests/deploy/test_validate.py:101
↓ 29 callers
Function
_make_tool
Return a DB2VectorSearchTool with mocked ibm_db packages.
lib/crewai-tools/tests/tools/test_db2_search_tool.py:63
↓ 29 callers
Function
_serialize
(value: Any)
lib/crewai/src/crewai/telemetry/tracing/handlers.py:568
↓ 29 callers
Method
errors
Retrieve an error message by key. Args: error: The key of the error message to retrieve. Returns: The error
lib/crewai/src/crewai/utilities/i18n.py:67
↓ 29 callers
Method
reset
Reset (delete all) memories in scope. Args: scope: Scope to reset. If None and root_scope is set, resets only wit
lib/crewai/src/crewai/memory/unified_memory.py:1023
↓ 29 callers
Function
validate_url
Validate that a URL is safe to fetch. Blocks ``file://`` scheme entirely. For ``http``/``https``, resolves DNS and checks that the target IP
lib/crewai-tools/src/crewai_tools/security/safe_path.py:198
↓ 29 callers
Function
wait_for_event_handlers
Wait for all pending event handlers to complete. This helper ensures all sync and async handlers finish processing before proceeding. Useful
lib/crewai/tests/utils.py:7
↓ 28 callers
Function
build
(model: str = "gpt-5", **kwargs: Any)
lib/crewai/tests/llms/openai/test_reasoning_effort_forwarding.py:43
↓ 28 callers
Method
dump
Save current settings to settings.json.
lib/crewai-core/src/crewai_core/settings.py:234
↓ 28 callers
Method
gather
(self)
lib/crewai/tests/test_flow_ask.py:166
↓ 28 callers
Method
register
Register an extension. Args: extension: The extension to register.
lib/crewai/src/crewai/a2a/extensions/base.py:178
↓ 28 callers
Method
result
Return the final result after stream exhaustion or completion.
lib/crewai/src/crewai/types/streaming.py:77
↓ 27 callers
Function
_write_crew
(project_dir: Path, crew_def: dict)
lib/crewai/tests/project/test_crew_loader.py:59
↓ 27 callers
Method
call
(self, messages, tools=None, callbacks=None)
lib/crewai/tests/llms/test_multimodal.py:330
↓ 27 callers
Method
copy
Creates a deep copy of the Task while preserving its original class type. Args: agents: List of agents available for the task.
lib/crewai/src/crewai/task.py:1154
↓ 27 callers
Function
create_llm
Creates or returns an LLM instance based on the given llm_value. Args: llm_value: LLM instance, model name string, config dict, None, or
lib/crewai/src/crewai/utilities/llm_utils.py:13
↓ 27 callers
Method
from_pending
Create a Flow instance from a pending feedback state. This classmethod is used to restore a flow that was paused waiting for async hu
lib/crewai/src/crewai/flow/runtime/__init__.py:1253
↓ 27 callers
Function
interpolate_only
Interpolate placeholders (e.g., {key}) in a string while leaving JSON untouched. Only interpolates placeholders that follow the pattern {variable_
lib/crewai/src/crewai/utilities/string_utils.py:79
next →
1–100 of 15,572, ranked by callers