Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
14,568 in github.com/crewAIInc/crewAI
⨍
Functions
14,568
◇
Types & classes
2,943
↳
Endpoints
804
↓ 6 callers
Method
_mark_todo_completed
( self, step_number: int, result: str | None = None, )
lib/crewai/src/crewai/experimental/agent_executor.py:494
↓ 6 callers
Function
_method_action
(method: Any)
lib/crewai/src/crewai/flow/dsl/_utils.py:90
↓ 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
Function
_normalize_agent_input
Accept a prompt string or a rendered conversation. A whole-string ``${...}`` template keeps its evaluated type, so a CEL expression over ``st
lib/crewai/src/crewai/flow/runtime/_actions.py:201
↓ 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:121
↓ 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:418
↓ 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
_router_response_format
( self, router_config: RouterConfig, )
lib/crewai/src/crewai/flow/conversational_mixin.py:1236
↓ 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:1536
↓ 6 callers
Method
_stringify_result
(result: Any)
lib/crewai/src/crewai/flow/conversational_mixin.py:1513
↓ 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:1322
↓ 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:127
↓ 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:206
↓ 6 callers
Function
create_validated_connection
Open a TCP socket to *host* after validating and pinning the peer IP.
lib/crewai-tools/src/crewai_tools/security/ssrf_adapter.py:70
↓ 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
disconnect
Disconnect from MCP server and cleanup resources.
lib/crewai/src/crewai/mcp/client.py:385
↓ 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
find_transport_failure
Search exceptions for the one that explains why a connection failed. A failing transport cancels the coroutine that was waiting on it, so the
lib/crewai/src/crewai/mcp/exceptions.py:252
↓ 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:29
↓ 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
↓ 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:376
↓ 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
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:363
↓ 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:70
↓ 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:2035
↓ 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:230
↓ 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:232
↓ 6 callers
Method
main
()
lib/crewai/tests/agents/test_agent.py:2827
↓ 6 callers
Method
mark_events_collected
Mark that events have been collected during execution.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:43
↓ 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
Method
project_created_span
Records that the CLI scaffolded a new project. Acquisition was previously only observable from a project's first *run*, which misses
lib/crewai-core/src/crewai_core/telemetry.py:432
↓ 6 callers
Function
read_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:108
↓ 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:193
↓ 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:173
↓ 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:804
↓ 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:203
↓ 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
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:304
↓ 6 callers
Method
stream_events
Run the LLM call and stream scoped public ``StreamFrame`` events.
lib/crewai/src/crewai/llms/base_llm.py:352
↓ 6 callers
Method
stream_turn
Append a user message and stream one conversational turn as frames.
lib/crewai/src/crewai/flow/conversational_mixin.py:507
↓ 6 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:240
↓ 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:97
↓ 6 callers
Method
tools
Retrieve a tool prompt by key. Args: tool: The key of the tool prompt to retrieve. Returns: The tool prompt
lib/crewai/src/crewai/utilities/i18n.py:78
↓ 6 callers
Method
update
Update a record by upserting with the same point ID.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:488
↓ 6 callers
Function
update_pyproject_dependencies
Update workspace dependency versions in pyproject.toml. Args: file_path: Path to pyproject.toml file. new_version: New version st
lib/devtools/src/crewai_devtools/cli.py:342
↓ 6 callers
Function
version
Show the installed version of crewai.
lib/cli/src/crewai_cli/cli.py:289
↓ 5 callers
Method
_agent
()
lib/crewai/tests/hooks/test_interception_conformance.py:283
↓ 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/experimental/agent_executor.py:3084
↓ 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
_build_conversation_messages
Build a realistic multi-turn conversation for summarization tests.
lib/crewai/tests/utilities/test_summarize_integration.py:19
↓ 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: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
_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
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:967
↓ 5 callers
Method
_convert_contents_to_dict
Convert contents to dict format.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1487
↓ 5 callers
Method
_copy_and_serialize_state
(self)
lib/crewai/src/crewai/flow/runtime/__init__.py:3122
← previous
next →
601–700 of 14,568, ranked by callers