MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions13,282 in github.com/crewAIInc/crewAI

↓ 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:2964
↓ 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:2872
↓ 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 callersMethod_crew
()
lib/crewai/tests/hooks/test_interception_conformance.py:178
↓ 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:827
↓ 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:319
↓ 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:2364
↓ 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:314
↓ 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:2150
↓ 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:44
↓ 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:1287
↓ 5 callersFunction_install_fake_flow_app
Replace CrewRunApp/EventListener/summary so _run_declarative_flow_tui is driven by a controllable fake app.
lib/cli/tests/test_run_declarative_flow.py:420
↓ 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 callersFunction_parse_agent_response
Parse LLM output as AgentResponse or return raw agent response.
lib/crewai/src/crewai/a2a/wrapper.py:746
↓ 5 callersMethod_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 callersMethod_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:1404
↓ 5 callersMethod_process_field_value
(self, response: str, field_type: type | None)
lib/crewai/src/crewai/utilities/training_converter.py:90
↓ 5 callersFunction_prune_json
(location: str, keep: int | None, older_than: timedelta | None)
lib/cli/src/crewai_cli/checkpoint_cli.py:633
↓ 5 callersMethod_reasoning_effort_none_params
Params with an explicit `reasoning_effort="none"`, or None if already set. Removing the key is not enough: absence means "use the server defa
lib/crewai/src/crewai/llms/providers/openai/completion.py:1752
↓ 5 callersMethod_resolve_external
Resolve an HTTPS MCP server URL into tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:219
↓ 5 callersMethod_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 callersFunction_run
Build a ``_ScriptedFlow``, attach ``script``, kickoff. Returns the flow.
lib/crewai/tests/test_flow_usage_metrics.py:90
↓ 5 callersFunction_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/skills/cache.py:168
↓ 5 callersMethod_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:1233
↓ 5 callersFunction_scaffold_json_crew
(root: Path, *, task_agent: str = "researcher")
lib/cli/tests/deploy/test_validate.py:113
↓ 5 callersMethod_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 callersFunction_serialize_static_value
( value: Any, path: str, )
lib/crewai/src/crewai/flow/dsl/_utils.py:136
↓ 5 callersMethod_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 callersMethod_store_execution_log
( self, task: Task, output: TaskOutput, task_index: int, was_replayed:
lib/crewai/src/crewai/crew.py:1461
↓ 5 callersFunction_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 callersMethod_unsubscribe_if_no_running_memory_save
( self, *, wait_for_queued: bool = False )
lib/cli/src/crewai_cli/crew_run_tui.py:1984
↓ 5 callersFunction_user_data_file
()
lib/crewai-core/src/crewai_core/user_data.py:23
↓ 5 callersMethod_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:2375
↓ 5 callersFunction_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 callersFunction_write_python_defs
(tmp_path: Path)
lib/crewai/tests/project/test_crew_loader.py:17
↓ 5 callersMethodacreate_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 callersMethodadd_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 callersMethodadd_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 callersMethodadelete_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 callersMethodaexecute_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:925
↓ 5 callersMethodainvoke
Asynchronously invoke the tool. Args: input: The input arguments config: Optional configuration **kwargs:
lib/crewai/src/crewai/tools/structured_tool.py:373
↓ 5 callersMethodaread
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 callersMethodasearch
(self, query, limit=5, metadata_filter=None, score_threshold=0.6)
lib/crewai/tests/agents/test_agent.py:1914
↓ 5 callersFunctionassert_parity
(flow_cls, yaml_str, inputs=None, ordered=True)
lib/crewai/tests/test_flow_from_definition.py:532
↓ 5 callersMethodastream
Run the flow asynchronously and stream scoped public frames.
lib/crewai/src/crewai/flow/runtime/__init__.py:1914
↓ 5 callersMethodcall
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:339
↓ 5 callersMethodcheck_max_iterations
Check if max iterations reached before proceeding with reasoning.
lib/crewai/src/crewai/experimental/agent_executor.py:2115
↓ 5 callersMethodcheckpoint
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 callersMethodcheckpoint
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 callersFunctionclassify_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 callersMethodclear
Sync wrapper for aclear.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:475
↓ 5 callersFunctionclear_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 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
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 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:54
↓ 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:581
↓ 5 callersMethodcreate_crew
(self, **kwargs)
lib/cli/tests/test_crew_run_tui.py:88
↓ 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:208
↓ 5 callersMethodcreate_test_tool
(self)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:28
↓ 5 callersFunctiondiff_checkpoints
(location: str, id1: str, id2: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:526
↓ 5 callersMethoddisconnect
Disconnect from MCP server and cleanup resources.
lib/crewai/src/crewai/mcp/client.py:360
↓ 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 callersFunctionexecute_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:153
↓ 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
← previousnext →601–700 of 13,282, ranked by callers