MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions14,804 in github.com/crewAIInc/crewAI

↓ 5 callersFunctionclear_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 callersMethodclose
Record that the response was closed.
lib/crewai-tools/tests/url_read_tool_test.py:47
↓ 5 callersFunctionconfigured_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 callersMethodcontents_for
Every message body sent under ``role`` across all calls.
lib/crewai/tests/agents/test_agent_inject_date.py:40
↓ 5 callersMethodconvert_to_path
Convert a path to a Path object.
lib/crewai/src/crewai/knowledge/source/excel_knowledge_source.py:129
↓ 5 callersFunctioncreate_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:597
↓ 5 callersFunctioncreate_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 callersMethodcrew_deployment_created_span
Records that a crew deployment was confirmed created, with its uuid. Distinct from :meth:`create_crew_deployment_span`, which fires *before*
lib/crewai-core/src/crewai_core/telemetry.py:388
↓ 5 callersFunctiondetect_cpu_band
The machine's core count as a coarse band, never the exact number. Answers "is this a server or someone's laptop", which ``runtime_context``
lib/crewai-core/src/crewai_core/runtime_env.py:288
↓ 5 callersFunctiondetect_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 callersFunctiondiff_checkpoints
(location: str, id1: str, id2: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:526
↓ 5 callersMethodembed_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 callersFunctionensure_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 callersMethodextract_all_tools
(self)
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py:30
↓ 5 callersFunctionextract_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 callersMethodextract_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 callersFunctionextract_knowledge_context
Extract knowledge from the task prompt.
lib/crewai/src/crewai/knowledge/utils/knowledge_utils.py:4
↓ 5 callersMethodfeature_usage_span
Records that a feature was used. One span = one count.
lib/crewai-core/src/crewai_core/telemetry.py:454
↓ 5 callersMethodfetch
Fetch latest updates from the remote.
lib/cli/src/crewai_cli/git.py:54
↓ 5 callersFunctionfetch_result
Build the (body, content_type, final_url) tuple safe_get_bounded returns.
lib/crewai-tools/tests/rag/test_pdf_loader.py:28
↓ 5 callersMethodformat_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 callersMethodget_agent
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:256
↓ 5 callersMethodget_all_for_provider
Sync wrapper for aget_all_for_provider.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:480
↓ 5 callersFunctionget_auth_token
Return the saved authentication token; raise ``AuthError`` if missing.
lib/crewai-core/src/crewai_core/auth/token.py:12
↓ 5 callersMethodget_completed_todos
Get all completed todos. Returns: List of completed TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:161
↓ 5 callersFunctionget_crewai_project_config
Return the normalized ``[tool.crewai]`` table from pyproject data.
lib/crewai-core/src/crewai_core/project.py:43
↓ 5 callersFunctionget_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 callersMethodget_oauth_scopes
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:39
↓ 5 callersMethodget_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 callersFunctionget_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 callersMethodget_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 callersMethodget_summary
(self)
lib/crewai/src/crewai/agents/agent_builder/utilities/base_token_process.py:31
↓ 5 callersFunctionget_test_path
(filename, directory)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:31
↓ 5 callersMethodget_tool
(self, handle: str)
lib/crewai-core/src/crewai_core/plus_api.py:253
↓ 5 callersFunctionget_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 callersFunctionguardrail
(result: TaskOutput)
lib/crewai/tests/test_task_guardrails.py:53
↓ 5 callersMethodhandle_method_status
Show method status panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:378
↓ 5 callersMethodkickoff
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 callersMethodkickoff_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:2134
↓ 5 callersMethodlist_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
↓ 5 callersFunctionlock
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 callersFunctionmain
Entry point for the CLI.
lib/devtools/src/crewai_devtools/cli.py:2542
↓ 5 callersFunctionmake_not_found
(message: str, code: str | None = None)
lib/crewai/tests/llms/openai/test_responses_only_models.py:38
↓ 5 callersFunctionmerge_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 callersMethodon_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 callersFunctionoptimize_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 callersFunctionprocess_guardrail
Process the guardrail for the agent output. Args: output: The output to validate with the guardrail guardrail: The guardrail to v
lib/crewai/src/crewai/utilities/guardrail.py:123
↓ 5 callersFunctionprocess_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:662
↓ 5 callersMethodprocess_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 callersFunctionprocess_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 callersFunctionrecorded_tool_name
The tool_name the code under test handed to telemetry.
lib/crewai/tests/tools/test_tool_usage_error_attribution.py:71
↓ 5 callersMethodrequest_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 callersMethodreset
Clear all stored task outputs.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:78
↓ 5 callersFunctionresolve_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 callersFunctionresolve_ref
Return the Python symbol named by a project definition field.
lib/crewai/src/crewai/utilities/declarative_refs.py:41
↓ 5 callersMethodrun
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/flow/runtime/_actions.py:72
↓ 5 callersMethodsave
(self, documents: list[str])
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:105
↓ 5 callersMethodsave_pending_feedback
(self, flow_uuid, context, state_data)
lib/crewai/tests/test_flow_from_definition.py:3537
↓ 5 callersMethodset_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 callersFunctionset_execution_uuid
Bind an execution uuid for the current context. Use this from enterprise / hosts that already own the run id (e.g. Celery ``kickoff_id``). Ov
lib/crewai/src/crewai/execution.py:32
↓ 5 callersFunctionshould_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 callersFunctionshould_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 callersMethodshutdown
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 callersFunctionstore_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 callersFunctionstrip_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 callersFunctiontemp_csv_file
()
lib/crewai-tools/tests/rag/test_csv_loader.py:12
↓ 5 callersMethodto_config_dict
Serialize this LLM to a dict that can reconstruct it via ``LLM(**config)``. Returns the core fields that BaseLLM owns. Provider subclasses sh
lib/crewai/src/crewai/llms/base_llm.py:301
↓ 5 callersFunctiontools_effort_error
The 400 OpenAI returns for tools + reasoning_effort.
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:69
↓ 5 callersFunctiontrain_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 callersFunctiontriggered_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 callersMethodupdate
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 callersMethodvalidate
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 callersFunctionvalidate_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:139
↓ 5 callersFunctionvalidate_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 callersFunctionvalidate_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 callersMethod__init__
(self)
lib/crewai/tests/test_flow.py:527
↓ 4 callersMethod_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 callersMethod_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:1344
↓ 4 callersMethod_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:1510
↓ 4 callersMethod_build_config
Build an EdgeConfig for the given vector dimensionality.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:147
↓ 4 callersMethod_build_messages
(self)
lib/crewai/src/crewai/utilities/converter.py:45
↓ 4 callersMethod_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
↓ 4 callersMethod_chat
(handler_result: Any)
lib/crewai/tests/test_flow_conversation.py:3696
↓ 4 callersMethod_claim_usage
Atomically check max usage and increment the counter. Returns: None if usage was claimed, otherwise a :class:`ToolFailure`. A
lib/crewai/src/crewai/tools/base_tool.py:302
↓ 4 callersFunction_coerce_int
(value: Any)
lib/crewai/src/crewai/types/usage_metrics.py:13
↓ 4 callersMethod_complete_step
(self, style: str, message: str, detail: str = "")
lib/cli/src/crewai_cli/crew_run_tui.py:1754
↓ 4 callersFunction_condition_branches
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/runtime/__init__.py:174
↓ 4 callersMethod_convert_tools_for_interference
Convert tools to a format that can be used for interference. Args: tools: List of tools to convert. Returns:
lib/crewai/src/crewai/llms/base_llm.py:432
↓ 4 callersFunction_copy_method_metadata
Copy metadata from original function to wrapper. Args: wrapper: The wrapper object to copy metadata to original: The original fun
lib/crewai/src/crewai/hooks/wrappers.py:15
↓ 4 callersMethod_copy_state
Create a copy of the current state. Returns: A copy of the current state
lib/crewai/src/crewai/flow/runtime/__init__.py:1786
↓ 4 callersFunction_create_hook_decorator
Create a hook decorator with filtering support. This factory function eliminates code duplication across the four hook decorators. Args:
lib/crewai/src/crewai/hooks/decorators.py:18
↓ 4 callersMethod_create_mock_plan_response
Helper to create mock plan response.
lib/crewai/tests/utilities/test_structured_planning.py:508
↓ 4 callersMethod_create_tasks_summary
Creates a summary of all tasks. Returns: A string summarizing all tasks with their details.
lib/crewai/src/crewai/utilities/planning_handler.py:137
↓ 4 callersMethod_declaration
(**overrides: Any)
lib/crewai/tests/test_flow_conversation.py:3278
↓ 4 callersFunction_definition_condition_parts
( condition: dict[str, Any], )
lib/crewai/src/crewai/flow/visualization/builder.py:34
↓ 4 callersFunction_delegate_to_a2a
Delegate to A2A agent with multi-turn conversation support. Args: self: The agent instance agent_response: The AgentResponse indi
lib/crewai/src/crewai/a2a/wrapper.py:1231
↓ 4 callersMethod_deployment_page_url
Build the deployment show URL, resolving UUID-only responses if needed.
lib/cli/src/crewai_cli/deploy/main.py:243
↓ 4 callersFunction_deserialize_llm_from_context
( llm_data: dict[str, Any] | str | None, )
lib/crewai/src/crewai/flow/human_feedback.py:128
↓ 4 callersMethod_dispatch_interception
Dispatch ``point`` unless this flow must not expose it. Returns whether the dispatch happened, so callers can keep the EXECUTION_STAR
lib/crewai/src/crewai/flow/runtime/__init__.py:2597
↓ 4 callersMethod_display_deployment_info
Display deployment information. Args: json_response (Dict[str, Any]): The deployment information to display.
lib/cli/src/crewai_cli/deploy/main.py:193
← previousnext →801–900 of 14,804, ranked by callers