Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,282 in github.com/crewAIInc/crewAI
⨍
Functions
13,282
◇
Types & classes
2,710
↳
Endpoints
764
↓ 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:1948
↓ 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
_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:1433
↓ 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:146
↓ 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
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: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
_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
_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:1248
↓ 6 callers
Method
_write_project
(self, root, tool_line='"custom:landmine"')
lib/crewai/tests/project/test_json_loader.py:500
↓ 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:589
↓ 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:366
↓ 6 callers
Method
close
Close the underlying stream.
lib/crewai-files/src/crewai_files/core/sources.py:388
↓ 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:204
↓ 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
Method
evaluate
Evaluate this value as a full CEL expression.
lib/crewai/src/crewai/flow/expressions.py:209
↓ 6 callers
Function
execute_single_native_tool_call
Execute a single native tool call with full lifecycle management. Handles: arg parsing, tool lookup, max-usage check, cache read/write, befor
lib/crewai/src/crewai/utilities/agent_utils.py:1546
↓ 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
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:510
↓ 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:536
↓ 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
↓ 6 callers
Method
handle_execution_completion
Handle the completion flow as shown in your diagram.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:47
↓ 6 callers
Function
handle_max_iterations_exceeded
Handles the case when the maximum number of iterations is exceeded. Performs one more LLM call to get the final answer. Args: formatted_a
lib/crewai/src/crewai/utilities/agent_utils.py:368
↓ 6 callers
Function
handle_partial_json
Handle partial JSON in a result string and convert to Pydantic model or dict. Args: result: The result string to process. model:
lib/crewai/src/crewai/utilities/converter.py:280
↓ 6 callers
Function
handler
(source: object, event: BaseEvent)
lib/crewai/tests/utilities/events/test_shutdown.py:27
↓ 6 callers
Function
has_reached_max_iterations
Check if the maximum number of iterations has been reached. Args: iterations: Current number of iterations. max_iterations: Maxim
lib/crewai/src/crewai/utilities/agent_utils.py:355
↓ 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_dmn_mode_enabled
Return True when the enterprise non-interactive mode is enabled.
lib/cli/src/crewai_cli/utils.py:51
↓ 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
Function
is_tui_mode
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:83
↓ 6 callers
Method
kickoff_async
Execute the agent asynchronously with the given messages. This is the async version of the kickoff method that uses native async exec
lib/crewai/src/crewai/agent/core.py:1938
↓ 6 callers
Method
list_scopes
List immediate child scopes under path. Args: path: Scope path to list children of. If None and root_scope is set,
lib/crewai/src/crewai/memory/unified_memory.py:920
↓ 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
(self)
lib/cli/src/crewai_cli/tools/main.py:229
↓ 6 callers
Method
login_to_tool_repository
( self, user_identifier: str | None = None )
lib/crewai-core/src/crewai_core/plus_api.py:231
↓ 6 callers
Method
main
()
lib/crewai/tests/agents/test_agent.py:2827
↓ 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
Method
process
Process a single file according to constraints and its mode mode. Args: file: The file to process. Returns:
lib/crewai-files/src/crewai_files/processing/processor.py:110
↓ 6 callers
Function
read_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:107
↓ 6 callers
Function
resize_image
Resize an image to fit within the specified dimensions. Args: file: The image file to resize. max_width: Maximum width in pixels.
lib/crewai-files/src/crewai_files/processing/transformers.py:15
↓ 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
Function
run_after_tool_call_hooks
Run all ``post_tool_call`` hooks against a context. Returns: The (possibly modified) tool result carried on the context.
lib/crewai/src/crewai/hooks/tool_hooks.py:192
↓ 6 callers
Function
run_before_tool_call_hooks
Run all ``pre_tool_call`` hooks against a context. Returns: True if a hook blocked execution (returned False or raised :class:`Ho
lib/crewai/src/crewai/hooks/tool_hooks.py:172
↓ 6 callers
Function
safe_tool_conversion
Safely extract and validate tool information. Combines extraction, validation, and logging for robust tool conversion. Args: tool: T
lib/crewai/src/crewai/llms/providers/utils/common.py:115
↓ 6 callers
Method
set
Set a CLI configuration parameter.
lib/cli/src/crewai_cli/settings/main.py:77
↓ 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:773
↓ 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:87
↓ 6 callers
Method
setup_listeners
Setup event listeners - delegates to specific handlers. Args: crewai_event_bus: The event bus to register listeners on.
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:200
↓ 6 callers
Method
start
Start the MCP server and initialize the tools.
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py:192
↓ 6 callers
Method
stream_events
Run the LLM call and stream scoped public ``StreamFrame`` events.
lib/crewai/src/crewai/llms/base_llm.py:349
↓ 6 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:240
← previous
next →
501–600 of 13,282, ranked by callers