Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,008 in github.com/crewAIInc/crewAI
⨍
Functions
13,008
◇
Types & classes
2,676
↳
Endpoints
753
↓ 4 callers
Method
scope
Return a scoped view of this memory.
lib/crewai/src/crewai/memory/unified_memory.py:898
↓ 4 callers
Function
serialize_guardrail_for_json
Serialize a single guardrail value for JSON checkpointing. String descriptions are preserved; callable references cannot be JSON-serialized a
lib/crewai/src/crewai/utilities/guardrail.py:12
↓ 4 callers
Function
serialize_guardrails_for_json
Serialize a guardrails value (single or sequence) for JSON checkpointing. Dropped callables are filtered out of lists rather than emitted as ``No
lib/crewai/src/crewai/utilities/guardrail.py:34
↓ 4 callers
Function
serialize_model_class
Serialize a ``type[BaseModel]`` field value as its JSON schema. Args: value: A ``type[BaseModel]`` subclass, ``None``, or another union m
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:785
↓ 4 callers
Method
set_tracer
Install our TracerProvider as the global one (idempotent).
lib/crewai-core/src/crewai_core/telemetry.py:147
↓ 4 callers
Function
should_auto_collect_first_time_traces
True if we should auto-collect traces for first-time user. Returns: True if first-time user AND telemetry not disabled AND tracing not ex
lib/crewai/src/crewai/events/listeners/tracing/utils.py:444
↓ 4 callers
Method
skill
Return a portable Markdown skill for authoring Flow declarations.
lib/crewai/src/crewai/flow/flow_definition.py:853
↓ 4 callers
Method
switch
(self, org_id: str)
lib/cli/src/crewai_cli/organization/main.py:53
↓ 4 callers
Function
update_template_dependencies
Update crewai dependency versions in CLI template pyproject.toml files. Uses simple string replacement instead of TOML parsing because templa
lib/devtools/src/crewai_devtools/cli.py:649
↓ 4 callers
Function
validate_model
Validate and convert a JSON string to a Pydantic model or dict. Args: result: The JSON string to validate and convert. model: The
lib/crewai/src/crewai/utilities/converter.py:261
↓ 4 callers
Function
validate_text
Validate a text file against general constraints. Args: file: The text file to validate. constraints: Provider constraints to val
lib/crewai-files/src/crewai_files/processing/validators.py:445
↓ 4 callers
Function
wrap_file_source
Wrap a FileSource in the appropriate typed FileInput wrapper. Args: source: The file source to wrap. Returns: Typed FileInpu
lib/crewai-files/src/crewai_files/resolution/utils.py:19
↓ 3 callers
Method
__init__
Initialize the exception. Args: message: Error message describing the issue. file_name: Optional name of the file tha
lib/crewai-files/src/crewai_files/processing/exceptions.py:25
↓ 3 callers
Method
__init__
(self, **data: Any)
lib/crewai/src/crewai/events/types/task_events.py:55
↓ 3 callers
Method
_acquire_sandbox
Return (sandbox, should_delete_after_use).
lib/crewai-tools/src/crewai_tools/tools/daytona_sandbox_tool/daytona_base_tool.py:147
↓ 3 callers
Method
_acquire_sandbox
Return (sandbox, should_kill_after_use).
lib/crewai-tools/src/crewai_tools/tools/e2b_sandbox_tool/e2b_base_tool.py:147
↓ 3 callers
Function
_afetch_agent_card_impl
Internal async implementation of AgentCard fetching.
lib/crewai/src/crewai/a2a/utils/agent_card.py:237
↓ 3 callers
Function
_agent_class_from_definition
( defn: dict[str, Any], source: str | Path, *, resolve_python_refs: bool = True, project_r
lib/crewai/src/crewai/project/json_loader.py:864
↓ 3 callers
Method
_aggregate_agent_results
( self, agent_id: str, agent_role: str, results: Sequence[AgentEvaluationResul
lib/crewai/src/crewai/experimental/evaluation/evaluation_display.py:250
↓ 3 callers
Method
_ainvoke_loop
Re-run the executor flow asynchronously using feedback messages.
lib/crewai/src/crewai/experimental/agent_executor.py:3203
↓ 3 callers
Method
_alocked
Async cross-process lock that acquires/releases in an executor.
lib/crewai/src/crewai/rag/chromadb/client.py:83
↓ 3 callers
Method
_aprocess_async_tasks
Process pending async tasks and return their outputs.
lib/crewai/src/crewai/crew.py:1413
↓ 3 callers
Method
_bind_runtime_state
(self, *event_dicts: dict[str, object])
lib/crewai/tests/events/test_event_context.py:192
↓ 3 callers
Method
_build_route_catalog
( self, router_config: RouterConfig | None, )
lib/crewai/src/crewai/experimental/conversational_mixin.py:1025
↓ 3 callers
Method
_chain_lineage
Update lineage fields after a successful checkpoint write. Sets ``_checkpoint_id`` and ``_parent_id`` so the next write records the c
lib/crewai/src/crewai/state/runtime.py:216
↓ 3 callers
Method
_check_usage_limit
Check if tool has reached its usage limit. Args: tool: The tool to check tool_name: The name of the tool (used for er
lib/crewai/src/crewai/tools/tool_usage.py:741
↓ 3 callers
Method
_clear_or_listeners
Clear fired OR listeners for cyclic flows.
lib/crewai/src/crewai/flow/runtime/__init__.py:992
↓ 3 callers
Method
_clear_scroll
(self, tab_id: str)
lib/cli/src/crewai_cli/checkpoint_tui.py:474
↓ 3 callers
Method
_coerce_llm
(llm: str | BaseLLM | Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1174
↓ 3 callers
Method
_collapse_plan_on_task_done
Collapse unfinished display-only plan steps once the task succeeds.
lib/cli/src/crewai_cli/crew_run_tui.py:1822
↓ 3 callers
Function
_compute_file_hash
Compute SHA-256 hash of file content. Uses streaming for FilePath sources to avoid loading large files into memory.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:75
↓ 3 callers
Method
_conversation_flow_definition
(self)
lib/crewai/src/crewai/experimental/conversational_mixin.py:777
↓ 3 callers
Method
_crew
(self, **crew_kwargs)
lib/crewai/tests/test_tool_cache_default.py:229
↓ 3 callers
Method
_current_usage_summary
Snapshot the cumulative usage counters backing this agent's LLM. The counters live on the LLM instance (or the agent's token process
lib/crewai/src/crewai/agent/core.py:1705
↓ 3 callers
Function
_detect_location
Resolve the default checkpoint location. When the caller passes the default directory path, check whether a SQLite database exists at the con
lib/cli/src/crewai_cli/checkpoint_cli.py:65
↓ 3 callers
Method
_drain_memory_writes
Block until all pending background memory saves have completed. Covers the crew memory, per-agent memories, and the manager agent's m
lib/crewai/src/crewai/crew.py:1865
↓ 3 callers
Function
_ensure_dir_mode
Tighten a dedicated config directory to 0o700. Skips directories shared with other users or content (the system temp dir and the current work
lib/crewai-core/src/crewai_core/settings.py:29
↓ 3 callers
Function
_ensure_handlers_registered
Register checkpoint handlers on the event bus once, lazily.
lib/crewai/src/crewai/state/checkpoint_listener.py:43
↓ 3 callers
Method
_ensure_indexes
Create payload indexes for efficient filtering.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:163
↓ 3 callers
Function
_entity_icon
(etype: str)
lib/cli/src/crewai_cli/checkpoint_tui.py:114
↓ 3 callers
Function
_ephemeral_user
(text: str)
lib/crewai/tests/llms/anthropic/test_anthropic.py:956
↓ 3 callers
Method
_execute_listeners
Executes all listeners and routers triggered by a method completion. This internal method manages the execution flow by: 1. First exe
lib/crewai/src/crewai/flow/runtime/__init__.py:2832
↓ 3 callers
Method
_execute_start_method
Executes a flow's start method and its triggered listeners. This internal method handles the execution of methods marked with @start
lib/crewai/src/crewai/flow/runtime/__init__.py:2506
↓ 3 callers
Method
_execute_tasks
Executes tasks sequentially and returns the final output. Args: tasks (List[Task]): List of tasks to execute manager
lib/crewai/src/crewai/crew.py:1536
↓ 3 callers
Function
_expect_object
(value: Any, source: str | Path)
lib/crewai/src/crewai/project/json_loader.py:602
↓ 3 callers
Method
_export_output
( self, result: str | BaseModel )
lib/crewai/src/crewai/task.py:1174
↓ 3 callers
Method
_extract_chat_finish_reason_and_id
ChatCompletion / ChatCompletionChunk share the choices-shape; delegate to the shared extractor.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2459
↓ 3 callers
Method
_extract_claude_tool_result_ids
(message: LLMMessage)
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:295
↓ 3 callers
Method
_extract_finish_reason_and_id
Azure ``ChatCompletions`` / ``StreamingChatCompletionsUpdate`` share the choices-shape; delegate to the shared extractor.
lib/crewai/src/crewai/llms/providers/azure/completion.py:1329
↓ 3 callers
Method
_extract_thinking_block
Extract and format thinking block from content block. Args: content_block: Content block from Anthropic response Returns
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:581
↓ 3 callers
Method
_fetch_all_available_columns
Fetch columns for *table_name* using a parameterised query. The table name is bound via SQLAlchemy's ``:param`` syntax to prevent SQL
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:407
↓ 3 callers
Function
_fetch_openai_compatible
Parse an OpenAI-shaped ``GET /models`` response.
lib/cli/src/crewai_cli/model_catalog.py:223
↓ 3 callers
Function
_filter_methods
Filter methods by attribute presence, preserving exact callable types. Args: methods: Dictionary of methods to filter. attribute:
lib/crewai/src/crewai/project/crew_base.py:416
↓ 3 callers
Function
_format_json_in_text
Find JSON objects/arrays in text and pretty-print them.
lib/cli/src/crewai_cli/crew_run_tui.py:102
↓ 3 callers
Method
_format_messages_for_gemini
Format messages for Gemini API. Gemini has specific requirements: - System messages are separate system_instruction - Content
lib/crewai/src/crewai/llms/providers/gemini/completion.py:548
↓ 3 callers
Method
_format_messages_for_provider
Format messages according to provider requirements. Args: messages: List of message dictionaries with 'role' and 'content' keys.
lib/crewai/src/crewai/llm.py:2304
↓ 3 callers
Method
_format_prompt
Format prompt template with input values. Args: prompt: Template string. inputs: Values to substitute. Retur
lib/crewai/src/crewai/experimental/agent_executor.py:3116
↓ 3 callers
Function
_format_size
(size: int)
lib/cli/src/crewai_cli/checkpoint_cli.py:193
↓ 3 callers
Method
_format_tools_for_converse
Convert CrewAI tools to Converse API format following AWS specification.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1974
↓ 3 callers
Function
_generate_release_notes
Generate, display, and optionally edit release notes. Args: version: Version being released. tag_name: Tag name for the release.
lib/devtools/src/crewai_devtools/cli.py:934
↓ 3 callers
Method
_get_agent_backstory
Safely gets the agent's backstory, providing a default if not available. Returns: The agent's backstory or a default value.
lib/crewai/src/crewai/utilities/reasoning_handler.py:490
↓ 3 callers
Function
_get_click_requirement_from_pyproject
Parse the click requirement directly from a pyproject.toml file.
lib/cli/tests/test_click_compatibility.py:24
↓ 3 callers
Function
_get_file_path
Get the filesystem path if file source is FilePath. Args: file: The file input to check. Returns: Path if source is FilePath
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:52
↓ 3 callers
Function
_get_generic_system_id
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:320
↓ 3 callers
Method
_get_headers
(self, organization_id: str | None = None)
lib/crewai-tools/src/crewai_tools/tools/generate_crewai_automation_tool/generate_crewai_automation_tool.py:62
↓ 3 callers
Method
_get_inference_config
Get inference configuration following AWS Converse API specification.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2005
↓ 3 callers
Method
_get_knowledge_search_query
Generate a search query for the knowledge base based on the task description.
lib/crewai/src/crewai/agent/core.py:1320
↓ 3 callers
Function
_get_linux_machine_id
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:284
↓ 3 callers
Method
_get_max_replans
Get max replans from planning config or default to 3.
lib/crewai/src/crewai/experimental/agent_executor.py:522
↓ 3 callers
Function
_get_project_attribute
Look up a dotted attribute path inside ``pyproject_path``. The file must declare ``crewai`` in ``[project].dependencies`` for the lookup to s
lib/crewai-core/src/crewai_core/project.py:150
↓ 3 callers
Method
_get_reasoning_effort
Get the reasoning effort level from the agent's planning config. Returns: The reasoning effort level: "low", "medium", or "high".
lib/crewai/src/crewai/experimental/agent_executor.py:508
↓ 3 callers
Function
_get_server_config
Get A2AServerConfig from an agent's a2a configuration. Args: agent: The Agent instance to check. Returns: A2AServerConfig if
lib/crewai/src/crewai/a2a/utils/agent_card.py:83
↓ 3 callers
Function
_getattr_for
Build a getattr side_effect that resolves the patched tool name to ``tool_cls`` while delegating every other lookup (e.g. the ``is_deprecated_
lib/crewai-tools/tests/test_generate_tool_specs.py:11
↓ 3 callers
Method
_has_existing_data
True when either shard already holds persisted records.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:187
↓ 3 callers
Function
_has_poetry_lockfile
Return True when the project has a Poetry lockfile.
lib/cli/src/crewai_cli/run_crew.py:386
↓ 3 callers
Function
_has_uv_lockfile
Return True when the project has a uv lockfile.
lib/cli/src/crewai_cli/run_crew.py:380
↓ 3 callers
Function
_is_chat_model
Heuristically reject embedding/audio/image/etc. models by their id.
lib/cli/src/crewai_cli/model_catalog.py:483
↓ 3 callers
Method
_is_conversational
(cls)
lib/crewai/src/crewai/experimental/conversational_mixin.py:793
↓ 3 callers
Method
_is_conversational_enabled
(self)
lib/crewai/src/crewai/experimental/conversational_mixin.py:797
↓ 3 callers
Function
_is_conversational_flow
(flow_class: type)
lib/crewai/src/crewai/flow/dsl/_utils.py:57
↓ 3 callers
Function
_is_interactive
()
lib/cli/src/crewai_cli/tui_picker.py:22
↓ 3 callers
Function
_is_relative_to
(path: Path, root: Path)
lib/crewai/src/crewai/project/json_loader.py:837
↓ 3 callers
Function
_is_test_environment
Detect if we're running in a test environment.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:186
↓ 3 callers
Function
_json_schema_valid
Return True if *instance* validates against *schema*.
lib/crewai/tests/a2a/extensions/test_a2ui_schema_conformance.py:25
↓ 3 callers
Method
_locked
Return a cross-process lock context manager, or nullcontext if no lock name.
lib/crewai/src/crewai/rag/chromadb/client.py:78
↓ 3 callers
Method
_login_to_tool_repository
(self)
lib/cli/src/crewai_cli/authentication/main.py:27
↓ 3 callers
Function
_looks_like_windows_absolute_path
(value: str)
lib/crewai/src/crewai/project/json_loader.py:1792
↓ 3 callers
Method
_make_agent_state
(self)
lib/crewai/tests/test_checkpoint.py:656
↓ 3 callers
Method
_make_batch_manager
Create a TraceBatchManager with a pre-set trace_batch_id (simulating first-time user).
lib/crewai/tests/tracing/test_tracing.py:1076
↓ 3 callers
Function
_make_formatter
(monkeypatch)
lib/crewai/tests/utilities/test_console_formatter_tui_mode.py:9
↓ 3 callers
Method
_make_handler_with_manager
Create a FirstTimeTraceHandler wired to a TraceBatchManager.
lib/crewai/tests/tracing/test_tracing.py:1324
↓ 3 callers
Function
_make_key
Create a cache key from file hash and provider.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:55
↓ 3 callers
Method
_make_messages_for_n_chunks
Build a message list that will produce exactly *n* chunks. Each message has 400 chars (~100 tokens). With max_tokens=100 returned by
lib/crewai/tests/utilities/test_agent_utils.py:698
↓ 3 callers
Method
_mark_todo_running
(self, todo: TodoItem)
lib/crewai/src/crewai/experimental/agent_executor.py:441
↓ 3 callers
Function
_merge_flow_method_definition
( wrapper: FlowMethod[P, R], definition: FlowMethodDefinition, )
lib/crewai/src/crewai/flow/dsl/_utils.py:109
↓ 3 callers
Function
_module_is_project_local
(module: Any, project_root: Path)
lib/crewai/src/crewai/project/json_loader.py:825
↓ 3 callers
Method
_observe_completed_step
Observe a completed step via LLM or a lightweight heuristic.
lib/crewai/src/crewai/experimental/agent_executor.py:569
↓ 3 callers
Method
_open_deployment_page
Open the deployment show page in the user's browser when possible.
lib/cli/src/crewai_cli/deploy/main.py:220
↓ 3 callers
Method
_open_shard
Open an existing shard or create a new one at *path*.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:153
↓ 3 callers
Function
_poll_pr_until_merged
Poll a GitHub PR until it is merged. Exit if closed without merging. Args: branch_name: Branch name to look up the PR. label: Hum
lib/devtools/src/crewai_devtools/cli.py:830
← previous
next →
901–1,000 of 13,008, ranked by callers