Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
12,753 in github.com/crewAIInc/crewAI
⨍
Functions
12,753
◇
Types & classes
2,624
↳
Endpoints
746
↓ 923 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
↓ 696 callers
Method
get
Retrieve an auth scheme by key.
lib/crewai/src/crewai/a2a/auth/utils.py:52
↓ 591 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:966
↓ 378 callers
Method
join
(self)
lib/crewai/tests/test_flow_from_definition.py:225
↓ 190 callers
Method
get
Sync wrapper for aget.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:415
↓ 175 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
↓ 136 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:1780
↓ 128 callers
Method
from_declaration
Build a runnable declarative flow from contents or a file path.
lib/crewai/src/crewai/flow/runtime/__init__.py:479
↓ 118 callers
Method
print
Print to console. Simplified to only handle panel-based output.
lib/crewai/src/crewai/events/utils/console_formatter.py:183
↓ 114 callers
Method
set
Store an auth scheme.
lib/crewai/src/crewai/a2a/auth/utils.py:47
↓ 100 callers
Method
invoke
Main method for tool execution.
lib/crewai/src/crewai/tools/structured_tool.py:340
↓ 100 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:852
↓ 99 callers
Method
extend
(self, tools: list[T])
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:44
↓ 94 callers
Method
print
Print ``content`` with optional color, honoring suppression context.
lib/crewai-core/src/crewai_core/printer.py:78
↓ 91 callers
Method
append
(self, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:40
↓ 86 callers
Method
pop
(self, index: int = -1)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:57
↓ 80 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:507
↓ 78 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
↓ 77 callers
Method
_run
(self, question: str)
lib/crewai-tools/tests/base_tool_test.py:46
↓ 77 callers
Method
read_text
Read the file content as string.
lib/crewai-files/src/crewai_files/core/types.py:214
↓ 73 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
↓ 72 callers
Method
keys
Return keys for dict unpacking.
lib/crewai-files/src/crewai_files/core/types.py:226
↓ 71 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:956
↓ 67 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:1522
↓ 64 callers
Method
flush
Block until all pending event handlers complete. This method waits for all futures from previously emitted events to finish executing
lib/crewai/src/crewai/events/event_bus.py:734
↓ 64 callers
Method
read
Read the file content as bytes.
lib/crewai-files/src/crewai_files/core/types.py:199
↓ 59 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:891
↓ 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
json
(self)
lib/crewai/src/crewai/crews/crew_output.py:31
↓ 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:1919
↓ 55 callers
Method
print_panel
Print a panel with consistent formatting if verbose is enabled.
lib/crewai/src/crewai/events/utils/console_formatter.py:208
↓ 54 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:799
↓ 53 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:1176
↓ 52 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
↓ 49 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
↓ 48 callers
Method
open
(nodeName, metadata)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1410
↓ 47 callers
Method
get
(self, key: str, default: Any = None)
lib/crewai/src/crewai/utilities/prompts.py:17
↓ 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
Method
create
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:67
↓ 44 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
↓ 44 callers
Method
run
(executor: CrewAgentExecutor, expected: str)
lib/crewai/tests/agents/test_agent.py:2765
↓ 43 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
↓ 43 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
↓ 42 callers
Method
connect
Connect to MCP server and initialize session. Returns: Self for method chaining. Raises: ConnectionError: If
lib/crewai/src/crewai/mcp/client.py:139
↓ 40 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
clear
Remove all nodes from the record under the write lock.
lib/crewai/src/crewai/state/event_record.py:214
↓ 39 callers
Method
flow_definition
Return the static Flow Definition built from this Flow class.
lib/crewai/src/crewai/flow/runtime/__init__.py:470
↓ 39 callers
Method
resolve
Convert MCP server references/configs to CrewAI tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:68
↓ 37 callers
Method
load
(self, content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/base_loader.py:24
↓ 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:312
↓ 36 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:177
↓ 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:154
↓ 34 callers
Function
_app_with_plan
()
lib/cli/tests/test_crew_run_tui.py:39
↓ 34 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
↓ 33 callers
Method
_emit_call_completed_event
Emit LLM call completed event.
lib/crewai/src/crewai/llms/base_llm.py:608
↓ 33 callers
Method
confirm
(self)
lib/crewai/tests/test_flow_from_definition.py:139
↓ 33 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
↓ 33 callers
Method
search
(self, query, limit=5, metadata_filter=None, score_threshold=0.6)
lib/crewai/tests/agents/test_agent.py:1911
↓ 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:740
↓ 32 callers
Method
kickoff_async
Asynchronous kickoff method to start the crew execution. Args: inputs: Optional input dictionary for task interpolation.
lib/crewai/src/crewai/crew.py:1096
↓ 32 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
↓ 31 callers
Method
_make_request
( self, method: HttpMethod, endpoint: str, *, json: Any = None,
lib/crewai-core/src/crewai_core/plus_api.py:173
↓ 31 callers
Method
_unsubscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1780
↓ 31 callers
Method
handle_turn
Append a user message, run one conversational turn, and return output. .. warning:: **EXPERIMENTAL.** This is the public entry po
lib/crewai/src/crewai/experimental/conversational_mixin.py:267
↓ 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
↓ 30 callers
Function
build_embedder
(spec: BaseEmbeddingsProvider[T])
lib/crewai/src/crewai/rag/embeddings/factory.py:267
↓ 30 callers
Method
execute_sync
Execute the task synchronously.
lib/crewai/src/crewai/task.py:572
↓ 29 callers
Function
_codes
(validator: DeployValidator)
lib/cli/tests/deploy/test_validate.py:100
↓ 29 callers
Method
register
Register an extension. Args: extension: The extension to register.
lib/crewai/src/crewai/a2a/extensions/base.py:178
↓ 29 callers
Method
title
(self)
lib/crewai/src/crewai/experimental/evaluation/base_evaluator.py:28
↓ 28 callers
Method
dump
Save current settings to settings.json.
lib/crewai-core/src/crewai_core/settings.py:234
↓ 28 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:430
↓ 28 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:161
↓ 27 callers
Function
_write_crew
(project_dir: Path, crew_def: dict)
lib/crewai/tests/project/test_crew_loader.py:59
↓ 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
↓ 27 callers
Function
reset_last_event_id
Reset the last event ID to None. Should be called at the start of a new flow or when resetting event state.
lib/crewai/src/crewai/events/event_context.py:83
↓ 27 callers
Method
result
Return the final result after stream exhaustion or completion.
lib/crewai/src/crewai/types/streaming.py:77
↓ 26 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:250
↓ 26 callers
Method
_subscribe
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1839
↓ 26 callers
Function
_write_agent
(agents_dir: Path, name: str, **overrides)
lib/crewai/tests/project/test_crew_loader.py:47
↓ 26 callers
Method
read
Retrieve a cached tool result. Args: tool: Name of the tool. input: Input string used for the tool. Returns:
lib/crewai/src/crewai/agents/cache/cache_handler.py:37
↓ 25 callers
Function
build_flow_structure
Build a visualization structure projection from a FlowDefinition.
lib/crewai/src/crewai/flow/visualization/builder.py:169
↓ 25 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
↓ 25 callers
Method
gather
(self)
lib/crewai/tests/test_flow_ask.py:166
↓ 25 callers
Function
generate_model_description
Generate JSON schema description of a Pydantic model. This function takes a Pydantic model class and returns its JSON schema, which includes
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:638
↓ 24 callers
Function
_create_analyst_crew
Create a simple analyst crew for file analysis.
lib/crewai/tests/test_crew_multimodal.py:95
↓ 24 callers
Method
_track_token_usage_internal
Track token usage from Bedrock response.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2067
↓ 24 callers
Method
ask
Request input from the user during flow execution. Blocks the current thread until the user provides input or the timeout expires. Wo
lib/crewai/src/crewai/flow/runtime/__init__.py:3015
↓ 24 callers
Function
convert_tools_to_openai_schema
Convert CrewAI tools to OpenAI function calling format. This function converts CrewAI BaseTool and CrewStructuredTool objects into the OpenAI
lib/crewai/src/crewai/utilities/agent_utils.py:154
↓ 24 callers
Method
prompt
Generates the task prompt with optional markdown formatting. When the markdown attribute is True, instructions for formatting the res
lib/crewai/src/crewai/task.py:890
↓ 24 callers
Method
result
(self)
lib/crewai/tests/test_flow.py:1578
↓ 23 callers
Method
_apply_stop_words
Apply stop words to truncate response content. This method provides consistent stop word behavior across all native SDK providers. Na
lib/crewai/src/crewai/llms/base_llm.py:452
↓ 23 callers
Function
_build_multimodal_message
Build a multimodal message with text and file content.
lib/crewai/tests/llms/test_multimodal_integration.py:78
↓ 23 callers
Function
_mock_response
Build a ``requests.Response``-like mock with the attributes used by ``_make_request``.
lib/crewai-tools/tests/tools/brave_search_tool_test.py:37
↓ 23 callers
Method
remove
Sync wrapper for aremove.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:460
↓ 23 callers
Function
reset_emission_counter
Reset the emission sequence counter to 1. Resets for the current context only.
lib/crewai/src/crewai/events/base_events.py:49
↓ 22 callers
Method
_effective_stream
Return the call-scoped streaming mode for this instance.
lib/crewai/src/crewai/llms/base_llm.py:237
↓ 22 callers
Method
_generate_description
(self)
lib/crewai-tools/src/crewai_tools/tools/patronus_eval_tool/patronus_eval_tool.py:102
↓ 22 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:1073
↓ 22 callers
Function
get_before_llm_call_hooks
Get all registered global before_llm_call hooks. Returns: List of registered before hooks
lib/crewai/src/crewai/hooks/llm_hooks.py:221
next →
1–100 of 12,753, ranked by callers