Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
20,483 in github.com/crewAIInc/crewAI
⨍
Functions
20,483
◇
Types & classes
3,557
↳
Endpoints
1,005
↓ 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
ephemeral_tracing
Own buffering and consent; activation can change between deferred turns.
lib/crewai/src/crewai/telemetry/tracing/ephemeral.py:289
↓ 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:1791
↓ 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
get_token
Return the access token if it is valid for ``min_remaining_seconds`` more, else None. Also None once the saved login is past its idle or tota
lib/crewai-core/src/crewai_core/token_manager.py:153
↓ 16 callers
Method
interpolate_inputs_and_add_conversation_history
Interpolate inputs into the task description, expected output, and output file path. Add conversation history if present. Args:
lib/crewai/src/crewai/task.py:1136
↓ 16 callers
Method
monotonic
(self)
lib/crewai-core/tests/test_auth_refresh.py:124
↓ 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
Function
run_turn
(llm, db, message="Go", state=None, **kwargs)
lib/crewai/tests/agents/test_agent_state.py:137
↓ 16 callers
Method
save_tokens
( self, access_token: str, expires_at: int, refresh_token: str
lib/cli/tests/authentication/test_login_usage.py:246
↓ 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
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
Method
to
(self, path: str)
lib/crewai/tests/telemetry/test_placeholder_traces.py:101
↓ 16 callers
Method
to_dict
Convert to JSON-RPC error object format.
lib/crewai/src/crewai/a2a/errors.py:146
↓ 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
↓ 15 callers
Function
_error_envelope
A 200 body holding only an upstream error, as gateways send it.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:39
↓ 15 callers
Function
_find_latest_non_yanked_version
Return the latest non-prerelease, non-yanked version from PyPI releases.
lib/crewai-core/src/crewai_core/version.py:61
↓ 15 callers
Method
_is_conversational_enabled
(self)
lib/crewai/src/crewai/flow/conversational_mixin.py:1124
↓ 15 callers
Function
_kickoff_patches
(raw: str = "<p>done</p>")
lib/crewai/tests/test_artifacts.py:334
↓ 15 callers
Function
_rec
( content: str = "test", scope: str = "/", categories: list[str] | None = None, importance: fl
lib/crewai/tests/memory/test_qdrant_edge_storage.py:35
↓ 15 callers
Function
_resolve_tools
Resolve tool specs into tool instances or serialized BaseTool dicts. Strings keep the existing shorthand behavior. Dicts are passed through so
lib/crewai/src/crewai/project/json_loader.py:1860
↓ 15 callers
Method
_search
( self, skill_command: SkillCommand, query: str | None, responses: list[httpx.
lib/cli/tests/skills/test_main.py:375
↓ 15 callers
Function
_slack_steps
()
lib/crewai/tests/tools/test_tool_failure.py:107
↓ 15 callers
Method
accept_event
Claim one runner-issued event at the transport boundary. Call before handing off output, including after any queue/delay. This fences
lib/crewai/src/crewai/experimental/flow_turns.py:211
↓ 15 callers
Method
advance
(self, by: timedelta)
lib/crewai-core/tests/test_auth_refresh.py:178
↓ 15 callers
Method
bearers
(self, path: str)
lib/crewai/tests/telemetry/test_placeholder_traces.py:104
↓ 15 callers
Method
create_collection
Create a new collection in Qdrant. Keyword Args: collection_name: Name of the collection to create. Must be unique. v
lib/crewai/src/crewai/rag/qdrant/client.py:122
↓ 15 callers
Method
discard
(self)
lib/crewai/tests/test_flow_from_definition.py:4092
↓ 15 callers
Function
end_execution
End an execution context owned by the current kickoff. Nested kickoffs pass ``None`` and leave the outer uuid in place.
lib/crewai/src/crewai/execution.py:265
↓ 15 callers
Method
execute
(self, sql: str, params: Any = None, **kwargs: Any)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:34
↓ 15 callers
Method
fetchall
(self)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:62
↓ 15 callers
Method
from_checkpoint
Restore a Crew from a checkpoint, ready to resume via kickoff(). Args: config: Checkpoint configuration with ``restore_from`` set
lib/crewai/src/crewai/crew.py:438
↓ 15 callers
Method
from_dict
Create a Fingerprint from a dictionary representation. Args: data: Dictionary representation of a fingerprint Returns:
lib/crewai/src/crewai/security/fingerprint.py:136
↓ 15 callers
Method
from_string
Parse the ``application[/action][@connection_uuid|private]`` syntax. Raises: ValueError: If the selector does not follow the supp
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:30
↓ 15 callers
Method
get_input_tokens_count
Estimate request input tokens with LiteLLM's local tokenizer. LiteLLM does not make a provider request for this calculation. Its toke
lib/crewai/src/crewai/llm.py:824
↓ 15 callers
Method
load
Load all task output records from the database. Returns: List of dictionaries containing task output records, ordered by task_ind
lib/crewai/src/crewai/memory/storage/kickoff_task_outputs_storage.py:175
↓ 15 callers
Function
load_skill_metadata
Load a skill at METADATA disclosure level. Parses SKILL.md frontmatter only and validates directory name. Args: skill_dir: Path to t
lib/crewai/src/crewai/skills/parser.py:95
↓ 15 callers
Method
monotonic
(self)
lib/crewai/tests/cli/authentication/test_login_usage.py:116
↓ 15 callers
Method
pause_live_updates
Pause Live session updates to allow for human input without interference. This stops any active streaming Live session to prevent console ref
lib/crewai/src/crewai/events/utils/console_formatter.py:193
↓ 15 callers
Function
platform_context
Context manager to temporarily set the platform integration token. Args: integration_token: The integration token to set within the context
lib/crewai/src/crewai/context.py:52
↓ 15 callers
Method
recall
Retrieve relevant memories. ``shallow`` embeds the query directly and runs a single vector search. ``deep`` (default) uses the Recall
lib/crewai/src/crewai/memory/unified_memory.py:686
↓ 15 callers
Function
register_before_llm_call_hook
Register a global before_llm_call hook. Global hooks are added to all executors automatically. This is a convenience function for registering
lib/crewai/src/crewai/hooks/llm_hooks.py:229
↓ 15 callers
Function
resolve_tool_failure_policy
Resolve the effective policy for one call. Most specific wins: tool, task, agent, crew, then :attr:`ToolFailurePolicy.WARN`. Callers pass eit
lib/crewai/src/crewai/tools/tool_failure.py:180
↓ 15 callers
Function
safe_get_bounded
GET a URL through :func:`safe_get`, refusing bodies over *max_bytes*. The body is streamed and abandoned as soon as it crosses the limit, so an
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:193
↓ 15 callers
Method
save
(self, *args, **kwargs)
lib/crewai/tests/test_artifacts.py:1015
↓ 15 callers
Function
save_placeholder
(token: str, *, expires_at: datetime = EXPIRES, origin: str = AMP)
lib/cli/tests/authentication/test_placeholder.py:212
↓ 15 callers
Method
stop
Stop the MCP server.
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py:196
↓ 15 callers
Function
validate_jwt_token
Verify a JWT's signature and claims using PyJWT. Args: jwt_token: The JWT (JWS) string to validate. jwks_url: The URL of the JWKS
lib/crewai-core/src/crewai_core/auth/utils.py:13
↓ 14 callers
Function
_count
(n: int)
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:68
↓ 14 callers
Method
_effective_api
Which OpenAI API to actually use for this model. Honours an explicit ``api`` setting, but upgrades to ``"responses"`` for models alre
lib/crewai/src/crewai/llms/providers/openai/completion.py:2237
↓ 14 callers
Method
_emit_stream_chunk_event
Emit stream chunk event. Args: chunk: The text content of the chunk. from_task: The task that initiated the call.
lib/crewai/src/crewai/llms/base_llm.py:916
↓ 14 callers
Method
_initialize_backend_batch
Send batch initialization to backend
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:131
↓ 14 callers
Method
_invoke_after_llm_call_hooks
Invoke after_llm_call hooks for an LLM call that reached the provider. This method should be called by native provider implementations after
lib/crewai/src/crewai/llms/base_llm.py:1316
↓ 14 callers
Function
_load_user_data
Read the user-data JSON file, returning ``{}`` on missing/corrupt.
lib/crewai-core/src/crewai_core/user_data.py:34
↓ 14 callers
Function
_make_list_flow
()
lib/crewai/tests/test_flow.py:2285
↓ 14 callers
Method
_should_defer_trace_finalization
Whether this kickoff should defer final flow trace finalization.
lib/crewai/src/crewai/flow/runtime/__init__.py:515
↓ 14 callers
Function
callable_to_string
Serialize a module-level callable as a ``"module.qualname"`` string. Args: fn: The callable to serialize. Returns: The dotte
lib/crewai/src/crewai/types/callback.py:109
↓ 14 callers
Method
chat
(self)
lib/crewai/tests/test_flow_ask.py:289
↓ 14 callers
Method
close
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 14 callers
Function
created
(token: str = "pat_first", **overrides: object)
lib/cli/tests/authentication/test_placeholder.py:46
↓ 14 callers
Function
discover_skills
Scan a directory for skill directories containing SKILL.md. Loads each discovered skill at METADATA disclosure level. Args: search_p
lib/crewai/src/crewai/skills/loader.py:44
↓ 14 callers
Method
drain_writes
Block until all pending background saves have completed. Called automatically by ``recall()`` and should be called by the crew at shu
lib/crewai/src/crewai/memory/unified_memory.py:355
↓ 14 callers
Method
get_agent
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:377
↓ 14 callers
Function
get_conversion_instructions
Generate conversion instructions based on the model and LLM capabilities. Args: model: A Pydantic model class. llm: The language
lib/crewai/src/crewai/utilities/converter.py:584
↓ 14 callers
Function
get_crewai_tools_dependency
Return the generated-project dependency for CrewAI with tools. Args: current_version: The CrewAI version the range starts at; defaults to
lib/cli/src/crewai_cli/version.py:29
↓ 14 callers
Method
insert
(self, index: int, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:48
↓ 14 callers
Function
is_interactive
Prompt only in an interactive terminal, never in non-interactive mode.
lib/cli/src/crewai_cli/input_prompt.py:49
↓ 14 callers
Function
llm_call_context
Context manager that establishes an LLM call scope with a unique call_id.
lib/crewai/src/crewai/llms/base_llm.py:163
↓ 14 callers
Function
provider_env
Only ``env`` and the provider's non-key settings; nothing from the real env.
lib/crewai/tests/llms/test_missing_api_key.py:103
↓ 14 callers
Method
query
(self, *args: Any, **kwargs: Any)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:102
↓ 14 callers
Function
sanitize_scope_name
Sanitize a name for use in hierarchical scope paths. Converts to lowercase, replaces non-alphanumeric chars (except underscore and hyphen) wi
lib/crewai/src/crewai/memory/utils.py:8
↓ 14 callers
Method
start
Start the MCP server and initialize the tools.
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py:192
↓ 14 callers
Function
telemetry_session
Capture a crew or flow using the enterprise event/session lifecycle. Hosts supply verified identity, collectors, resources, span processors,
lib/crewai/src/crewai/telemetry/tracing/session.py:293
↓ 14 callers
Method
tool_names
(self, call: int = 0)
lib/crewai/tests/agents/test_agent_spreadsheets.py:139
↓ 13 callers
Function
_build_crew
(policy: ToolFailurePolicy | None = None, **task_kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:119
↓ 13 callers
Method
_chunk_text
Split text into chunks of ``chunk_size`` that overlap by ``chunk_overlap``. Stops once a chunk reaches the end of the text, so the last chunk
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:43
↓ 13 callers
Method
_evaluate_now
AMP evaluates the run; this thread only carries the answers back.
lib/cli/src/crewai_cli/crew_run_tui.py:1657
↓ 13 callers
Method
_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:373
↓ 13 callers
Function
_is_version_yanked
Return ``(yanked, reason)`` for ``version_str`` against PyPI releases.
lib/crewai-core/src/crewai_core/version.py:91
↓ 13 callers
Function
_make_tar_gz
Build an in-memory .tar.gz containing the given filename → content mapping.
lib/crewai/tests/skills/test_cache.py:16
↓ 13 callers
Function
_mock_get
(monkeypatch: pytest.MonkeyPatch, get_response: Any)
lib/crewai-tools/tests/utilities/test_safe_requests.py:137
↓ 13 callers
Method
_require_memory
Return the bound ``Memory`` or raise a clear error if missing.
lib/crewai/src/crewai/memory/memory_scope.py:79
↓ 13 callers
Function
_review_llm
(*responses: Any, function_calling: bool = True)
lib/crewai/tests/test_human_feedback_decorator.py:920
↓ 13 callers
Method
_run
(self, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/tools/vision_tool/vision_tool.py:139
↓ 13 callers
Function
_run_learning_flow
Kick off a one-step learn=True flow whose method returns ``output``.
lib/crewai/tests/test_human_feedback_decorator.py:927
↓ 13 callers
Method
_usage_to_dict
Convert a provider usage object to a plain dict and flatten the cache/reasoning sub-counts that LiteLLM nests under provider-specific
lib/crewai/src/crewai/llm.py:2250
↓ 13 callers
Function
_write
(tmp_path: Path, contents: str)
lib/cli/tests/test_run_declarative_flow.py:263
↓ 13 callers
Function
_write_json_checkpoint
( base_dir: str, branch: str = "main", name: str | None = None, data: str | None = None, t
lib/crewai/tests/test_checkpoint_cli.py:73
↓ 13 callers
Method
add
Add a tool result to the cache. Declared failures are never stored: replaying one would make a transient error permanent for the rest
lib/crewai/src/crewai/agents/cache/cache_handler.py:23
↓ 13 callers
Function
at_a_terminal
A person at a terminal who gives ANSWERS, in order; returns the prompts. Call it in the test itself: pytest swaps `sys.stdout` after fixtures run
lib/cli/tests/test_run_usage.py:1320
↓ 13 callers
Function
calls
(*specs)
lib/crewai/tests/agents/test_agent_state.py:59
↓ 13 callers
Method
clear
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1248
↓ 13 callers
Function
create_test_png
Create a minimal valid PNG for testing.
lib/crewai-files/tests/processing/test_transformers.py:24
↓ 13 callers
Function
download_skill
Download a skill from the registry and store it in the cache. Args: org: Organisation slug. name: Skill name. source: Opt
lib/crewai/src/crewai/skills/registry.py:275
← previous
next →
301–400 of 20,483, ranked by callers