Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,938 in github.com/crewAIInc/crewAI
⨍
Functions
13,938
◇
Types & classes
2,826
↳
Endpoints
792
↓ 4 callers
Method
_claim_usage
Atomically check max usage and increment the counter. Returns: None if usage was claimed, otherwise a :class:`ToolFailure`. A
lib/crewai/src/crewai/tools/base_tool.py:302
↓ 4 callers
Function
_coerce_int
(value: Any)
lib/crewai/src/crewai/types/usage_metrics.py:13
↓ 4 callers
Function
_common_attributes
Build the process-wide span attributes with a stubbed project id.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:522
↓ 4 callers
Method
_complete_step
(self, style: str, message: str, detail: str = "")
lib/cli/src/crewai_cli/crew_run_tui.py:1750
↓ 4 callers
Function
_condition_branches
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/runtime/__init__.py:165
↓ 4 callers
Method
_convert_tools_for_interference
Convert tools to a format that can be used for interference. Args: tools: List of tools to convert. Returns:
lib/crewai/src/crewai/llms/base_llm.py:423
↓ 4 callers
Function
_copy_method_metadata
Copy metadata from original function to wrapper. Args: wrapper: The wrapper object to copy metadata to original: The original fun
lib/crewai/src/crewai/hooks/wrappers.py:15
↓ 4 callers
Method
_copy_state
Create a copy of the current state. Returns: A copy of the current state
lib/crewai/src/crewai/flow/runtime/__init__.py:1715
↓ 4 callers
Function
_create_hook_decorator
Create a hook decorator with filtering support. This factory function eliminates code duplication across the four hook decorators. Args:
lib/crewai/src/crewai/hooks/decorators.py:18
↓ 4 callers
Method
_create_mock_plan_response
Helper to create mock plan response.
lib/crewai/tests/utilities/test_structured_planning.py:508
↓ 4 callers
Method
_create_tasks_summary
Creates a summary of all tasks. Returns: A string summarizing all tasks with their details.
lib/crewai/src/crewai/utilities/planning_handler.py:137
↓ 4 callers
Function
_definition_condition_parts
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/visualization/builder.py:34
↓ 4 callers
Function
_delegate_to_a2a
Delegate to A2A agent with multi-turn conversation support. Args: self: The agent instance agent_response: The AgentResponse indi
lib/crewai/src/crewai/a2a/wrapper.py:1231
↓ 4 callers
Method
_deployment_page_url
Build the deployment show URL, resolving UUID-only responses if needed.
lib/cli/src/crewai_cli/deploy/main.py:242
↓ 4 callers
Method
_display_deployment_info
Display deployment information. Args: json_response (Dict[str, Any]): The deployment information to display.
lib/cli/src/crewai_cli/deploy/main.py:192
↓ 4 callers
Method
_ensure_scope_index
Create a BTREE scalar index on the ``scope`` column if not present. A scalar index lets LanceDB skip a full table scan when filtering by
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:183
↓ 4 callers
Method
_enter_runtime_scope
(self)
lib/crewai/src/crewai/events/event_bus.py:318
↓ 4 callers
Method
_execute_first_tool
Execute the first tool from the tool_uses list and return its result. This is used when available_functions is provided, to directly execute
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1355
↓ 4 callers
Function
_execute_uv_script
Execute a project script through uv. Args: script_name: The project script to run. entity_type: The user-facing entity being run.
lib/cli/src/crewai_cli/run_crew.py:750
↓ 4 callers
Method
_exit_runtime_scope
(self, outermost: bool)
lib/crewai/src/crewai/events/event_bus.py:331
↓ 4 callers
Method
_extract_azure_token_usage
Extract token usage and response metadata from Azure response.
lib/crewai/src/crewai/llms/providers/azure/completion.py:1338
↓ 4 callers
Method
_extract_builtin_tool_outputs
Extract and parse all built-in tool outputs from Responses API. Parses web_search, file_search, code_interpreter, computer_use, and r
lib/crewai/src/crewai/llms/providers/openai/completion.py:1550
↓ 4 callers
Method
_extract_finish_reason_and_id
Extract raw finish_reason (``stopReason``) from a Bedrock Converse response dict. Defensive — returns (None, None) on any failure. Be
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:2026
↓ 4 callers
Method
_extract_reasoning_items
Extract reasoning items with encrypted content from response. Used for ZDR (Zero Data Retention) compliance to capture encrypted reas
lib/crewai/src/crewai/llms/providers/openai/completion.py:1669
↓ 4 callers
Method
_extract_responses_finish_reason_and_id
Extract finish_reason and response_id from an OpenAI Responses API ``Response`` object. The Responses API exposes ``status`` rather th
lib/crewai/src/crewai/llms/providers/openai/completion.py:2701
↓ 4 callers
Method
_finalize_backend_batch
Send batch finalization to backend Args: events_count: Number of events that were successfully sent
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:384
↓ 4 callers
Method
_format_feedback_message
Format feedback as a message.
lib/crewai/src/crewai/core/providers/human_input.py:46
↓ 4 callers
Method
_get_async_client
Get or create the async OpenAI client.
lib/crewai-files/src/crewai_files/uploaders/openai.py:178
↓ 4 callers
Method
_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:290
↓ 4 callers
Function
_get_cache_file
Return the path to the version cache file, creating the dir if needed.
lib/crewai-core/src/crewai_core/version.py:42
↓ 4 callers
Method
_get_client
Get or create the S3 client.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:159
↓ 4 callers
Method
_get_client
Get or create the Anthropic client.
lib/crewai-files/src/crewai_files/uploaders/anthropic.py:48
↓ 4 callers
Method
_get_client_params
Get client parameters for compatibility with base class. Note: This method is kept for compatibility but the Google Gen AI SDK uses a
lib/crewai/src/crewai/llms/providers/gemini/completion.py:241
↓ 4 callers
Function
_get_collection_params
Extract collection creation parameters from kwargs.
lib/crewai/src/crewai/rag/qdrant/utils.py:87
↓ 4 callers
Method
_get_domain
(self)
lib/crewai-core/src/crewai_core/auth/providers/workos.py:33
↓ 4 callers
Method
_get_output_format
(self)
lib/crewai/src/crewai/task.py:1243
↓ 4 callers
Function
_get_prompt
Retrieve a memory prompt from the i18n translations. Args: key: The prompt key under the "memory" section. Returns: The prom
lib/crewai/src/crewai/memory/analyze.py:143
↓ 4 callers
Function
_get_providers_from_cache
Get unique provider names from cache entries. Args: cache: The upload cache. Returns: Set of provider names.
lib/crewai-files/src/crewai_files/cache/cleanup.py:173
↓ 4 callers
Method
_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:285
↓ 4 callers
Method
_get_user_context
Extract user context for tracing.
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:194
↓ 4 callers
Function
_get_video_duration
Get video duration in seconds using av if available. Args: content: Raw video bytes. content_type: Optional MIME type for format
lib/crewai-files/src/crewai_files/processing/validators.py:115
↓ 4 callers
Method
_handle_tool_call
Handle a tool call from the LLM. Args: tool_calls: List of tool calls from the LLM available_functions: Dict of avail
lib/crewai/src/crewai/llm.py:1734
↓ 4 callers
Function
_import_docling
Import docling submodules lazily and cache the result. Raises: ImportError: If the docling package is not installed.
lib/crewai/src/crewai/knowledge/source/crew_docling_source.py:38
↓ 4 callers
Method
_increment_usage_count
Increment the usage count.
lib/crewai/src/crewai/tools/structured_tool.py:457
↓ 4 callers
Method
_initialize_batch
Initialize trace batch - auto-enable ephemeral for first-time users. Args: user_context: User context information. ex
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:876
↓ 4 callers
Function
_inject_metadata
Inject merged metadata into call details.
lib/crewai/src/crewai/a2a/utils/delegation.py:697
↓ 4 callers
Method
_interpolate_inputs
Interpolates the inputs in the tasks and agents.
lib/crewai/src/crewai/crew.py:2175
↓ 4 callers
Function
_is_async_embedding_function
Type guard to check if the embedding function is async. Args: func: The embedding function to check. Returns: True if the fu
lib/crewai/src/crewai/rag/qdrant/utils.py:73
↓ 4 callers
Function
_is_prerelease
Check if a version string represents a pre-release.
lib/devtools/src/crewai_devtools/cli.py:731
↓ 4 callers
Function
_is_pydantic_model_class
Check if an object is a Pydantic model class. This distinguishes between Pydantic model classes that support structured outputs (have model_j
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:90
↓ 4 callers
Function
_is_regular_file
Return True for regular files, excluding symlinks to files.
lib/cli/src/crewai_cli/deploy/archive.py:108
↓ 4 callers
Method
_make_agent
(self, role: str, llm: BaseLLM)
lib/crewai/tests/agents/test_lite_agent.py:1180
↓ 4 callers
Method
_make_batch_manager
Create a TraceBatchManager with a pre-set trace_batch_id.
lib/crewai/tests/tracing/test_tracing.py:1489
↓ 4 callers
Function
_make_checkpoint_data
( tasks_completed: int = 2, tasks_total: int = 4, trigger: str = "task_completed", branch: str
lib/crewai/tests/test_checkpoint_cli.py:28
↓ 4 callers
Function
_make_cursor_with_rows
(rows: list[tuple])
lib/crewai-tools/tests/tools/test_db2_search_tool.py:94
↓ 4 callers
Function
_make_started
Build a MethodExecutionStartedEvent with explicit ids/sequence.
lib/crewai/tests/events/test_event_replay.py:16
↓ 4 callers
Method
_model_not_found_message
Build a 404 message that says what to do about it. OpenAI's own wording ("This is not a chat model") doesn't make the fix obvious, so
lib/crewai/src/crewai/llms/providers/openai/completion.py:1710
↓ 4 callers
Method
_multimodal_formatter_name
(self)
lib/crewai/src/crewai/llm.py:2253
↓ 4 callers
Method
_parse_args
Parse and validate the input arguments against the schema. Args: raw_args: The raw arguments to parse, either as a string or dict
lib/crewai/src/crewai/tools/structured_tool.py:356
↓ 4 callers
Method
_payload_to_record
Reconstruct a MemoryRecord from a Qdrant payload.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:216
↓ 4 callers
Method
_poll_for_token
Poll the token endpoint until authentication completes or times out.
lib/crewai-core/src/crewai_core/auth/oauth2.py:127
↓ 4 callers
Function
_prepare_entities
Capture execution context and sync checkpoint fields on each entity. Args: root: List of entities to prepare for serialization.
lib/crewai/src/crewai/state/runtime.py:500
↓ 4 callers
Method
_prepare_tools
( self, agent: BaseAgent, task: Task, tools: list[BaseTool] )
lib/crewai/src/crewai/crew.py:1635
↓ 4 callers
Function
_preprocess_structured_data
Preprocess structured data to handle common LLM output format issues. Some models (especially Claude on Bedrock) may return array fields as m
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:53
↓ 4 callers
Method
_print_current_organization
(self)
lib/cli/src/crewai_cli/tools/main.py:361
↓ 4 callers
Method
_process_task_result
(self, task: Task, output: TaskOutput)
lib/crewai/src/crewai/crew.py:1866
↓ 4 callers
Method
_refresh_log_panel
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1153
↓ 4 callers
Function
_render_json_crew_template
( template_name: str, replacements: dict[str, str] | None = None )
lib/cli/src/crewai_cli/create_json_crew.py:823
↓ 4 callers
Function
_resolve_python_ref
( value: Any, source: str | Path, *, expected: str, project_root: Path | None, )
lib/crewai/src/crewai/project/json_loader.py:647
↓ 4 callers
Method
_resolve_repo_name
Resolve user input to a full repo name, or None if not found.
lib/cli/src/crewai_cli/remote_template/main.py:187
↓ 4 callers
Method
_retry_operation
Retry an operation with exponential backoff. Args: operation: Async operation to retry. timeout: Operation timeout in
lib/crewai/src/crewai/mcp/client.py:683
↓ 4 callers
Method
_row_to_record
(self, row: dict[str, Any])
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:264
↓ 4 callers
Method
_run
Write *content* to *filename*, confined to the tool's sandbox.
lib/crewai-tools/src/crewai_tools/tools/file_writer_tool/file_writer_tool.py:97
↓ 4 callers
Method
_run_crew_with_payload
Run the crew with the trigger payload using the run_with_trigger method.
lib/cli/src/crewai_cli/triggers/main.py:124
↓ 4 callers
Method
_select_tool
(self, tool_name: str)
lib/crewai/src/crewai/tools/tool_usage.py:798
↓ 4 callers
Function
_set_task_fingerprint
Set task identity and fingerprint data on an event.
lib/crewai/src/crewai/events/types/task_events.py:7
↓ 4 callers
Function
_setup_before_llm_call_hooks
Setup and invoke before_llm_call hooks for the executor context. Args: executor_context: The executor context to setup the hooks for.
lib/crewai/src/crewai/utilities/agent_utils.py:1874
↓ 4 callers
Method
_setup_messages
Set up messages for the agent execution.
lib/crewai/src/crewai/experimental/agent_executor.py:310
↓ 4 callers
Method
_should_observe_steps
Whether to run PlannerObserver LLM calls after each step. Explicit ``observe_steps=False`` disables observation at any effort level.
lib/crewai/src/crewai/experimental/agent_executor.py:553
↓ 4 callers
Method
_spinner
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1200
↓ 4 callers
Function
_supports_native_structured_outputs
Check if the model supports native structured outputs. Native structured outputs are only available for Claude 4.5 models (Sonnet 4.5, Opus 4
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:73
↓ 4 callers
Function
_tar_from_members
Build an in-memory tar archive via `build(tf)` and return it for reading.
lib/crewai/tests/skills/test_cache.py:40
↓ 4 callers
Method
_tick
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:1182
↓ 4 callers
Function
_tool_use_blocks
(blocks: list[Any])
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:172
↓ 4 callers
Function
_tool_use_id
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:176
↓ 4 callers
Method
_try_parse_step_observation
Parse streamed observation JSON and update the exact step it names.
lib/cli/src/crewai_cli/crew_run_tui.py:1889
↓ 4 callers
Method
_untrack_key
Remove key tracking for a provider.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:145
↓ 4 callers
Function
_uuid_to_point_id
Convert a UUID string to a stable Qdrant point ID. Falls back to hashing for non-UUID strings.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:52
↓ 4 callers
Method
_validate_kwargs
Validate keyword arguments against args_schema if present. Args: kwargs: The keyword arguments to validate. Returns:
lib/crewai/src/crewai/tools/base_tool.py:279
↓ 4 callers
Function
_write_local_skill
Write a project-local ./skills/<name>/SKILL.md under *tmp_path*.
lib/crewai/tests/skills/test_registry.py:63
↓ 4 callers
Method
acall
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:385
↓ 4 callers
Function
aget_all_files
Get merged crew and task files asynchronously. Task files override crew files with the same name. Args: crew_id: Unique identifier f
lib/crewai/src/crewai/utilities/file_store.py:154
↓ 4 callers
Method
aget_all_for_provider
Get all cached uploads for a provider. Args: provider: The provider name. Returns: List of cached uploads fo
lib/crewai-files/src/crewai_files/cache/upload_cache.py:383
↓ 4 callers
Method
animateEdgeStyles
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1037
↓ 4 callers
Method
animateNodeOpacity
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1000
↓ 4 callers
Method
aquery
Query across all knowledge sources asynchronously. Args: query: List of query strings. results_limit: Maximum number
lib/crewai/src/crewai/knowledge/knowledge.py:167
↓ 4 callers
Function
assert_event_count
( mock_emit, expected_completed_tool_call: int = 0, expected_stream_chunk: int = 0, expected_c
lib/crewai/tests/test_llm.py:482
↓ 4 callers
Function
call_stream_override
Override streaming for ``llm`` within the current call scope.
lib/crewai/src/crewai/llms/base_llm.py:127
↓ 4 callers
Function
clear_all
Clear all global hooks across every interception point.
lib/crewai/src/crewai/hooks/dispatch.py:142
↓ 4 callers
Method
clear_tokens
Remove the stored token file (no-op if absent).
lib/crewai-core/src/crewai_core/token_manager.py:80
← previous
next →
801–900 of 13,938, ranked by callers