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
↓ 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
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:963
↓ 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:380
↓ 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
as_agent_message
Render the text the agent sees for this failure.
lib/crewai/src/crewai/tools/tool_failure.py:104
↓ 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:1965
↓ 5 callers
Method
call
Call Anthropic messages API. Args: messages: Input messages for the chat completion tools: List of tool/function defi
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:340
↓ 5 callers
Method
check_max_iterations
Check if max iterations reached before proceeding with reasoning.
lib/crewai/src/crewai/experimental/agent_executor.py:2198
↓ 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_before_tool_call_hooks
Clear all registered global before_tool_call hooks. Returns: Number of hooks that were cleared Example: >>> register_before_
lib/crewai/src/crewai/hooks/tool_hooks.py:350
↓ 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
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:60
↓ 5 callers
Method
contents_for
Every message body sent under ``role`` across all calls.
lib/crewai/tests/agents/test_agent_inject_date.py:40
↓ 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:88
↓ 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:210
↓ 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
detect_tool_failure
Return the failure a tool declared, if it declared one. Only an explicit :class:`ToolFailure` counts, so a tool legitimately returning text a
lib/crewai/src/crewai/tools/tool_failure.py:154
↓ 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
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:992
↓ 5 callers
Method
fetch
Fetch latest updates from the remote.
lib/cli/src/crewai_cli/git.py:54
↓ 5 callers
Function
fetch_result
Build the (body, content_type, final_url) tuple safe_get_bounded returns.
lib/crewai-tools/tests/rag/test_pdf_loader.py:28
↓ 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:256
↓ 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
Function
get_auth_token
Return the saved authentication token; raise ``AuthError`` if missing.
lib/crewai-core/src/crewai_core/auth/token.py:12
↓ 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:2450
↓ 5 callers
Function
get_crewai_project_config
Return the normalized ``[tool.crewai]`` table from pyproject data.
lib/crewai-core/src/crewai_core/project.py:43
↓ 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:31
↓ 5 callers
Method
get_tool
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:253
↓ 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:199
↓ 5 callers
Method
handle_method_status
Show method status panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:378
↓ 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:501
↓ 5 callers
Method
kickoff
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:153
↓ 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:2063
↓ 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
Function
main
Entry point for the CLI.
lib/devtools/src/crewai_devtools/cli.py:2542
↓ 5 callers
Function
make_not_found
(message: str, code: str | None = None)
lib/crewai/tests/llms/openai/test_responses_only_models.py:38
↓ 5 callers
Function
merge_tool_failures
Concatenate failure lists, dropping records already present. Guardrail retries rebuild the output from overlapping sources, so identity is no
lib/crewai/src/crewai/tools/tool_failure.py:211
↓ 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:650
↓ 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
Function
register_scoped
Register a hook scoped to the current :func:`scoped_hooks` context.
lib/crewai/src/crewai/hooks/dispatch.py:166
↓ 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:236
↓ 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_plus_response
Return ``response``, awaiting it first when the client is async. Args: response: A response, or an awaitable resolving to one. Retur
lib/crewai/src/crewai/utilities/agent_utils.py:86
↓ 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
Function
scoped_hooks
Enter an execution-scoped hook registry. Hooks registered inside this context (via :func:`register_scoped`) run after global hooks and are di
lib/crewai/src/crewai/hooks/dispatch.py:149
↓ 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
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
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
↓ 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
↓ 5 callers
Function
tools_effort_error
The 400 OpenAI returns for tools + reasoning_effort.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:69
↓ 5 callers
Function
train_crew
Train the crew by running a command in the UV environment. Args: n_iterations (int): The number of iterations to train the crew.
lib/cli/src/crewai_cli/train_crew.py:6
↓ 5 callers
Function
triggered_by_scope
Context manager to set the triggering event ID for causal chain tracking. All events emitted within this context will have their triggered_by_eve
lib/crewai/src/crewai/events/event_context.py:119
↓ 5 callers
Method
update
Update an existing task output in storage. Args: task_index: The index of the task to update. log: Dictionary contain
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:29
↓ 5 callers
Method
use
( self, calling: ToolCalling | InstructorToolCalling, tool_string: str )
lib/crewai/src/crewai/tools/tool_usage.py:148
↓ 5 callers
Method
validate
Validate a file against provider constraints. Args: file: The file to validate. Returns: List of validation
lib/crewai-files/src/crewai_files/processing/processor.py:72
↓ 5 callers
Function
validate_directory_path
Validate that a directory path is safe to read. Same as :func:`validate_file_path` but also checks that the path is an existing directory.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:124
↓ 5 callers
Function
validate_file
Validate a file against provider constraints. Dispatches to the appropriate validator based on file type. Args: file: The file to va
lib/crewai-files/src/crewai_files/processing/validators.py:510
↓ 5 callers
Function
validate_image
Validate an image file against constraints. Args: file: The image file to validate. constraints: Image constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:224
↓ 4 callers
Method
__init__
(self)
lib/crewai/tests/test_flow.py:527
↓ 4 callers
Method
_acall_handlers
Asynchronously call provided async handlers. Args: source: The object that emitted the event event: The event instanc
lib/crewai/src/crewai/events/event_bus.py:429
↓ 4 callers
Method
_aexecute_tasks
Executes tasks using native async and returns the final output. Args: tasks: List of tasks to execute start_index: In
lib/crewai/src/crewai/crew.py:1331
↓ 4 callers
Method
_append_message
Add message to conversation history. Args: text: Message content. role: Message role (default: assistant).
lib/crewai/src/crewai/agents/crew_agent_executor.py:1488
↓ 4 callers
Method
_build_config
Build an EdgeConfig for the given vector dimensionality.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:147
↓ 4 callers
Method
_build_messages
(self)
lib/crewai/src/crewai/utilities/converter.py:45
↓ 4 callers
Method
_build_s3_uri
Build an S3 URI from a key. Args: key: The S3 object key. Returns: S3 URI string.
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:214
← previous
next →
701–800 of 13,938, ranked by callers