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
↓ 5 callers
Function
_parse_agent_response
Parse LLM output as AgentResponse or return raw agent response.
lib/crewai/src/crewai/a2a/wrapper.py:746
↓ 5 callers
Method
_prepare_generation_config
Prepare generation config for Google Gemini API. Args: system_instruction: System instruction for the model tools: To
lib/crewai/src/crewai/llms/providers/gemini/completion.py:438
↓ 5 callers
Method
_prepare_kickoff
Prepare common setup for kickoff execution. This method handles all the common preparation logic shared between kickoff() and kickoff
lib/crewai/src/crewai/agent/core.py:1355
↓ 5 callers
Method
_process_field_value
(self, response: str, field_type: type | None)
lib/crewai/src/crewai/utilities/training_converter.py:90
↓ 5 callers
Function
_prune_json
(location: str, keep: int | None, older_than: timedelta | None)
lib/cli/src/crewai_cli/checkpoint_cli.py:633
↓ 5 callers
Method
_resolve_external
Resolve an HTTPS MCP server URL into tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:219
↓ 5 callers
Method
_resolve_native
Resolve an ``MCPServerConfig`` into tools. Returns ``(tools, clients)`` where *clients* is always empty for native tools (clients are
lib/crewai/src/crewai/mcp/tool_resolver.py:313
↓ 5 callers
Function
_run
Build a ``_ScriptedFlow``, attach ``script``, kickoff. Returns the flow.
lib/crewai/tests/test_flow_usage_metrics.py:90
↓ 5 callers
Function
_safe_extractall
Path-traversal-safe extraction for Python versions without tar filters. Validates both the member's own path and, for symlink/hardlink members,
lib/crewai/src/crewai/experimental/skills/cache.py:130
↓ 5 callers
Method
_save_file
Save task output to a file. Note: For cross-platform file writing, especially on Windows, consider using FileWriterTool
lib/crewai/src/crewai/task.py:1175
↓ 5 callers
Function
_scaffold_json_crew
(root: Path, *, task_agent: str = "researcher")
lib/cli/tests/deploy/test_validate.py:113
↓ 5 callers
Method
_scan_rows
Scan rows optionally filtered by scope prefix. Uses a full table scan (no vector query) so the limit is applied after the scope filte
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:466
↓ 5 callers
Function
_serialize_static_value
( value: Any, path: str, )
lib/crewai/src/crewai/flow/dsl/_utils.py:136
↓ 5 callers
Method
_standard_no_param_error_message
Display a standard error message when no UUID or project name is available.
lib/cli/src/crewai_cli/deploy/main.py:183
↓ 5 callers
Method
_store_execution_log
( self, task: Task, output: TaskOutput, task_index: int, was_replayed:
lib/crewai/src/crewai/crew.py:1441
↓ 5 callers
Function
_unregister_handler
Unregister a stream handler from the event bus. Args: handler: The handler function to unregister.
lib/crewai/src/crewai/utilities/streaming.py:371
↓ 5 callers
Method
_unsubscribe_if_no_running_memory_save
( self, *, wait_for_queued: bool = False )
lib/cli/src/crewai_cli/crew_run_tui.py:1821
↓ 5 callers
Function
_user_data_file
()
lib/crewai-core/src/crewai_core/user_data.py:23
↓ 5 callers
Method
_validate_call_params
Validate parameters before making a call. Currently this only checks if a response_format is provided and whether the model supports
lib/crewai/src/crewai/llm.py:2335
↓ 5 callers
Function
_validate_size
Validate file size against maximum. Args: file_type: Type label for error messages (e.g., "Image", "PDF"). filename: Name of the
lib/crewai-files/src/crewai_files/processing/validators.py:161
↓ 5 callers
Function
_write_python_defs
(tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:17
↓ 5 callers
Method
acreate_collection
Create a new collection in Qdrant asynchronously. Keyword Args: collection_name: Name of the collection to create. Must be unique
lib/crewai/src/crewai/rag/qdrant/client.py:106
↓ 5 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
↓ 5 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
↓ 5 callers
Method
adelete_collection
Delete a collection and all its data asynchronously. Keyword Args: collection_name: Name of the collection to delete. Ra
lib/crewai/src/crewai/rag/qdrant/client.py:455
↓ 5 callers
Method
aexecute_task
Execute a task with the agent asynchronously. Args: task: Task to execute. context: Context to execute the task in.
lib/crewai/src/crewai/agent/core.py:876
↓ 5 callers
Function
after_hook
(context: ToolCallHookContext)
lib/crewai/tests/tools/test_tool_usage.py:211
↓ 5 callers
Method
ainvoke
Asynchronously invoke the tool. Args: input: The input arguments config: Optional configuration **kwargs:
lib/crewai/src/crewai/tools/structured_tool.py:296
↓ 5 callers
Method
aread
Async read the file content as bytes. Raises: TypeError: If the underlying source doesn't support async read.
lib/crewai-files/src/crewai_files/core/types.py:203
↓ 5 callers
Method
asearch
(self, query, limit=5, metadata_filter=None, score_threshold=0.6)
lib/crewai/tests/agents/test_agent.py:1914
↓ 5 callers
Function
assert_parity
(flow_cls, yaml_str, inputs=None, ordered=True)
lib/crewai/tests/test_flow_from_definition.py:532
↓ 5 callers
Method
astream
Run the flow asynchronously and stream scoped public frames.
lib/crewai/src/crewai/flow/runtime/__init__.py:1863
↓ 5 callers
Method
check_max_iterations
Check if max iterations reached before proceeding with reasoning.
lib/crewai/src/crewai/experimental/agent_executor.py:2138
↓ 5 callers
Method
checkpoint
Write a checkpoint. Args: location: Storage destination. For JsonProvider this is a directory path; for SqlitePro
lib/crewai/src/crewai/state/runtime.py:286
↓ 5 callers
Method
checkpoint
Write a JSON checkpoint file. Args: data: The serialized JSON string to persist. location: Base directory where check
lib/crewai/src/crewai/state/provider/json_provider.py:42
↓ 5 callers
Function
classify_upload_error
Classify an exception as transient or permanent upload error. Analyzes the exception type name and status code to determine if the error is l
lib/crewai-files/src/crewai_files/processing/exceptions.py:106
↓ 5 callers
Method
clear
Sync wrapper for aclear.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:475
↓ 5 callers
Function
clear_files
Clear files for a crew execution. Args: execution_id: Unique identifier for the crew execution.
lib/crewai/src/crewai/utilities/file_store.py:205
↓ 5 callers
Function
clear_task_files
Clear files for a task execution. Args: task_id: Unique identifier for the task.
lib/crewai/src/crewai/utilities/file_store.py:241
↓ 5 callers
Method
close
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 5 callers
Function
configured_project_definition
Return a configured CrewAI definition path for a project type. ``[tool.crewai].type`` must match ``project_type`` and ``definition`` must be
lib/crewai-core/src/crewai_core/project.py:54
↓ 5 callers
Method
convert_to_path
Convert a path to a Path object.
lib/crewai/src/crewai/knowledge/source/excel_knowledge_source.py:129
↓ 5 callers
Function
create_converter
Create a converter instance based on the agent or provided class. Args: agent: The agent instance. converter_cls: The converter c
lib/crewai/src/crewai/utilities/converter.py:581
↓ 5 callers
Method
create_crew
(self, **kwargs)
lib/cli/tests/test_crew_run_tui.py:80
↓ 5 callers
Function
create_or_reset_branch
Create ``branch`` from current HEAD, resetting any stale copy. If the branch exists locally or on origin, prompts the user to choose between
lib/devtools/src/crewai_devtools/cli.py:208
↓ 5 callers
Method
create_test_tool
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:28
↓ 5 callers
Function
diff_checkpoints
(location: str, id1: str, id2: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:526
↓ 5 callers
Method
disconnect
Disconnect from MCP server and cleanup resources.
lib/crewai/src/crewai/mcp/client.py:360
↓ 5 callers
Method
embed_text
Generate embedding for a single text. Args: text: Text to embed Returns: List of floats representin
lib/crewai-tools/src/crewai_tools/rag/embedding_service.py:246
↓ 5 callers
Function
ensure_type_in_schemas
Ensure all schema objects in anyOf/oneOf have a 'type' key. OpenAI strict mode requires every schema to have a 'type' key. Empty schemas {} i
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:266
↓ 5 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:152
↓ 5 callers
Method
extract_all_tools
(self)
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py:30
↓ 5 callers
Function
extract_choices_finish_reason_and_id
Extract ``(finish_reason, response_id)`` from a choices-shaped response. Handles both object-style (``response.id``, ``response.choices[0].finish
lib/crewai/src/crewai/llms/_finish_reason_utils.py:21
↓ 5 callers
Method
extract_id
Extract the checkpoint ID from a location string. Args: location: The identifier returned by a previous ``checkpoint`` call.
lib/crewai/src/crewai/state/provider/core.py:78
↓ 5 callers
Function
extract_knowledge_context
Extract knowledge from the task prompt.
lib/crewai/src/crewai/knowledge/utils/knowledge_utils.py:4
↓ 5 callers
Method
extract_memories
Extract discrete memories from content. Delegates to this flow's memory. Args: content: Raw text (e.g. task + result dump).
lib/crewai/src/crewai/flow/runtime/__init__.py:959
↓ 5 callers
Function
extract_tool_call_info
Extract tool call ID, name, and arguments from various provider formats. Args: tool_call: The tool call object to extract info from.
lib/crewai/src/crewai/utilities/agent_utils.py:1193
↓ 5 callers
Method
format_error
Format an error message with the given template and error. Args: template: The error message template to use error: T
lib/crewai/src/crewai/utilities/errors.py:42
↓ 5 callers
Method
get_agent
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:235
↓ 5 callers
Method
get_all_for_provider
Sync wrapper for aget_all_for_provider.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:480
↓ 5 callers
Method
get_completed_todos
Get all completed todos. Returns: List of completed TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:161
↓ 5 callers
Method
get_context_window_size
Returns the context window size, using 75% of the maximum to avoid cutting off messages mid-thread. Raises: Valu
lib/crewai/src/crewai/llm.py:2403
↓ 5 callers
Function
get_last_event_id
Get the ID of the last emitted event for linear chain tracking. Returns: The event_id of the previously emitted event, or None if no even
lib/crewai/src/crewai/events/event_context.py:74
↓ 5 callers
Method
get_oauth_scopes
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:39
↓ 5 callers
Method
get_or_create_collection
Get an existing collection or create it if it doesn't exist. Returns existing collection if found, otherwise creates a new one. Keyw
lib/crewai/src/crewai/rag/chromadb/client.py:206
↓ 5 callers
Function
get_pdf_page_count
Get the page count of a PDF file. Args: file: The PDF file to measure. Returns: Number of pages, or None if page count canno
lib/crewai-files/src/crewai_files/processing/transformers.py:314
↓ 5 callers
Method
get_ready_todos
Get all todos that are ready to execute (pending with satisfied dependencies). Returns: List of TodoItem objects that can be exec
lib/crewai/src/crewai/utilities/planning_types.py:133
↓ 5 callers
Method
get_summary
(self)
lib/crewai/src/crewai/agents/agent_builder/utilities/base_token_process.py:31
↓ 5 callers
Function
get_test_path
(filename, directory)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:29
↓ 5 callers
Method
get_tool
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:232
↓ 5 callers
Function
get_tool_names
Get the sanitized names of the tools. Args: tools: List of tools to get names from. Returns: Comma-separated string of sanit
lib/crewai/src/crewai/utilities/agent_utils.py:123
↓ 5 callers
Method
handle_method_status
Show method status panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:370
↓ 5 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
↓ 5 callers
Function
is_tui_mode
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:83
↓ 5 callers
Method
kickoff
Execute the agent with the given messages. Args: messages: Either a string query or a list of message dictionaries.
lib/crewai/src/crewai/lite_agent.py:477
↓ 5 callers
Method
kickoff
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:151
↓ 5 callers
Method
kickoff_async
Start the flow execution asynchronously. This method performs state restoration (if an 'id' is provided and persistence is available)
lib/crewai/src/crewai/flow/runtime/__init__.py:1961
↓ 5 callers
Function
lock
Acquire a named lock, yielding while it is held. Args: name: A human-readable lock name (e.g. ``"chromadb_init"``). The bui
lib/crewai-core/src/crewai_core/lock_store.py:80
↓ 5 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
↓ 5 callers
Method
on_tool_use
Record a tool usage event in the current trace. Args: tool_name: Name of the tool used. tool_args: Arguments passed t
lib/crewai/src/crewai/experimental/evaluation/evaluation_listener.py:230
↓ 5 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:83
↓ 5 callers
Function
process_llm_response
Process the LLM response and format it into an AgentAction or AgentFinish. Args: answer: The raw response from the LLM use_stop_w
lib/crewai/src/crewai/utilities/agent_utils.py:567
↓ 5 callers
Method
process_response_with_all
Process response through all registered extensions. Args: agent_response: The parsed agent response. extension_states
lib/crewai/src/crewai/a2a/extensions/base.py:233
↓ 5 callers
Function
process_task_state
Process A2A task state and return result dictionary. Shared logic for both polling and streaming handlers. Args: a2a_task: The A2A t
lib/crewai/src/crewai/a2a/task_helpers.py:138
↓ 5 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:258
↓ 5 callers
Method
request_input
Request user input via console (blocking). Displays the prompt message with formatting and waits for the user to type their response.
lib/crewai/src/crewai/flow/async_feedback/providers.py:139
↓ 5 callers
Method
reset
Clear all stored task outputs.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:78
↓ 5 callers
Function
resolve_registry_ref
Resolve a registry reference to a Skill object. Resolution order: 1. ./skills/{name}/ in the current working directory (project-local) 2.
lib/crewai/src/crewai/experimental/skills/registry.py:82
↓ 5 callers
Method
run
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/flow/runtime/_actions.py:71
↓ 5 callers
Method
save
(self, documents: list[str])
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:105
↓ 5 callers
Method
set_batch_manager
Set reference to batch manager for sending events. Args: batch_manager: The trace batch manager instance.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:35
↓ 5 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
↓ 5 callers
Function
set_tui_mode
(enabled: bool)
lib/crewai/src/crewai/events/listeners/tracing/utils.py:79
↓ 5 callers
Function
should_enable_tracing
Determine if tracing should be enabled. This is the single source of truth for tracing enablement. Priority order: 1. Explicit override (
lib/crewai/src/crewai/events/listeners/tracing/utils.py:108
↓ 5 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:99
↓ 5 callers
Function
store_task_files
Store files for a task execution. Args: task_id: Unique identifier for the task. files: Dictionary mapping names to file inputs.
lib/crewai/src/crewai/utilities/file_store.py:214
↓ 5 callers
Function
strip_null_from_types
Remove null type from anyOf/type arrays. Pydantic generates `T | None` for optional fields, which creates schemas with null in the type. Howe
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:462
↓ 5 callers
Function
temp_csv_file
()
lib/crewai-tools/tests/rag/test_csv_loader.py:12
↓ 5 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:92
↓ 5 callers
Method
tools
Fetch actions and return built tools.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tool_builder.py:34
← previous
next →
601–700 of 12,753, ranked by callers