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
↓ 21 callers
Method
r_locked
Context manager for acquiring a read lock. Yields: None
lib/crewai/src/crewai/utilities/rw_lock.py:45
↓ 21 callers
Function
record
(session, name="execute flow")
lib/crewai/tests/telemetry/test_session_trace_export.py:128
↓ 21 callers
Function
resolve_context_window_size
Return the usable context window for a catalog model id. A ``configured`` window (the caller's ``context_window_size``) wins over the catalog
lib/crewai/src/crewai/llms/context_window.py:261
↓ 21 callers
Method
retrieve
Retrieve a prompt by kind and key. Args: kind: The kind of prompt. key: The key of the specific prompt to retrieve.
lib/crewai/src/crewai/utilities/i18n.py:100
↓ 21 callers
Function
safe_get
GET a URL while validating each redirect target before following it. On success the hops are attached to the returned response's ``history`` and
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:129
↓ 20 callers
Function
_create_analyst_agent
Create a simple analyst agent for file analysis.
lib/crewai/tests/test_agent_multimodal.py:104
↓ 20 callers
Method
_handle_trace_event
Generic handler for context end events. Args: event_type: Type of the event. source: Source object that triggered the
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:947
↓ 20 callers
Method
_validate_response
Handle and display error messages from API responses. Args: response: The response from the Plus API. Raises:
lib/cli/src/crewai_cli/command.py:40
↓ 20 callers
Method
aexecute_sync
Execute the task asynchronously using native async/await.
lib/crewai/src/crewai/task.py:681
↓ 20 callers
Method
create
(self, **params)
lib/crewai/tests/test_tool_cache_default.py:93
↓ 20 callers
Function
create_init_file
(directory, content)
lib/crewai/tests/cli/test_utils.py:21
↓ 20 callers
Function
create_smart_task
Smart task factory that automatically assigns a mock agent when guardrails are present. This maintains backward compatibility while handling
lib/crewai/tests/test_task_guardrails.py:17
↓ 20 callers
Method
delete
Delete memories matching the given criteria. Args: scope_prefix: Optional scope path prefix. categories: Optional lis
lib/crewai/src/crewai/memory/storage/backend.py:80
↓ 20 callers
Method
deploy
Deploy a crew using either UUID or project name. Args: uuid (Optional[str]): The UUID of the crew to deploy.
lib/cli/src/crewai_cli/deploy/main.py:432
↓ 20 callers
Function
join_scope_paths
Join a root scope with an inner scope, handling edge cases properly. Args: root: The root scope prefix (e.g. '/crew/research-crew').
lib/crewai/src/crewai/memory/utils.py:67
↓ 20 callers
Method
resolve
Resolve a file to its delivery format for a provider. Args: file: The file to resolve. provider: Provider name (e.g.,
lib/crewai-files/src/crewai_files/resolution/resolver.py:164
↓ 20 callers
Function
run_command
Run a shell command and return output. Args: cmd: Command to run as list of strings. cwd: Working directory for command. Ret
lib/devtools/src/crewai_devtools/cli.py:69
↓ 20 callers
Method
save
(self, records: list[MemoryRecord])
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:314
↓ 20 callers
Function
validate_file_path
Validate that a file path is safe to read. Resolves symlinks and ``..`` components, then checks that the resolved path falls within *base_dir
lib/crewai-tools/src/crewai_tools/security/safe_path.py:97
↓ 19 callers
Method
__setattr__
(self, name: str, value: Any)
lib/crewai/src/crewai/llms/base_llm.py:326
↓ 19 callers
Method
cursor
(self)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:75
↓ 19 callers
Function
detect_coding_agent
Best-effort detection of the AI coding assistant running this process. Uses the shared ``CODING_AGENT_ENV_MARKERS`` table, so this agrees with th
lib/crewai-core/src/crewai_core/runtime_env.py:209
↓ 19 callers
Function
format_multimodal_content
Format text and files as provider-specific multimodal content blocks. This is the main high-level API for converting files to content blocks
lib/crewai-files/src/crewai_files/formatting/api.py:82
↓ 19 callers
Method
get_tracer
(self, name: str | None = None)
lib/crewai/tests/telemetry/test_span_attribute_bound.py:69
↓ 19 callers
Function
in_temp_dir
()
lib/cli/tests/skills/test_main.py:28
↓ 19 callers
Method
interpolate_inputs
Interpolate inputs, then re-resolve the ``llm_overlay`` if the role changed. A role declared as a template (``"Researcher for {repo}"``) is n
lib/crewai/src/crewai/agent/core.py:517
↓ 19 callers
Method
publish
(self, is_public: bool, force: bool = False)
lib/cli/src/crewai_cli/tools/main.py:103
↓ 19 callers
Function
register_before_tool_call_hook
Register a global before_tool_call hook. Global hooks are added to all tool executions automatically. This is a convenience function for regi
lib/crewai/src/crewai/hooks/tool_hooks.py:208
↓ 19 callers
Method
replay
Replay the crew execution from a specific task.
lib/crewai/src/crewai/crew.py:2118
↓ 19 callers
Method
reset
(self)
lib/crewai/tests/agents/test_agent.py:1896
↓ 19 callers
Method
w_locked
Context manager for acquiring a write lock. Yields: None
lib/crewai/src/crewai/utilities/rw_lock.py:71
↓ 19 callers
Function
warning
(project: Path, name: str)
lib/cli/tests/test_api_keys.py:39
↓ 18 callers
Method
_invoke_before_llm_call_hooks
Invoke before_llm_call hooks for an LLM call reaching the provider. This method should be called by native provider implementations before
lib/crewai/src/crewai/llms/base_llm.py:1245
↓ 18 callers
Function
_is_python_ref
(value: Any)
lib/crewai/src/crewai/project/json_loader.py:661
↓ 18 callers
Function
_scaffold_standard_crew
( root: Path, *, name: str = "my_crew", include_crew_py: bool = True, include_agents_yaml:
lib/cli/tests/deploy/test_validate.py:58
↓ 18 callers
Method
add
(self, event: BaseEvent)
lib/crewai/tests/events/test_event_ordering.py:41
↓ 18 callers
Method
arun
Executes the tool asynchronously. Args: *args: Positional arguments for the tool. **kwargs: Keyword arguments for the
lib/crewai/src/crewai/tools/base_tool.py:595
↓ 18 callers
Method
as_flow
Return this Agent's experimental conversational Flow session. Requires ``conversational=True``. Reuse the returned Flow for multiple
lib/crewai/src/crewai/agent/core.py:1913
↓ 18 callers
Method
close
Kill the cached persistent sandbox if one exists.
lib/crewai-tools/src/crewai_tools/tools/e2b_sandbox_tool/e2b_base_tool.py:183
↓ 18 callers
Method
commit
(self)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:78
↓ 18 callers
Function
get_crewai_dependency_range
Return the supported CrewAI dependency range for generated projects.
lib/cli/src/crewai_cli/version.py:23
↓ 18 callers
Function
handler
(source: object, event: BaseEvent)
lib/crewai/tests/utilities/events/test_shutdown.py:27
↓ 18 callers
Function
is_context_length_exceeded
Check if the exception is due to context length exceeding. Args: exception: The exception to check Returns: bool: True if th
lib/crewai/src/crewai/utilities/agent_utils.py:997
↓ 18 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:1146
↓ 18 callers
Method
load_state
Load the most recent state for a given flow UUID. Args: flow_uuid: Unique identifier for the flow instance Returns:
lib/crewai/src/crewai/flow/persistence/sqlite.py:217
↓ 18 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:46
↓ 18 callers
Function
record_run_stopped
Count a `crewai run` that stopped before kickoff, and where; or whose project script failed (`script_failed`); or whose JSON crew stopped, as it
lib/cli/src/crewai_cli/run_crew.py:860
↓ 18 callers
Function
register_after_tool_call_hook
Register a global after_tool_call hook. Global hooks are added to all tool executions automatically. This is a convenience function for regis
lib/crewai/src/crewai/hooks/tool_hooks.py:245
↓ 18 callers
Method
remember_many
Store multiple items in memory (non-blocking). The encoding pipeline runs in a background thread. This method returns immediately so
lib/crewai/src/crewai/memory/unified_memory.py:528
↓ 18 callers
Method
to_pydantic
Convert text to pydantic. Args: current_attempt: The current attempt number for conversion retries. Returns:
lib/crewai/src/crewai/utilities/converter.py:87
↓ 17 callers
Method
_format_messages_for_anthropic
Format messages for Anthropic API. Anthropic has specific requirements: - System messages are separate from conversation messages
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:887
↓ 17 callers
Method
_handle_tool_execution
Handle tool execution with proper event emission. Args: function_name: Name of the function to execute function_args:
lib/crewai/src/crewai/llms/base_llm.py:974
↓ 17 callers
Function
_snowflake_env
(monkeypatch: pytest.MonkeyPatch)
lib/crewai/tests/llms/snowflake/test_snowflake.py:18
↓ 17 callers
Method
_validate_tool_input
(self, tool_input: str | None)
lib/crewai/src/crewai/tools/tool_usage.py:939
↓ 17 callers
Method
call
Call OpenAI API (Chat Completions or Responses based on api setting). Args: messages: Input messages for the completion.
lib/crewai/src/crewai/llms/providers/openai/completion.py:636
↓ 17 callers
Method
close
Flush local shard to central and clean up.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:807
↓ 17 callers
Function
create_project_zip
Create a deployable ZIP archive for a CrewAI project. Raises: ArchiveError: Nothing deployable was found, or the project could not be
lib/cli/src/crewai_cli/deploy/archive.py:48
↓ 17 callers
Method
create_status_content
Create standardized status content with consistent formatting.
lib/crewai/src/crewai/events/utils/console_formatter.py:160
↓ 17 callers
Method
execute_task
( self, task: Any, context: str | None = None, tools: list[BaseTool] | None =
lib/crewai/tests/agents/agent_builder/test_base_agent.py:11
↓ 17 callers
Method
export_evaluation
(self, evaluation_id, **kwargs)
lib/cli/tests/experimental/test_eval_crew.py:2812
↓ 17 callers
Function
exported
(files=None, kind="models")
lib/cli/tests/experimental/test_eval_crew.py:2820
↓ 17 callers
Method
fetchone
(self)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:65
↓ 17 callers
Method
format
Format log record as JSON string.
lib/crewai/src/crewai/a2a/utils/logging.py:23
↓ 17 callers
Method
from_function
Create a tool from a function. Args: func: The function to create a tool from name: The name of the tool. Defaults to
lib/crewai/src/crewai/tools/structured_tool.py:235
↓ 17 callers
Method
get_authorize_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:11
↓ 17 callers
Method
get_by_step_number
Get a todo by its step number.
lib/crewai/src/crewai/utilities/planning_types.py:83
↓ 17 callers
Method
get_issuer
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:20
↓ 17 callers
Method
get_jwks_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:17
↓ 17 callers
Method
get_record
Return a single record by ID, or None if not found. Args: record_id: The unique ID of the record. Returns: T
lib/crewai/src/crewai/memory/storage/backend.py:106
↓ 17 callers
Method
get_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:14
↓ 17 callers
Function
make_agent
(**kwargs)
lib/crewai/tests/agents/test_conversation.py:25
↓ 17 callers
Function
message_content_text
Return text content without rendering multimodal parts as Python reprs.
lib/crewai/src/crewai/utilities/message_utils.py:11
↓ 17 callers
Method
read
(self)
lib/crewai-tools/tests/file_read_tool_test.py:29
↓ 17 callers
Method
read
(self)
lib/crewai/tests/agents/test_agent_spreadsheets.py:418
↓ 17 callers
Method
store
Unpack an archive into the cache and write metadata. Uses tarfile with filter='data' for path-traversal protection. Args:
lib/crewai/src/crewai/skills/cache.py:83
↓ 16 callers
Method
_add
( self, severity: Severity, code: str, title: str, detail: str = "",
lib/cli/src/crewai_cli/deploy/validate.py:262
↓ 16 callers
Function
_create_azure_responses
Create an AzureCompletion(api='responses'). Must be called inside a context where OpenAICompletion is already mocked (i.e. via the ``mock_ope
lib/crewai/tests/llms/azure/test_azure_responses.py:59
↓ 16 callers
Method
_emit_call_failed_event
Emit LLM call failed event.
lib/crewai/src/crewai/llms/base_llm.py:876
↓ 16 callers
Function
_event
(type: str, **kwargs)
lib/crewai/tests/test_event_record.py:15
↓ 16 callers
Function
_make
Create a SkillFrontmatter with the given name.
lib/crewai/tests/skills/test_validation.py:14
↓ 16 callers
Method
_status_response
( self, *, uuid: str = "test-uuid", zip_deployment: bool | None = None,
lib/cli/tests/deploy/test_deploy_main.py:245
↓ 16 callers
Function
begin_execution
Start an execution context unless one is already active. The outermost crew or flow receives a new uuid by default. Nested executions inherit
lib/crewai/src/crewai/execution.py:89
↓ 16 callers
Method
call
Call Anthropic messages API. Args: messages: Input messages for the chat completion tools: List of tool/function defi
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:478
↓ 16 callers
Method
cancel
(id)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:617
↓ 16 callers
Method
close
Drain pending saves, flush storage, and shut down the background thread pool.
lib/crewai/src/crewai/memory/unified_memory.py:370
↓ 16 callers
Function
detect_runtime_context
Best-effort detection of where this process is running. Separate from :func:`detect_coding_agent` because the two answer different questions.
lib/crewai-core/src/crewai_core/runtime_env.py:248
↓ 16 callers
Function
extract_tool_call_info
Extract tool call ID, name, and arguments from various provider formats. Args: tool_call: The tool call object to extract info from.
lib/crewai/src/crewai/utilities/agent_utils.py:1281
↓ 16 callers
Method
finalize_session_traces
Emit a final ``FlowFinishedEvent`` and finish the execution trace. Pairs with ``flow.defer_trace_finalization = True`` (or ``Conversa
lib/crewai/src/crewai/flow/conversational_mixin.py:1745
↓ 16 callers
Function
get_before_tool_call_hooks
Get all registered global before_tool_call hooks. Returns: List of registered before hooks
lib/crewai/src/crewai/hooks/tool_hooks.py:276
↓ 16 callers
Function
get_or_create_project_id
Return the project's id, minting and persisting one if absent.
lib/cli/src/crewai_cli/utils.py:74
↓ 16 callers
Method
neighbors
Return neighbor IDs for a given edge type. Args: edge_type: The relationship type to query. Returns: List of
lib/crewai/src/crewai/state/event_record.py:87
↓ 16 callers
Function
reason
(data: bytes, name: str = "w.xlsx")
lib/crewai-files/tests/spreadsheets/test_reading.py:69
↓ 16 callers
Method
search
(self, query: str, depth: str, output_type: str)
lib/crewai-tools/tests/tools/test_linkup_search_tool.py:11
↓ 16 callers
Method
search
List the current organization's registry skills, filtered by QUERY.
lib/cli/src/crewai_cli/skills/main.py:380
↓ 16 callers
Method
start
(self)
lib/crewai/tests/test_crew.py:5065
↓ 16 callers
Function
text_of
One line of cell text: whitespace collapsed, so no value starts a new line in a prompt or breaks a table row.
lib/crewai-files/src/crewai_files/spreadsheets/reading.py:642
↓ 16 callers
Function
without_api_keys
(monkeypatch: pytest.MonkeyPatch, *names: str)
lib/cli/tests/test_run_usage.py:1175
↓ 15 callers
Function
CrewaiPlatformTools
Factory function that returns crewai platform tools. Args: apps: List of platform apps to get tools that are available on the platform.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tools.py:13
↓ 15 callers
Method
__post_init__
(self)
lib/crewai/src/crewai/a2a/errors.py:141
↓ 15 callers
Function
_config
(path)
lib/crewai/tests/rag/qdrant/test_local_client_sharing.py:22
← previous
next →
201–300 of 19,482, ranked by callers