Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
↓ 6 callers
Function
handle_unknown_error
Handle unknown errors by informing the user. Args: printer: Printer instance for output exception: The exception that occurred
lib/crewai/src/crewai/utilities/agent_utils.py:931
↓ 6 callers
Function
has_user_declined_tracing
Return True if the user has explicitly declined trace collection.
lib/crewai-core/src/crewai_core/user_data.py:69
↓ 6 callers
Function
initialize_tool_with
(mock_driver)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:25
↓ 6 callers
Function
is_blocked_ip
Return True if *ip_str* is private, reserved, or otherwise unsafe to fetch. Default-deny: anything that is not globally routable is blocked, plus
lib/crewai-tools/src/crewai_tools/security/safe_path.py:201
↓ 6 callers
Method
is_synced
Return True if the Git repository is fully synced with the remote, False otherwise.
lib/cli/src/crewai_cli/git.py:117
↓ 6 callers
Method
is_throttling_error
Return whether an error chain represents a transient provider throttle.
lib/crewai/src/crewai/llms/retry.py:49
↓ 6 callers
Function
json_crew_project
(folder: Path, *, installed: bool = True)
lib/cli/tests/test_run_usage.py:176
↓ 6 callers
Method
load_prompts
Load prompts from a JSON file. Returns: The I18N instance with loaded prompts. Raises: Exception: If the pro
lib/crewai/src/crewai/utilities/i18n.py:27
↓ 6 callers
Method
login_to_tool_repository
Log in to the tool repository. This request is authenticated, so sending user_identifier and project_id alongside it links the accoun
lib/crewai-core/src/crewai_core/plus_api.py:352
↓ 6 callers
Function
merge_tool_failures
Concatenate failure lists, dropping records already present. Guardrail retries rebuild the output from overlapping sources, so identity is no
lib/crewai/src/crewai/tools/tool_failure.py:214
↓ 6 callers
Function
normalize_input_files
Convert a list of file sources to a named dictionary of FileInputs. Args: input_files: List of file source inputs or File objects. R
lib/crewai-files/src/crewai_files/resolution/utils.py:49
↓ 6 callers
Function
normalize_package_name
Normalize a project name into its scaffolded Python package name.
lib/cli/src/crewai_cli/utils.py:94
↓ 6 callers
Method
on_button_pressed
(self, event: Button.Pressed)
lib/cli/src/crewai_cli/crew_run_tui.py:1775
↓ 6 callers
Function
operation
()
lib/crewai/tests/llms/test_retry.py:116
↓ 6 callers
Function
optimize_image
Optimize an image to fit within a target file size. Uses iterative quality reduction to achieve target size. Args: file: The image f
lib/crewai-files/src/crewai_files/processing/transformers.py:91
↓ 6 callers
Function
package
A workbook in ``folder`` whose ``_rels/.rels`` points there, holding ``sheets`` by name; ``decoy`` adds a one-cell workbook at the usual ``xl/``.
lib/crewai-files/tests/spreadsheets/test_reading.py:660
↓ 6 callers
Function
plan_naming
Crew planning writes a plan that tells the agent to open ``url``.
lib/crewai/tests/agents/test_agent_spreadsheets.py:672
↓ 6 callers
Method
recall
Recall relevant memories. Delegates to this flow's memory. Args: query: Natural language query. **kwargs: Passed to m
lib/crewai/src/crewai/flow/runtime/__init__.py:1010
↓ 6 callers
Function
register_scoped
Register a hook scoped to the current :func:`scoped_hooks` context.
lib/crewai/src/crewai/hooks/dispatch.py:177
↓ 6 callers
Method
render_template
Interpolate ``${...}`` expressions inside nested strings as CEL. A string that is exactly one ``${...}`` keeps the evaluated value's
lib/crewai/src/crewai/flow/expressions.py:291
↓ 6 callers
Method
reset
Reset all settings to default values.
lib/crewai-core/src/crewai_core/settings.py:239
↓ 6 callers
Function
restore_event_scope
Restore the event scope stack from a checkpoint.
lib/crewai/src/crewai/events/event_context.py:136
↓ 6 callers
Function
resume_task_scope
Push the latest recorded ``task_started`` scope for a task. Args: task_id: The task identifier to look up in the active event record.
lib/crewai/src/crewai/events/event_context.py:141
↓ 6 callers
Method
run
(self)
lib/cli/tests/test_run_crew.py:765
↓ 6 callers
Method
run
( self, crew: Crew | None = None, agents: list[Agent] | list[BaseAgent] | None = None,
lib/crewai/src/crewai/experimental/evaluation/experiment/runner.py:32
↓ 6 callers
Function
scoped_hooks
Enter an execution-scoped hook registry. Hooks registered inside this context (via :func:`register_scoped`) run after global hooks and are di
lib/crewai/src/crewai/hooks/dispatch.py:160
↓ 6 callers
Function
set_artifact_store
Replace the process-wide artifact store.
lib/crewai/src/crewai/artifacts.py:264
↓ 6 callers
Method
set_cache_handler
Set the cache handler for the agent. Args: cache_handler: An instance of the CacheHandler class.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:800
↓ 6 callers
Function
set_last_event_id
Set the ID of the last emitted event. Args: event_id: The event_id to set as the last emitted event.
lib/crewai/src/crewai/events/event_context.py:91
↓ 6 callers
Function
set_suppress_tracing_messages
Set whether to suppress tracing-related console messages. Args: suppress: True to suppress messages, False to show them. Returns:
lib/crewai/src/crewai/events/listeners/tracing/utils.py:89
↓ 6 callers
Method
set_tracer
Mark telemetry live (idempotent). Deliberately does not install a global TracerProvider. Doing so made every OTel-instrumented librar
lib/crewai-core/src/crewai_core/telemetry.py:377
↓ 6 callers
Function
should_suppress_console_output
Return True if console output should currently be suppressed.
lib/crewai-core/src/crewai_core/printer.py:27
↓ 6 callers
Function
should_suppress_tracing_messages
Check if tracing messages should be suppressed. Returns: True if messages should be suppressed, False otherwise.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:101
↓ 6 callers
Method
shutdown
Gracefully shutdown the event loop and wait for all tasks to finish. Args: wait: If True, wait for all pending tasks to complete
lib/crewai/src/crewai/events/event_bus.py:897
↓ 6 callers
Function
sleep
(seconds: float)
lib/cli/tests/experimental/test_eval_crew.py:657
↓ 6 callers
Method
start
(self)
lib/crewai/tests/tools/test_structured_tool.py:397
↓ 6 callers
Method
start_deployment_span
Records redeploying an existing crew (``crewai deploy push``). Also emits ``deploy:pushed`` so that deployments are countable from the
lib/crewai-core/src/crewai_core/telemetry.py:425
↓ 6 callers
Method
stream_events
Run the LLM call and stream scoped public ``StreamFrame`` events.
lib/crewai/src/crewai/llms/base_llm.py:578
↓ 6 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:240
↓ 6 callers
Function
summarize_messages
Compact ``messages`` in place using ``llm``'s context-window contract.
lib/crewai/src/crewai/llms/context_window.py:299
↓ 6 callers
Method
to_dict
Serialize context to a dictionary for persistence. Returns: Dictionary representation suitable for JSON serialization.
lib/crewai/src/crewai/flow/async_feedback/types.py:104
↓ 6 callers
Method
update
Update a record by upserting with the same point ID.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:499
↓ 6 callers
Function
update_user_data
Atomically read-modify-write the user data file under a file lock. Args: updates: Key-value pairs to merge into the existing user data.
lib/crewai-core/src/crewai_core/user_data.py:54
↓ 6 callers
Method
user_blocks
Content blocks of every ``user`` turn in a recorded request.
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:145
↓ 6 callers
Function
validate_image
Validate an image file against constraints. Args: file: The image file to validate. constraints: Image constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:231
↓ 5 callers
Method
__del__
Ensure cleanup on deletion.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:252
↓ 5 callers
Method
_agent
()
lib/crewai/tests/hooks/test_interception_conformance.py:283
↓ 5 callers
Function
_amp_cannot_resolve
(monkeypatch, *missing)
lib/crewai/tests/agents/test_agent.py:2768
↓ 5 callers
Function
_amp_client
The AMP to ask, and whether the saved login goes with it. A project's `.env` may point `crewai eval` at another AMP — that is how a self-host
lib/cli/src/crewai_cli/experimental/eval_crew.py:755
↓ 5 callers
Method
_append_message_to_state
Add message to state conversation history. Args: text: Message content. role: Message role (default: assistant).
lib/crewai/src/crewai/agents/agent_executor.py:3387
↓ 5 callers
Method
_atomic_create_secure_file
Create a file only if it doesn't already exist.
lib/crewai-core/src/crewai_core/token_manager.py:109
↓ 5 callers
Function
_bomb
A zip of ``members`` deflated copies of ``payload``; with ``declared``, every header claims that uncompressed size instead of the real one.
lib/crewai-files/tests/spreadsheets/test_reading.py:153
↓ 5 callers
Function
_boto_modules
Build minimal boto modules for exercising the lazy imports.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:12
↓ 5 callers
Method
_build
( self, location: Path, second_callback: Any, **agent_kwargs: Any )
lib/crewai/tests/test_checkpoint.py:942
↓ 5 callers
Function
_build_conversation_messages
Build a realistic multi-turn conversation for summarization tests.
lib/crewai/tests/utilities/test_summarize_integration.py:18
↓ 5 callers
Method
_build_mcp_config_from_dict
Convert a config dict from crewai-oauth into an MCPServerConfig.
lib/crewai/src/crewai/mcp/tool_resolver.py:508
↓ 5 callers
Function
_byte_len
(s: str)
lib/crewai/src/crewai/telemetry/tracing/gen_ai_shapes.py:506
↓ 5 callers
Method
_call_with_function
Calls the LLM with function calling to get a plan. Args: prompt: The prompt to send to the LLM. plan_type: The type o
lib/crewai/src/crewai/utilities/reasoning_handler.py:351
↓ 5 callers
Method
_change
(self, record: DeliveryRecord, status: Any, reason: str = "")
lib/crewai/src/crewai/experimental/flow_replies.py:132
↓ 5 callers
Function
_chunk_messages
Greedily pack rendered summary requests, splitting only oversized messages.
lib/crewai/src/crewai/llms/context_window.py:362
↓ 5 callers
Method
_clear_streams
Clear the read and write streams.
lib/crewai/src/crewai/mcp/transports/base.py:111
↓ 5 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
↓ 5 callers
Function
_completed_event
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:54
↓ 5 callers
Function
_configuration_of
(llm: Any)
lib/crewai/tests/test_llm_overlay.py:61
↓ 5 callers
Method
_connect
(self)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:174
↓ 5 callers
Method
_conversation_flow_definition
Return the definition that describes this flow's methods. Prefers the instance definition, which is the loaded declaration for a flow
lib/crewai/src/crewai/flow/conversational_mixin.py:1070
↓ 5 callers
Method
_copy_and_serialize_state
(self)
lib/crewai/src/crewai/flow/runtime/__init__.py:3183
↓ 5 callers
Function
_create_sqlite_checkpoint
( db_path: str, checkpoint_id: str | None = None, data: str | None = None, tasks_completed: in
lib/crewai/tests/test_checkpoint_cli.py:94
↓ 5 callers
Method
_create_temp_json_file
Helper to write JSON data to a temporary file and return its path.
lib/crewai-tools/tests/rag/test_json_loader.py:13
↓ 5 callers
Method
_crew
()
lib/crewai/tests/hooks/test_interception_conformance.py:437
↓ 5 callers
Method
_declaration
(router: dict[str, Any])
lib/crewai/tests/test_flow_conversation.py:2575
↓ 5 callers
Method
_declaration
(**overrides: Any)
lib/crewai/tests/test_flow_conversation.py:3344
↓ 5 callers
Method
_delete_secure_file
Delete a secure file (no-op if absent).
lib/crewai-core/src/crewai_core/token_manager.py:155
↓ 5 callers
Function
_deploy_doubles
(monkeypatch, *, creates, login)
lib/cli/tests/test_crew_run_tui.py:2567
↓ 5 callers
Method
_disconnect
(self)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:180
↓ 5 callers
Method
_do_write
Execute a single table write with retry on commit conflicts. Caller must already hold ``store_lock(self._lock_name)``.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:153
↓ 5 callers
Method
_embed_texts
(self, texts: list[str])
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:580
↓ 5 callers
Function
_encode
(fmt: str, size: tuple[int, int] = (16, 16))
lib/crewai-files/tests/processing/test_images.py:36
↓ 5 callers
Function
_entry
Build a rankable catalog entry. ``sort`` is a comparable tuple ``(created, date_int, version_tuple)`` so a real vendor timestamp wins, then a
lib/cli/src/crewai_cli/model_catalog.py:440
↓ 5 callers
Method
_export_output
( self, result: str | BaseModel )
lib/crewai/src/crewai/task.py:1310
↓ 5 callers
Function
_fallback_warnings
(caplog: pytest.LogCaptureFixture)
lib/crewai/tests/llms/test_context_window.py:459
↓ 5 callers
Method
_fetch_templates
Fetch all template repos from the GitHub org.
lib/cli/src/crewai_cli/remote_template/main.py:154
↓ 5 callers
Function
_field_errors
( data: dict[str, Any], allowed_fields: set[str], runtime_fields: set[str], source: str | Path
lib/crewai/src/crewai/project/json_loader.py:1195
↓ 5 callers
Function
_finding
(validator: DeployValidator, code: str)
lib/cli/tests/deploy/test_validate.py:342
↓ 5 callers
Method
_flow
(reply: str = "Declared reply.")
lib/crewai/tests/test_flow_conversation.py:3503
↓ 5 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:2471
↓ 5 callers
Method
_generate_embedding
(self, text: str)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:222
↓ 5 callers
Method
_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:484
↓ 5 callers
Method
_get_custom_llm_provider
Derives the custom_llm_provider from the model string. - For example, if the model is "openrouter/deepseek/deepseek-chat", returns "o
lib/crewai/src/crewai/llm.py:2539
↓ 5 callers
Method
_get_domain
(self)
lib/crewai-core/src/crewai_core/auth/providers/auth0.py:37
↓ 5 callers
Method
_get_or_create_event
Get or create a threading.Event for the given event_id (must hold _span_lock).
lib/crewai/src/crewai/telemetry/tracing/context.py:64
↓ 5 callers
Method
_get_or_create_key
Get or create the encryption key.
lib/crewai-core/src/crewai_core/token_manager.py:32
↓ 5 callers
Method
_get_responses_delegate
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:266
↓ 5 callers
Method
_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:342
↓ 5 callers
Method
_handle_emit_call_events
Handle the events for the LLM call. Args: response (str): The response from the LLM call. call_type (str): The type o
lib/crewai/src/crewai/llm.py:2308
↓ 5 callers
Function
_http_get_json
GET ``url`` and return parsed JSON, with a short timeout and TLS verify.
lib/cli/src/crewai_cli/model_catalog.py:543
↓ 5 callers
Function
_humanize
Derive a readable label from a raw model id. Best-effort only — vendor display names and the curated label map take precedence. Drops embedde
lib/cli/src/crewai_cli/model_catalog.py:505
↓ 5 callers
Function
_infer_result_schema_from_callable
( func: Callable[..., Any], )
lib/crewai/src/crewai/tools/structured_tool.py:45
↓ 5 callers
Method
_interpolate_inputs
Interpolates the inputs in the tasks and agents.
lib/crewai/src/crewai/crew.py:2320
↓ 5 callers
Method
_invoke_step_callback
Invoke step callback if configured. Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/agents/agent_executor.py:3357
← previous
next →
1,001–1,100 of 19,663, ranked by callers