Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
↓ 1,327 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
↓ 986 callers
Method
get
Retrieve an auth scheme by key.
lib/crewai/src/crewai/a2a/auth/utils.py:52
↓ 858 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:1006
↓ 584 callers
Method
join
(self)
lib/crewai/tests/test_flow_from_definition.py:226
↓ 260 callers
Method
read_text
Read the file content as string.
lib/crewai-files/src/crewai_files/core/types.py:214
↓ 215 callers
Method
invoke
Execute agent with given inputs. When called from within an existing event loop (e.g., inside a Flow), this method returns a coroutin
lib/crewai/src/crewai/agents/agent_executor.py:3132
↓ 213 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
↓ 198 callers
Method
from_declaration
Build a runnable declarative flow from contents or a file path.
lib/crewai/src/crewai/flow/runtime/__init__.py:548
↓ 165 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:559
↓ 165 callers
Method
set
Store an auth scheme.
lib/crewai/src/crewai/a2a/auth/utils.py:47
↓ 164 callers
Function
install
(monkeypatch, amp: FakeAMP, configured_amp: str = "https://amp.test")
lib/cli/tests/experimental/test_eval_crew.py:152
↓ 154 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:1951
↓ 154 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
↓ 151 callers
Method
pop
(self, index: int = -1)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:57
↓ 146 callers
Method
append
(self, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:40
↓ 137 callers
Method
get
(self, url: str | bytes, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:68
↓ 137 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:862
↓ 124 callers
Method
_run
(self, url: str)
lib/crewai-tools/tests/tools/test_oxylabs_tools.py:269
↓ 121 callers
Method
sleep
(self, seconds: float)
lib/cli/tests/authentication/test_auth_main.py:23
↓ 120 callers
Method
print
Print ``content`` with optional color, honoring suppression context.
lib/crewai-core/src/crewai_core/printer.py:78
↓ 116 callers
Method
extend
(self, tools: list[T])
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:44
↓ 115 callers
Method
print
Print to console. Simplified to only handle panel-based output.
lib/crewai/src/crewai/events/utils/console_formatter.py:185
↓ 113 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
↓ 106 callers
Method
handle_turn
Run a turn with the history of this experimental Agent conversation. ``kwargs`` are forwarded to ``Flow.handle_turn``, including session and
lib/crewai/src/crewai/agent/core.py:1929
↓ 97 callers
Method
wait
(self)
lib/cli/tests/test_cli.py:426
↓ 88 callers
Method
flush
(self)
lib/crewai/tests/utilities/test_console_formatter_pause_resume.py:164
↓ 84 callers
Method
json
JSON string of the final task's output. None when that output could not be converted to its ``output_json`` model.
lib/crewai/src/crewai/crews/crew_output.py:60
↓ 84 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:1958
↓ 78 callers
Method
keys
Return keys for dict unpacking.
lib/crewai-files/src/crewai_files/core/types.py:226
↓ 76 callers
Function
record_last_run
(directory: Path, execution_id: str = EXECUTION_ID, **fields)
lib/cli/tests/experimental/test_eval_crew.py:140
↓ 74 callers
Method
echo
(self)
lib/crewai/tests/test_flow_conversation.py:1553
↓ 74 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:969
↓ 74 callers
Function
parse
Read ``data`` as a workbook, by its bytes rather than its name. Args: data: The file's content. filename: The file's name; ``.csv
lib/crewai-files/src/crewai_files/spreadsheets/reading.py:164
↓ 72 callers
Method
emit_log
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/telemetry/tracing/session.py:187
↓ 69 callers
Function
done
(gate="passed", grades=None, eval_config=None)
lib/cli/tests/experimental/test_eval_crew.py:114
↓ 68 callers
Method
load
(self, content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/base_loader.py:24
↓ 67 callers
Method
open
(nodeName, metadata)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1410
↓ 66 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
↓ 66 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:2093
↓ 66 callers
Method
write
(self)
lib/crewai/tests/test_llm_overlay.py:604
↓ 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
↓ 64 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
↓ 63 callers
Method
read
Read the file content as bytes.
lib/crewai-files/src/crewai_files/core/types.py:199
↓ 62 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
↓ 62 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:1226
↓ 62 callers
Method
clear
Remove all nodes from the record under the write lock.
lib/crewai/src/crewai/state/event_record.py:214
↓ 61 callers
Method
add
( self, *, ids: list[str], embeddings: list[list[float]], documents: l
lib/crewai-tools/tests/rag/test_rag_core_jsonl.py:39
↓ 60 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
↓ 60 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
↓ 59 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:27
↓ 59 callers
Method
print_panel
Print a panel with consistent formatting if verbose is enabled.
lib/crewai/src/crewai/events/utils/console_formatter.py:208
↓ 59 callers
Method
run_crew
Execute the crew and capture the result.
lib/crewai/src/crewai/crew.py:1032
↓ 57 callers
Method
fail
(self)
lib/crewai/tests/telemetry/test_conversation_spans.py:130
↓ 57 callers
Method
flow_definition
Return the static Flow Definition built from this Flow class.
lib/crewai/src/crewai/flow/runtime/__init__.py:539
↓ 56 callers
Function
llm_overlay
Route agent roles and models to models for the duration of the block. Args: mapping: ``{role: model}`` and ``{"model:<model>": model}`` (
lib/crewai/src/crewai/llm_overlay.py:128
↓ 56 callers
Method
resolve
Convert MCP server references/configs to CrewAI tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:81
↓ 54 callers
Method
save
(self, documents)
lib/crewai/tests/agents/test_agent.py:1890
↓ 54 callers
Function
write
(path: Path, text: str)
lib/cli/tests/test_api_keys.py:33
↓ 52 callers
Method
get
(self, key: str, default: Any = None)
lib/crewai/src/crewai/utilities/prompts.py:32
↓ 51 callers
Function
build_embedder
(spec: BaseEmbeddingsProvider[T])
lib/crewai/src/crewai/rag/embeddings/factory.py:284
↓ 50 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:309
↓ 48 callers
Function
reader
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_spreadsheets.py:190
↓ 48 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:305
↓ 48 callers
Method
run
(self)
lib/crewai/tests/agents/test_conversation.py:256
↓ 46 callers
Method
run
(step: int)
lib/crewai/tests/tools/test_tool_failure.py:2355
↓ 45 callers
Function
crew_project
(folder: Path)
lib/cli/tests/test_api_keys.py:46
↓ 44 callers
Method
call
( self, messages: Any, tools: Any = None, callbacks: Any = None, avail
lib/crewai/tests/llms/test_base_llm.py:13
↓ 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:135
↓ 44 callers
Method
get
(self, *, where: dict[str, Any], limit: int)
lib/crewai-tools/tests/rag/test_rag_core_jsonl.py:36
↓ 43 callers
Method
get
Sync wrapper for aget.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:415
↓ 43 callers
Function
stopped
(reason: str)
lib/cli/tests/test_run_usage.py:104
↓ 43 callers
Function
write
(path: Path, text: str)
lib/cli/tests/test_run_usage.py:170
↓ 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:801
↓ 42 callers
Method
flush
(self, timeout_millis=30000)
lib/crewai/tests/telemetry/test_enterprise_session_compatibility.py:44
↓ 41 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:760
↓ 41 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:1236
↓ 41 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:1303
↓ 41 callers
Method
kickoff_async
(self, prompt)
lib/crewai/tests/telemetry/test_wharf_runner.py:38
↓ 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
↓ 41 callers
Method
resume
Resume flow execution, optionally with human feedback. This method continues flow execution after a flow was paused for async human f
lib/crewai/src/crewai/flow/runtime/__init__.py:1349
↓ 39 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
↓ 39 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
↓ 39 callers
Method
submit
Schedule an already-registered job; safe from a foreground thread.
lib/crewai/src/crewai/experimental/flow_jobs.py:265
↓ 38 callers
Function
ask
(book=BOOK, name="Q3.xlsx", **kwargs)
lib/crewai-files/tests/spreadsheets/test_answers.py:61
↓ 38 callers
Function
get_execution_uuid
Return the active execution uuid, if any.
lib/crewai/src/crewai/execution.py:65
↓ 37 callers
Method
_make_request
( self, method: HttpMethod, endpoint: str, *, json: Any = None,
lib/crewai-core/src/crewai_core/plus_api.py:301
↓ 37 callers
Method
_unsubscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:2622
↓ 37 callers
Function
at_a_terminal
A person at a terminal who gives ANSWERS, in order; returns the prompts shown. Call it in the test itself: pytest swaps `sys.stdout` after fixtur
lib/cli/tests/test_api_keys.py:115
↓ 37 callers
Function
crewai_run
(*args: str)
lib/cli/tests/test_run_usage.py:166
↓ 36 callers
Method
connect
Connect to MCP server and initialize session. Returns: Self for method chaining. Raises: MCPAuthenticationEr
lib/crewai/src/crewai/mcp/client.py:153
↓ 36 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:1260
↓ 35 callers
Method
execute_sync
Execute the task synchronously.
lib/crewai/src/crewai/task.py:626
↓ 35 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:155
↓ 35 callers
Method
monotonic
(self)
lib/cli/tests/authentication/test_auth_main.py:20
↓ 35 callers
Method
raise_for_status
Mimic requests' error-status behavior.
lib/crewai-tools/tests/url_read_tool_test.py:37
↓ 35 callers
Function
started
(kind: str)
lib/cli/tests/test_run_usage.py:100
↓ 35 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:295
↓ 34 callers
Function
_app_with_plan
()
lib/cli/tests/test_crew_run_tui.py:67
↓ 34 callers
Method
_emit_call_completed_event
Emit LLM call completed event.
lib/crewai/src/crewai/llms/base_llm.py:846
↓ 34 callers
Function
build
(model: str = "gpt-5.6-sol", **kwargs)
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:63
next →
1–100 of 19,482, ranked by callers