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
↓ 7 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
↓ 7 callers
Method
run
(self)
lib/crewai/tests/test_stream_frames.py:288
↓ 7 callers
Method
save_tokens
Save the access token and its expiration time. Args: access_token: The access token to save. expires_at: The UNIX tim
lib/crewai-core/src/crewai_core/token_manager.py:50
↓ 7 callers
Method
search
( self, query_embedding: list[float], scope_prefix: str | None = None, categor
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:371
↓ 7 callers
Method
set_tracer
Mark telemetry live (idempotent). Deliberately does not install a global TracerProvider. Doing so made every OTel-instrumented librar
lib/crewai/src/crewai/telemetry/telemetry.py:173
↓ 7 callers
Function
set_triggering_event_id
Set the ID of the triggering event for causal chain tracking. Args: event_id: The event_id that triggered the current execution, or None.
lib/crewai/src/crewai/events/event_context.py:109
↓ 7 callers
Method
setup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_webpage_loader.py:10
↓ 7 callers
Method
setup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_xml_loader.py:10
↓ 7 callers
Method
setup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_webpage_loader.py:18
↓ 7 callers
Method
setup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_xml_loader.py:18
↓ 7 callers
Function
store_files
Store files for a crew execution. Args: execution_id: Unique identifier for the crew execution. files: Dictionary mapping names t
lib/crewai/src/crewai/utilities/file_store.py:178
↓ 7 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:158
↓ 7 callers
Function
suppress_warnings
Context manager to suppress all warnings. Yields: None during the context execution. Note: This implementation consolidates
lib/crewai/src/crewai/utilities/logger_utils.py:43
↓ 7 callers
Function
unregister_after_tool_call_hook
Unregister a specific global after_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fou
lib/crewai/src/crewai/hooks/tool_hooks.py:324
↓ 7 callers
Function
unregister_before_tool_call_hook
Unregister a specific global before_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fo
lib/crewai/src/crewai/hooks/tool_hooks.py:298
↓ 7 callers
Function
update_pyproject_version
Update the [project] version field in a pyproject.toml file. Args: file_path: Path to pyproject.toml file. new_version: New versi
lib/devtools/src/crewai_devtools/cli.py:306
↓ 7 callers
Function
validate_crew_project
Validate JSON crew structure without kicking off the crew.
lib/crewai/src/crewai/project/json_loader.py:277
↓ 7 callers
Function
validate_import_path
Import and return the class/function from the import path. Args: v: Import path string in the format 'module.path.ClassName'. Return
lib/crewai/src/crewai/utilities/import_utils.py:51
↓ 7 callers
Function
warn_deprecated
Print a yellow deprecation warning for a legacy CLI command or flag.
lib/cli/src/crewai_cli/utils.py:52
↓ 6 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:14
↓ 6 callers
Function
_agent_with_skills
Create an agent with explicitly activated, always-on skills.
lib/crewai/tests/events/test_skill_usage_events.py:33
↓ 6 callers
Function
_attach_flow_definition
( flow_class: type[Flow], methods: dict[str, dict[str, object]] )
lib/crewai/tests/test_flow_visualization.py:80
↓ 6 callers
Function
_augment_prompt_with_a2a
Add A2A delegation instructions to prompt. Args: a2a_agents: Dictionary of A2A agent configurations task_description: Original ta
lib/crewai/src/crewai/a2a/wrapper.py:639
↓ 6 callers
Method
_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:48
↓ 6 callers
Method
_build_upload_result
Build an UploadResult for a completed upload. Args: file_id: The uploaded file ID. content_type: The file's content t
lib/crewai-files/src/crewai_files/uploaders/openai.py:146
↓ 6 callers
Method
_clear_streams
Clear the read and write streams.
lib/crewai/src/crewai/mcp/transports/base.py:111
↓ 6 callers
Method
_create_manager_agent
(self)
lib/crewai/src/crewai/crew.py:1508
↓ 6 callers
Function
_create_skill
( parent: Path, name: str, description: str, instructions: str, )
lib/crewai/tests/skills/test_progressive_disclosure.py:39
↓ 6 callers
Function
_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_integration.py:18
↓ 6 callers
Function
_deserialize_llm_from_context
( llm_data: dict[str, Any] | str | None, )
lib/crewai/src/crewai/flow/human_feedback.py:98
↓ 6 callers
Method
_effective_routes
(self, router_config: RouterConfig | None = None)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1093
↓ 6 callers
Method
_extract_finish_reason_and_id
Extract raw finish_reason and response_id from an Anthropic ``Message`` / ``BetaMessage``. Anthropic exposes ``stop_reason`` (e.g. ``"
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1949
↓ 6 callers
Method
_extract_openai_token_usage
Extract token usage and response metadata from OpenAI ChatCompletion.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2713
↓ 6 callers
Method
_extract_responses_token_usage
Extract token usage and response metadata from Responses API response.
lib/crewai/src/crewai/llms/providers/openai/completion.py:1529
↓ 6 callers
Method
_extract_token_usage
Extract token usage and response metadata from Gemini response.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1408
↓ 6 callers
Method
_fetch_amp_mcp_configs
Fetch MCP server configurations via CrewAI+ API. Sends a GET request to the CrewAI+ mcps/configs endpoint with comma-separated slugs.
lib/crewai/src/crewai/mcp/tool_resolver.py:182
↓ 6 callers
Method
_format_messages_for_azure
Format messages for Azure AI Inference API. Args: messages: Input messages Returns: List of dict objects wit
lib/crewai/src/crewai/llms/providers/azure/completion.py:741
↓ 6 callers
Method
_formatter
()
lib/crewai/tests/tools/test_tool_failure.py:503
↓ 6 callers
Method
_get_client
Get or create the OpenAI client.
lib/crewai-files/src/crewai_files/uploaders/openai.py:164
↓ 6 callers
Method
_get_client
Get the appropriate client - instance-specific or global.
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:55
↓ 6 callers
Function
_get_purpose_for_content_type
Get the appropriate purpose for a file based on content type. OpenAI Files API requires different purposes for different file types: - Images
lib/crewai-files/src/crewai_files/uploaders/openai.py:25
↓ 6 callers
Method
_get_secure_storage_path
Platform-appropriate per-user credential directory (mode 0o700).
lib/crewai-core/src/crewai_core/token_manager.py:85
↓ 6 callers
Method
_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:335
↓ 6 callers
Method
_handle_crew_planning
Handles the Crew planning.
lib/crewai/src/crewai/crew.py:1441
↓ 6 callers
Method
_initialize_backend_and_send_events
Initialize backend batch and send collected events.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:69
↓ 6 callers
Function
_is_async_client
Type guard to check if the client is an asynchronous AsyncQdrantClient. Args: client: The client to check. Returns: True if
lib/crewai/src/crewai/rag/qdrant/utils.py:61
↓ 6 callers
Function
_is_async_client
Type guard to check if the client is an asynchronous AsyncClientAPI. Args: client: The client to check. Returns: True if the
lib/crewai/src/crewai/rag/chromadb/utils.py:44
↓ 6 callers
Method
_is_responses_only_error
Whether a 404 means the model exists but isn't on chat completions. OpenAI distinguishes the two 404s it returns here: responses
lib/crewai/src/crewai/llms/providers/openai/completion.py:1685
↓ 6 callers
Function
_is_sync_client
Type guard to check if the client is a synchronous QdrantClient. Args: client: The client to check. Returns: True if the cli
lib/crewai/src/crewai/rag/qdrant/utils.py:49
↓ 6 callers
Function
_is_sync_client
Type guard to check if the client is a synchronous ClientAPI. Args: client: The client to check. Returns: True if the client
lib/crewai/src/crewai/rag/chromadb/utils.py:32
↓ 6 callers
Function
_is_tool_use_block
Return true for complete Anthropic tool-use blocks across SDK shapes. New/preview Anthropic models can return content blocks whose concrete SDK
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:147
↓ 6 callers
Method
_make_agent
(self, checkpoint: Any = None)
lib/crewai/tests/test_checkpoint.py:56
↓ 6 callers
Function
_make_crew
( *, task_description: str = "", expected_output: str = "", agent_role: str = "", agent_go
lib/crewai/tests/cli/test_crew_chat.py:14
↓ 6 callers
Method
_make_crew
( self, agents: list[Agent], checkpoint: Any = None )
lib/crewai/tests/test_checkpoint.py:59
↓ 6 callers
Function
_make_mock_client
Create a mock MCPClient that returns *tool_definitions*.
lib/crewai/tests/mcp/test_mcp_config.py:35
↓ 6 callers
Function
_make_storage
(path: str, vector_dim: int = 4)
lib/crewai/tests/memory/test_qdrant_edge_storage.py:24
↓ 6 callers
Method
_make_tool
(self)
lib/crewai/tests/tools/test_base_tool.py:722
↓ 6 callers
Method
_mark_todo_completed
( self, step_number: int, result: str | None = None, )
lib/crewai/src/crewai/experimental/agent_executor.py:457
↓ 6 callers
Method
_nested_in_flow_execution
True when a crew runs inside a flow session (context or batch ownership).
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:799
↓ 6 callers
Method
_on_crew_done
(self, output: str | None)
lib/cli/src/crewai_cli/crew_run_tui.py:749
↓ 6 callers
Method
_parse_amp_ref
Parse an AMP reference into *(slug, optional tool name)*. Accepts both bare slugs (``"notion"``, ``"notion#search"``) and the legacy
lib/crewai/src/crewai/mcp/tool_resolver.py:108
↓ 6 callers
Function
_parse_duration
(value: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:618
↓ 6 callers
Method
_parse_observation_response
Parse the LLM response into a StepObservation. The LLM may return: - A StepObservation instance directly (streaming + litellm path)
lib/crewai/src/crewai/agents/planner_observer.py:304
↓ 6 callers
Function
_pop_local_context
(kwargs: dict[str, Any])
lib/crewai/src/crewai/flow/runtime/_actions.py:383
↓ 6 callers
Method
_read_secure_file
Read raw bytes from a secure file, or None if absent.
lib/crewai-core/src/crewai_core/token_manager.py:144
↓ 6 callers
Method
_refine_request_payload
Subclass must implement: transform validated params dict into API request params.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:273
↓ 6 callers
Method
_require_memory
Return the bound ``Memory`` or raise a clear error if missing.
lib/crewai/src/crewai/memory/memory_scope.py:260
↓ 6 callers
Function
_resolve
Coerce a checkpoint field value. Returns: CheckpointConfig — use this config. _SENTINEL — explicit opt-out (``False``), stop walk
lib/crewai/src/crewai/state/checkpoint_listener.py:55
↓ 6 callers
Function
_resolve_python_class
( value: Any, source: str | Path, *, base_class: type[Any] | None = None, project_root: Pa
lib/crewai/src/crewai/project/json_loader.py:845
↓ 6 callers
Method
_should_defer_trace_finalization
Whether this kickoff should defer final flow trace finalization.
lib/crewai/src/crewai/flow/runtime/__init__.py:466
↓ 6 callers
Method
_show_logs
Emit agent execution event. Args: formatted_answer: Agent's response to log.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1514
↓ 6 callers
Function
_tar_from_members
Build an in-memory tar archive via `build(tf)` and return it for reading.
lib/cli/tests/skills/test_safe_extract.py:20
↓ 6 callers
Function
_ts_from_name
Extract timestamp from checkpoint ID or filename.
lib/cli/src/crewai_cli/checkpoint_cli.py:201
↓ 6 callers
Method
_use_trained_data
Use trained data for the agent task prompt to improve output.
lib/crewai/src/crewai/agent/core.py:1293
↓ 6 callers
Method
_write_project
(self, root, tool_line='"custom:landmine"')
lib/crewai/tests/project/test_json_loader.py:500
↓ 6 callers
Method
add_template
Download a template and copy it into the current working directory. Args: name: Template name (with or without the template_ pref
lib/cli/src/crewai_cli/remote_template/main.py:93
↓ 6 callers
Method
add_usage_metrics
Add usage metrics from another UsageMetrics object. Args: usage_metrics: The usage metrics to add.
lib/crewai/src/crewai/types/usage_metrics.py:65
↓ 6 callers
Function
aget_llm_response
Call the LLM asynchronously and return the response. Args: llm: The LLM instance to call. messages: The messages to send to the L
lib/crewai/src/crewai/utilities/agent_utils.py:597
↓ 6 callers
Method
aget_or_create_collection
Get an existing collection or create it if it doesn't exist asynchronously. Keyword Args: collection_name: Name of the collection
lib/crewai/src/crewai/rag/qdrant/client.py:190
↓ 6 callers
Function
cancel
Cancel an A2A task. Publishes a cancel event that the cancellable decorator listens for. Args: context: The A2A request context cont
lib/crewai/src/crewai/a2a/utils/task.py:458
↓ 6 callers
Function
chunk_pdf
Split a PDF into chunks of maximum page count. Yields chunks one at a time to minimize memory usage. Args: file: The PDF file to chu
lib/crewai-files/src/crewai_files/processing/transformers.py:159
↓ 6 callers
Function
clear_after_tool_call_hooks
Clear all registered global after_tool_call hooks. Returns: Number of hooks that were cleared Example: >>> register_after_to
lib/crewai/src/crewai/hooks/tool_hooks.py:367
↓ 6 callers
Function
common_span_attributes
Build the attributes every span carries, once per process. Cached because it reads the project's ``pyproject.toml``, and because a process ca
lib/crewai-core/src/crewai_core/telemetry.py:124
↓ 6 callers
Function
create_crew
( name: str, provider: str | None = None, skip_provider: bool = False, parent_folder: str | No
lib/cli/src/crewai_cli/create_crew.py:205
↓ 6 callers
Method
crew
Creates the Content Crew
lib/cli/src/crewai_cli/templates/flow/crews/content_crew/content_crew.py:53
↓ 6 callers
Method
crew
(self)
lib/crewai/tests/test_project.py:87
↓ 6 callers
Function
default_flow_persistence
Build the default flow persistence backend. Returns the result of the registered factory if one is set, otherwise a built-in :class:`~crewai.
lib/crewai/src/crewai/flow/persistence/factory.py:48
↓ 6 callers
Function
execute_tool_and_check_finality
Execute a tool and check if the result should be treated as a final answer. This function integrates tool hooks for before and after tool executi
lib/crewai/src/crewai/utilities/tool_utils.py:200
↓ 6 callers
Method
execute_with_trigger
Execute crew with trigger payload.
lib/cli/src/crewai_cli/triggers/main.py:37
↓ 6 callers
Function
extract_json_from_llm_response
(text: str)
lib/crewai/src/crewai/experimental/evaluation/json_parser.py:8
↓ 6 callers
Function
factory
Create a gRPC channel for the given URL.
lib/crewai/src/crewai/a2a/utils/delegation.py:811
↓ 6 callers
Function
failure_from_exception
Build a :class:`ToolFailure` from an exception a tool raised.
lib/crewai/src/crewai/tools/tool_failure.py:165
↓ 6 callers
Function
format_path_for_display
Return a path label that does not expose absolute directory prefixes.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:26
↓ 6 callers
Method
format_text_content
Format text as a content block for the LLM. Default implementation uses OpenAI/Anthropic format. Subclasses should override for provi
lib/crewai/src/crewai/llms/base_llm.py:517
↓ 6 callers
Function
get_a2a_agents_and_response_model
Get A2A agent configs and response model. Args: a2a_config: A2A configuration (any type). Returns: Tuple of client A2A confi
lib/crewai/src/crewai/a2a/utils/response_model.py:87
↓ 6 callers
Function
get_image_dimensions
Get the dimensions of an image file. Args: file: The image file to measure. Returns: Tuple of (width, height) in pixels, or
lib/crewai-files/src/crewai_files/processing/transformers.py:288
↓ 6 callers
Function
get_latest_version_from_pypi
Return the latest non-yanked PyPI version of CrewAI, or ``None`` on failure.
lib/crewai-core/src/crewai_core/version.py:112
↓ 6 callers
Function
get_llm_response
Call the LLM and return the response, handling any invalid responses. Args: llm: The LLM instance to call. messages: The messages
lib/crewai/src/crewai/utilities/agent_utils.py:544
↓ 6 callers
Method
get_pending_todos
Get all pending todos. Returns: List of pending TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:177
↓ 6 callers
Function
get_provider
Get the current human input provider. Returns: The current provider, or a new SyncHumanInputProvider if none set.
lib/crewai/src/crewai/core/providers/human_input.py:451
← previous
next →
501–600 of 13,938, ranked by callers