MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions12,753 in github.com/crewAIInc/crewAI

↓ 6 callersFunction_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 callersMethod_track_token_usage_internal
Track token usage internally in the LLM instance. Args: usage_data: Token usage data from the API response
lib/crewai/src/crewai/llms/base_llm.py:948
↓ 6 callersFunction_ts_from_name
Extract timestamp from checkpoint ID or filename.
lib/cli/src/crewai_cli/checkpoint_cli.py:201
↓ 6 callersMethod_use_trained_data
Use trained data for the agent task prompt to improve output.
lib/crewai/src/crewai/agent/core.py:1199
↓ 6 callersMethod_write_project
(self, root, tool_line='"custom:landmine"')
lib/crewai/tests/project/test_json_loader.py:500
↓ 6 callersFunctionaget_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:514
↓ 6 callersMethodaget_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 callersFunctioncancel
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 callersFunctionchunk_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 callersFunctionclear_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:287
↓ 6 callersMethodclose
Close the underlying stream.
lib/crewai-files/src/crewai_files/core/sources.py:388
↓ 6 callersFunctioncreate_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 callersMethodcrew
Creates the Content Crew
lib/cli/src/crewai_cli/templates/flow/crews/content_crew/content_crew.py:53
↓ 6 callersMethodcrew
(self)
lib/crewai/tests/test_project.py:87
↓ 6 callersFunctiondefault_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 callersMethodevaluate
Evaluate this value as a full CEL expression.
lib/crewai/src/crewai/flow/expressions.py:250
↓ 6 callersFunctionexecute_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:1401
↓ 6 callersMethodexecute_with_trigger
Execute crew with trigger payload.
lib/cli/src/crewai_cli/triggers/main.py:37
↓ 6 callersFunctionextract_json_from_llm_response
(text: str)
lib/crewai/src/crewai/experimental/evaluation/json_parser.py:8
↓ 6 callersFunctionfactory
Create a gRPC channel for the given URL.
lib/crewai/src/crewai/a2a/utils/delegation.py:811
↓ 6 callersFunctionformat_path_for_display
Return a path label that does not expose absolute directory prefixes.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:25
↓ 6 callersMethodformat_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 callersFunctionget_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 callersFunctionget_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 callersFunctionget_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 callersFunctionget_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:461
↓ 6 callersMethodget_pending_todos
Get all pending todos. Returns: List of pending TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:177
↓ 6 callersFunctionget_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 callersMethodhandle_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 callersFunctionhandle_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:293
↓ 6 callersFunctionhandle_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 callersFunctionhandler
(source: object, event: BaseEvent)
lib/crewai/tests/utilities/events/test_shutdown.py:27
↓ 6 callersFunctionhas_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:280
↓ 6 callersFunctionhas_user_declined_tracing
Return True if the user has explicitly declined trace collection.
lib/crewai-core/src/crewai_core/user_data.py:69
↓ 6 callersFunctioninitialize_tool_with
(mock_driver)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:25
↓ 6 callersFunctionis_dmn_mode_enabled
Return True when the enterprise non-interactive mode is enabled.
lib/cli/src/crewai_cli/utils.py:51
↓ 6 callersMethodkickoff_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:1848
↓ 6 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
↓ 6 callersMethodload_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 callersMethodlogin
(self)
lib/cli/src/crewai_cli/tools/main.py:229
↓ 6 callersMethodlogin_to_tool_repository
( self, user_identifier: str | None = None )
lib/crewai-core/src/crewai_core/plus_api.py:224
↓ 6 callersMethodmain
()
lib/crewai/tests/agents/test_agent.py:2772
↓ 6 callersFunctionnormalize_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 callersMethodprocess
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 callersFunctionread_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:107
↓ 6 callersFunctionrender_text_description_and_args
Render the tool name, description, and args in plain text. search: This tool is used for search, args: {"query": {"type": "string"}} calculat
lib/crewai/src/crewai/utilities/agent_utils.py:135
↓ 6 callersFunctionresize_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 callersFunctionrestore_event_scope
Restore the event scope stack from a checkpoint.
lib/crewai/src/crewai/events/event_context.py:136
↓ 6 callersFunctionresume_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 callersFunctionsafe_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 callersMethodset
Set a CLI configuration parameter.
lib/cli/src/crewai_cli/settings/main.py:77
↓ 6 callersFunctionset_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 callersMethodsetup_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 callersMethodstart
Start the MCP server and initialize the tools.
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py:192
↓ 6 callersMethodstream_events
Run the LLM call and stream scoped public ``StreamFrame`` events.
lib/crewai/src/crewai/llms/base_llm.py:349
↓ 6 callersMethodsubscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:240
↓ 6 callersMethodtools
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 callersMethodupdate
Update a record by upserting with the same point ID.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:488
↓ 6 callersFunctionupdate_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:340
↓ 6 callersFunctionversion
Show the installed version of crewai.
lib/cli/src/crewai_cli/cli.py:217
↓ 5 callersMethod_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:2987
↓ 5 callersMethod_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 callersFunction_build_conversation_messages
Build a realistic multi-turn conversation for summarization tests.
lib/crewai/tests/utilities/test_summarize_integration.py:19
↓ 5 callersMethod_build_mcp_config_from_dict
Convert a config dict from crewai-oauth into an MCPServerConfig.
lib/crewai/src/crewai/mcp/tool_resolver.py:466
↓ 5 callersMethod_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 callersMethod_convert_contents_to_dict
Convert contents to dict format.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1487
↓ 5 callersMethod_copy_and_serialize_state
(self)
lib/crewai/src/crewai/flow/runtime/__init__.py:2685
↓ 5 callersFunction_create_sqlite_checkpoint
( db_path: str, checkpoint_id: str | None = None, data: str | None = None, tasks_completed: in
lib/crewai/tests/test_checkpoint_cli.py:90
↓ 5 callersMethod_create_temp_json_file
Helper to write JSON data to a temporary file and return its path.
lib/crewai-tools/tests/rag/test_json_loader.py:13
↓ 5 callersFunction_crew_with_placeholders
A minimal crew whose agent goal references each ``{name}`` placeholder.
lib/cli/tests/test_run_crew.py:657
↓ 5 callersMethod_delete_secure_file
Delete a secure file (no-op if absent).
lib/crewai-core/src/crewai_core/token_manager.py:155
↓ 5 callersMethod_do_write
Execute a single table write with retry on commit conflicts. Caller must already hold ``store_lock(self._lock_name)``.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:128
↓ 5 callersFunction_entry
Build a rankable catalog entry. ``sort`` is a comparable tuple ``(created, date_int, version_tuple)`` so a real vendor timestamp wins, then a
lib/cli/src/crewai_cli/model_catalog.py:440
↓ 5 callersFunction_estimate_token_count
Estimate token count using a conservative cross-provider heuristic. Args: text: The text to estimate tokens for. Returns: Es
lib/crewai/src/crewai/utilities/agent_utils.py:752
↓ 5 callersMethod_fetch_templates
Fetch all template repos from the GitHub org.
lib/cli/src/crewai_cli/remote_template/main.py:154
↓ 5 callersFunction_field_errors
( data: dict[str, Any], allowed_fields: set[str], runtime_fields: set[str], source: str | Path
lib/crewai/src/crewai/project/json_loader.py:1140
↓ 5 callersMethod_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:290
↓ 5 callersMethod_get_custom_llm_provider
Derives the custom_llm_provider from the model string. - For example, if the model is "openrouter/deepseek/deepseek-chat", returns "o
lib/crewai/src/crewai/llm.py:2324
↓ 5 callersMethod_get_domain
(self)
lib/crewai-core/src/crewai_core/auth/providers/auth0.py:37
↓ 5 callersMethod_get_or_create_key
Get or create the encryption key.
lib/crewai-core/src/crewai_core/token_manager.py:32
↓ 5 callersMethod_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/gemini/completion.py:128
↓ 5 callersMethod_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:285
↓ 5 callersMethod_handle_emit_call_events
Handle the events for the LLM call. Args: response (str): The response from the LLM call. call_type (str): The type o
lib/crewai/src/crewai/llm.py:2110
↓ 5 callersFunction_http_get_json
GET ``url`` and return parsed JSON, with a short timeout and TLS verify.
lib/cli/src/crewai_cli/model_catalog.py:543
↓ 5 callersFunction_humanize
Derive a readable label from a raw model id. Best-effort only — vendor display names and the curated label map take precedence. Drops embedde
lib/cli/src/crewai_cli/model_catalog.py:505
↓ 5 callersFunction_infer_result_schema_from_callable
( func: Callable[..., Any], )
lib/crewai/src/crewai/tools/structured_tool.py:40
↓ 5 callersMethod_inject_date_to_task
Inject the current date into the task description if inject_date is enabled.
lib/crewai/src/crewai/agent/core.py:1238
↓ 5 callersMethod_is_context_limit_error
Check if the error message indicates a context length limit error. Args: error_message: The error message to check. Retu
lib/crewai/src/crewai/utilities/exceptions/context_window_exceeding_exception.py:33
↓ 5 callersFunction_linear_record
Build a simple chain: e0 → e1 → e2 → ... with previous_event_id.
lib/crewai/tests/test_event_record.py:19
↓ 5 callersMethod_make_batch_manager
Create a TraceBatchManager with a pre-set trace_batch_id.
lib/crewai/tests/tracing/test_tracing.py:1162
↓ 5 callersFunction_make_dict_flow
()
lib/crewai/tests/test_flow.py:2223
↓ 5 callersMethod_mark_batch_as_failed
Mark a trace batch as failed, routing to the correct endpoint.
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:233
↓ 5 callersMethod_mark_todo_failed
( self, step_number: int, result: str | None = None, error: str | None = None,
lib/crewai/src/crewai/experimental/agent_executor.py:459
↓ 5 callersFunction_method_action
(method: Any)
lib/crewai/src/crewai/flow/dsl/_utils.py:89
↓ 5 callersFunction_mock_get
(monkeypatch: pytest.MonkeyPatch, get_response: Any)
lib/crewai-tools/tests/utilities/test_safe_requests.py:53
↓ 5 callersFunction_normalize_ollama_base_url
Normalize Ollama base URL to ensure it ends with /v1. Ollama uses OLLAMA_HOST which may not include the /v1 suffix, but the OpenAI-compatible
lib/crewai/src/crewai/llms/providers/openai_compatible/completion.py:95
↓ 5 callersFunction_normalize_snowflake_base_url
Return a Snowflake Cortex REST OpenAI-compatible base URL.
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:21
↓ 5 callersFunction_normalize_source
Convert raw input to appropriate source type.
lib/crewai-files/src/crewai_files/core/sources.py:562
↓ 5 callersFunction_object_ref
Format a class or instance as the canonical ``module:qualname`` ref.
lib/crewai/src/crewai/flow/flow_definition.py:73
↓ 5 callersMethod_on_crew_done
(self, output: str | None)
lib/cli/src/crewai_cli/crew_run_tui.py:684
← previousnext →501–600 of 12,753, ranked by callers