Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
12,753 in github.com/crewAIInc/crewAI
⨍
Functions
12,753
◇
Types & classes
2,624
↳
Endpoints
746
↓ 7 callers
Method
_stringify_result
(result: Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1136
↓ 7 callers
Function
_tree_record
Build a parent/child tree: crew_start ├── task_start │ ├── agent_start │ └── agent_complete (started=agent_start)
lib/crewai/tests/test_event_record.py:34
↓ 7 callers
Method
add
Add a tool result to the cache. Args: tool: Name of the tool. input: Input string used for the tool. outp
lib/crewai/src/crewai/agents/cache/cache_handler.py:23
↓ 7 callers
Function
apply_checkpoint
Handle checkpoint config for a kickoff method. If *from_checkpoint* carries a ``restore_from`` path, builds and returns a restored instance (
lib/crewai/src/crewai/state/checkpoint_config.py:214
↓ 7 callers
Function
build_env_with_all_tool_credentials
Return ``os.environ`` augmented with UV_INDEX_* credentials for every private index referenced under ``[tool.uv.sources]`` in ``pyproject.toml``.
lib/crewai-core/src/crewai_core/tool_credentials.py:35
↓ 7 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:131
↓ 7 callers
Method
checkpoint
(self)
lib/crewai/tests/test_flow_definition.py:920
↓ 7 callers
Function
compute_composite_score
Compute a weighted composite relevance score from semantic, recency, and importance. composite = w_semantic * semantic + w_recency * decay + w_im
lib/crewai/src/crewai/memory/types.py:345
↓ 7 callers
Method
configure
(self, enterprise_url: str)
lib/cli/src/crewai_cli/enterprise/main.py:21
↓ 7 callers
Method
create_agent_executor
Create an agent executor for the agent. Returns: An instance of the CrewAgentExecutor class.
lib/crewai/src/crewai/agent/core.py:1028
↓ 7 callers
Method
create_client
Creates a ChromaDB client from configuration.
lib/crewai/src/crewai/rag/config/optional_imports/protocols.py:18
↓ 7 callers
Method
create_panel
Create a standardized panel with consistent styling.
lib/crewai/src/crewai/events/utils/console_formatter.py:50
↓ 7 callers
Function
create_test_pdf
Create a minimal valid PDF for testing.
lib/crewai-files/tests/processing/test_transformers.py:30
↓ 7 callers
Function
db_storage_path
Return the path for SQLite database / app-data storage. Creates the directory if it does not exist.
lib/crewai-core/src/crewai_core/paths.py:16
↓ 7 callers
Method
deploy
Deploy a crew using either UUID or project name. Args: uuid (Optional[str]): The UUID of the crew to deploy.
lib/cli/src/crewai_cli/deploy/main.py:288
↓ 7 callers
Function
execute
Execute an A2A task using a CrewAI agent. Args: agent: The CrewAI agent to execute the task. context: The A2A request context con
lib/crewai/src/crewai/a2a/utils/task.py:290
↓ 7 callers
Method
finalize_session_traces
Emit a final ``FlowFinishedEvent`` and finalize the trace batch. Pairs with ``flow.defer_trace_finalization = True`` (or ``Conversati
lib/crewai/src/crewai/experimental/conversational_mixin.py:1174
↓ 7 callers
Method
fork
Fork a Crew from a checkpoint, creating a new execution branch. Args: config: Checkpoint configuration with ``restore_from`` set.
lib/crewai/src/crewai/crew.py:428
↓ 7 callers
Function
format_skill_context
Format skill information for agent prompt injection. At METADATA level: returns name and description only. At INSTRUCTIONS level or above: re
lib/crewai/src/crewai/skills/loader.py:226
↓ 7 callers
Method
get_async_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:108
↓ 7 callers
Method
get_required_fields
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:37
↓ 7 callers
Method
get_sync_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:113
↓ 7 callers
Method
get_token
Return the access token if valid and not expired, else None.
lib/crewai-core/src/crewai_core/token_manager.py:65
↓ 7 callers
Function
get_uploader
Get Gemini file uploader.
lib/crewai-files/src/crewai_files/uploaders/factory.py:89
↓ 7 callers
Function
handle_context_length
Handle context length exceeded by either summarizing or raising an error. Args: respect_context_window: Whether to respect context window
lib/crewai/src/crewai/utilities/agent_utils.py:712
↓ 7 callers
Function
import_and_validate_definition
Pydantic-compatible function to import a class/function from a string path. Args: v: Import path string in the format 'module.path.ClassN
lib/crewai/src/crewai/utilities/import_utils.py:87
↓ 7 callers
Method
is_batch_initialized
Check if batch is initialized
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:484
↓ 7 callers
Function
is_newer_version_available
Return ``(is_newer, current_version, latest_version)``.
lib/crewai-core/src/crewai_core/version.py:184
↓ 7 callers
Method
list_records
List records in a scope, newest first. Args: scope: Optional scope path prefix to filter by. If None and root_scope
lib/crewai/src/crewai/memory/unified_memory.py:936
↓ 7 callers
Method
load
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/json_loader.py:10
↓ 7 callers
Method
load_pending_feedback
Load state and pending feedback context. Args: flow_uuid: Unique identifier for the flow instance Returns: T
lib/crewai/src/crewai/flow/persistence/sqlite.py:246
↓ 7 callers
Function
load_skill
Load one skill input into Skill objects. Accepts a pre-loaded Skill object, skill search path, inline SKILL.md string, or '@org/name' registr
lib/crewai/src/crewai/skills/loader.py:148
↓ 7 callers
Method
load_state
Load the most recent state for a given flow UUID. Args: flow_uuid: Unique identifier for the flow instance Returns:
lib/crewai/src/crewai/flow/persistence/sqlite.py:178
↓ 7 callers
Method
mark_running
Mark a todo as running by step number.
lib/crewai/src/crewai/utilities/planning_types.py:90
↓ 7 callers
Function
memoize
Memoize a method by caching its results based on arguments. Handles both sync and async methods. Pydantic BaseModel instances are converted t
lib/crewai/src/crewai/project/utils.py:38
↓ 7 callers
Function
parse_inputs_json
Parse a ``--inputs`` JSON object, exiting with a pointed error if invalid.
lib/cli/src/crewai_cli/input_prompt.py:24
↓ 7 callers
Function
read_toml
Read a TOML file from disk and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:24
↓ 7 callers
Method
register_handler
Register an event handler for a specific event type. Args: event_type: The event class to listen for handler: The han
lib/crewai/src/crewai/events/event_bus.py:797
↓ 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
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
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
↓ 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
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:244
↓ 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:218
↓ 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:304
↓ 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
↓ 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
_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
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:1066
↓ 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:1869
↓ 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:2455
↓ 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:1380
↓ 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
_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:1413
↓ 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
Method
_invoke_before_llm_call_hooks
Invoke before_llm_call hooks for direct LLM calls (no agent context). This method should be called by native provider implementations before
lib/crewai/src/crewai/llms/base_llm.py:974
↓ 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
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
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:34
↓ 6 callers
Function
_make_storage
(path: str, vector_dim: int = 4)
lib/crewai/tests/memory/test_qdrant_edge_storage.py:24
↓ 6 callers
Function
_make_tar_gz
Build an in-memory .tar.gz containing the given filename → content mapping.
lib/crewai/tests/experimental/skills/test_cache.py:16
↓ 6 callers
Method
_mark_todo_completed
( self, step_number: int, result: str | None = None, )
lib/crewai/src/crewai/experimental/agent_executor.py:447
↓ 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:779
↓ 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
_show_logs
Emit agent execution event. Args: formatted_answer: Agent's response to log.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1537
← previous
next →
401–500 of 12,753, ranked by callers