MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions15,572 in github.com/crewAIInc/crewAI

↓ 15 callersMethod__post_init__
(self)
lib/crewai/src/crewai/a2a/errors.py:141
↓ 15 callersMethod__setattr__
(self, name: str, value: Any)
lib/crewai/src/crewai/llms/base_llm.py:205
↓ 15 callersFunction_create_azure_responses
Create an AzureCompletion(api='responses'). Must be called inside a context where OpenAICompletion is already mocked (i.e. via the ``mock_ope
lib/crewai/tests/llms/azure/test_azure_responses.py:58
↓ 15 callersFunction_error_envelope
A 200 body holding only an upstream error, as gateways send it.
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:39
↓ 15 callersFunction_find_latest_non_yanked_version
Return the latest non-prerelease, non-yanked version from PyPI releases.
lib/crewai-core/src/crewai_core/version.py:61
↓ 15 callersMethod_format_messages_for_anthropic
Format messages for Anthropic API. Anthropic has specific requirements: - System messages are separate from conversation messages
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:784
↓ 15 callersFunction_rec
( content: str = "test", scope: str = "/", categories: list[str] | None = None, importance: fl
lib/crewai/tests/memory/test_qdrant_edge_storage.py:35
↓ 15 callersFunction_slack_steps
()
lib/crewai/tests/tools/test_tool_failure.py:107
↓ 15 callersMethodclose
Kill the cached persistent sandbox if one exists.
lib/crewai-tools/src/crewai_tools/tools/e2b_sandbox_tool/e2b_base_tool.py:183
↓ 15 callersFunctioncreate_project_zip
Create a deployable ZIP archive for a CrewAI project. Raises: ArchiveError: Nothing deployable was found, or the project could not be
lib/cli/src/crewai_cli/deploy/archive.py:48
↓ 15 callersMethodcursor
(self, factory: type[sqlite3.Cursor] = _FailingCursor)
lib/crewai/tests/storage/test_kickoff_task_outputs_storage.py:87
↓ 15 callersMethodexecute
(self, *args: Any, **kwargs: Any)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:112
↓ 15 callersFunctionextract_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:1398
↓ 15 callersFunctionformat_message_for_llm
Format a message for the LLM. Args: prompt: The message content. role: The role of the message sender, either 'user' or 'assist
lib/crewai/src/crewai/utilities/agent_utils.py:432
↓ 15 callersMethodfrom_function
Create a tool from a function. Args: func: The function to create a tool from name: The name of the tool. Defaults to
lib/crewai/src/crewai/tools/structured_tool.py:235
↓ 15 callersMethodget_audience
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:23
↓ 15 callersMethodget_tracer
(self, name="crewai.enterprise")
lib/crewai/tests/telemetry/test_enterprise_session_compatibility.py:38
↓ 15 callersMethodkickoff_async
Asynchronous kickoff method to start the crew execution. Args: inputs: Optional input dictionary for task interpolation.
lib/crewai/src/crewai/crew.py:1135
↓ 15 callersMethodload
Load all task output records from the database. Returns: List of dictionaries containing task output records, ordered by task_ind
lib/crewai/src/crewai/memory/storage/kickoff_task_outputs_storage.py:175
↓ 15 callersFunctionload_agent
Load an existing ``Agent`` from a ``.json`` / ``.jsonc`` definition file.
lib/crewai/src/crewai/project/json_loader.py:236
↓ 15 callersMethodread
Retrieve a cached tool result. Args: tool: Name of the tool. input: Input string used for the tool. Returns:
lib/crewai/src/crewai/agents/cache/cache_handler.py:46
↓ 15 callersFunctionregister_before_llm_call_hook
Register a global before_llm_call hook. Global hooks are added to all executors automatically. This is a convenience function for registering
lib/crewai/src/crewai/hooks/llm_hooks.py:230
↓ 15 callersMethodreset
(self)
lib/crewai/tests/agents/test_agent.py:1935
↓ 15 callersFunctionresolve_tool_failure_policy
Resolve the effective policy for one call. Most specific wins: tool, task, agent, crew, then :attr:`ToolFailurePolicy.WARN`. Callers pass eit
lib/crewai/src/crewai/tools/tool_failure.py:177
↓ 15 callersMethodstore
Unpack an archive into the cache and write metadata. Uses tarfile with filter='data' for path-traversal protection. Args:
lib/crewai/src/crewai/skills/cache.py:84
↓ 15 callersMethodsupports_function_calling
Check if the model supports function calling.
lib/crewai/src/crewai/llms/providers/azure/completion.py:1281
↓ 15 callersMethodto_dict
Convert to JSON-RPC error object format.
lib/crewai/src/crewai/a2a/errors.py:146
↓ 15 callersFunctionvalidate_jwt_token
Verify a JWT's signature and claims using PyJWT. Args: jwt_token: The JWT (JWS) string to validate. jwks_url: The URL of the JWKS
lib/crewai-core/src/crewai_core/auth/utils.py:13
↓ 14 callersFunctionCrewaiPlatformTools
Factory function that returns crewai platform tools. Args: apps: List of platform apps to get tools that are available on the platform.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tools.py:12
↓ 14 callersMethod_add
( self, severity: Severity, code: str, title: str, detail: str = "",
lib/cli/src/crewai_cli/deploy/validate.py:259
↓ 14 callersMethod_initialize_backend_batch
Send batch initialization to backend
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:129
↓ 14 callersMethod_is_conversational_enabled
(self)
lib/crewai/src/crewai/flow/conversational_mixin.py:990
↓ 14 callersFunction_make_list_flow
()
lib/crewai/tests/test_flow.py:2217
↓ 14 callersFunction_resolve_tools
Resolve tool specs into tool instances or serialized BaseTool dicts. Strings keep the existing shorthand behavior. Dicts are passed through so
lib/crewai/src/crewai/project/json_loader.py:1803
↓ 14 callersFunction_scaffold_standard_crew
( root: Path, *, name: str = "my_crew", include_crew_py: bool = True, include_agents_yaml:
lib/cli/tests/deploy/test_validate.py:53
↓ 14 callersMethodadd_documents
Add documents with their embeddings to a collection. Keyword Args: collection_name: The name of the collection to add documents t
lib/crewai/src/crewai/rag/qdrant/client.py:234
↓ 14 callersMethoddiscard
(self)
lib/crewai/tests/test_flow_from_definition.py:3880
↓ 14 callersFunctiondiscover_skills
Scan a directory for skill directories containing SKILL.md. Loads each discovered skill at METADATA disclosure level. Args: search_p
lib/crewai/src/crewai/skills/loader.py:44
↓ 14 callersMethoddrain_writes
Block until all pending background saves have completed. Called automatically by ``recall()`` and should be called by the crew at shu
lib/crewai/src/crewai/memory/unified_memory.py:355
↓ 14 callersFunctionget_conversion_instructions
Generate conversion instructions based on the model and LLM capabilities. Args: model: A Pydantic model class. llm: The language
lib/crewai/src/crewai/utilities/converter.py:546
↓ 14 callersFunctionload_skill_metadata
Load a skill at METADATA disclosure level. Parses SKILL.md frontmatter only and validates directory name. Args: skill_dir: Path to t
lib/crewai/src/crewai/skills/parser.py:95
↓ 14 callersFunctionmessage_content_text
Return the message content as text. Used wherever a message has to collapse to a string -- token estimation, memory, and the one turn promote
lib/crewai/src/crewai/utilities/agent_utils.py:876
↓ 14 callersMethodpause_live_updates
Pause Live session updates to allow for human input without interference. This stops any active streaming Live session to prevent console ref
lib/crewai/src/crewai/events/utils/console_formatter.py:192
↓ 14 callersFunctionplatform_context
Context manager to temporarily set the platform integration token. Args: integration_token: The integration token to set within the context
lib/crewai/src/crewai/context.py:52
↓ 14 callersMethodquery
(self, *args: Any, **kwargs: Any)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:102
↓ 14 callersMethodread
(self, tool: str, input: str)
lib/crewai/tests/tools/test_tool_failure.py:1068
↓ 14 callersFunctionsanitize_scope_name
Sanitize a name for use in hierarchical scope paths. Converts to lowercase, replaces non-alphanumeric chars (except underscore and hyphen) wi
lib/crewai/src/crewai/memory/utils.py:8
↓ 13 callersFunction_build_crew
(policy: ToolFailurePolicy | None = None, **task_kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:119
↓ 13 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:843
↓ 13 callersMethod_invoke_after_llm_call_hooks
Invoke after_llm_call hooks for an LLM call that reached the provider. This method should be called by native provider implementations after
lib/crewai/src/crewai/llms/base_llm.py:1090
↓ 13 callersFunction_is_version_yanked
Return ``(yanked, reason)`` for ``version_str`` against PyPI releases.
lib/crewai-core/src/crewai_core/version.py:91
↓ 13 callersMethod_require_memory
Return the bound ``Memory`` or raise a clear error if missing.
lib/crewai/src/crewai/memory/memory_scope.py:79
↓ 13 callersMethod_run
(self, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/tools/vision_tool/vision_tool.py:139
↓ 13 callersMethod_usage_to_dict
Convert a provider usage object to a plain dict and flatten the cache/reasoning sub-counts that LiteLLM nests under provider-specific
lib/crewai/src/crewai/llm.py:2127
↓ 13 callersMethod_validate_response
Handle and display error messages from API responses. Args: response: The response from the Plus API.
lib/cli/src/crewai_cli/command.py:40
↓ 13 callersFunction_write
(tmp_path: Path, contents: str)
lib/cli/tests/test_run_declarative_flow.py:262
↓ 13 callersMethodcancel
(id)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:617
↓ 13 callersMethodclear
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1248
↓ 13 callersMethodcreate
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:68
↓ 13 callersMethoddelete
Delete memories matching the given criteria. Args: scope_prefix: Optional scope path prefix. categories: Optional lis
lib/crewai/src/crewai/memory/storage/backend.py:80
↓ 13 callersMethodformat
Format log record as JSON string.
lib/crewai/src/crewai/a2a/utils/logging.py:23
↓ 13 callersMethodfrom_dict
Create a Fingerprint from a dictionary representation. Args: data: Dictionary representation of a fingerprint Returns:
lib/crewai/src/crewai/security/fingerprint.py:136
↓ 13 callersMethodgenerate
(self)
lib/crewai/tests/telemetry/test_flow_telemetry.py:286
↓ 13 callersMethodget_client_id
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:30
↓ 13 callersFunctionget_constraints_for_provider
Get constraints for a provider by name or return if already ProviderConstraints. Args: provider: Provider name string or ProviderConstrai
lib/crewai-files/src/crewai_files/processing/constraints.py:323
↓ 13 callersMethodinsert
(self, index: int, tool: T)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:48
↓ 13 callersFunctionparse_frontmatter
Split SKILL.md content into frontmatter dict and body text. Args: content: Raw SKILL.md file content. Returns: Tuple of (fro
lib/crewai/src/crewai/skills/parser.py:39
↓ 13 callersFunctionparse_toml
Parse a TOML string and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:36
↓ 13 callersFunctionparse_tool_call_args
Parse tool call arguments from a JSON string or dict. Returns: ``(args_dict, None)`` on success, or ``(None, error_result)`` on J
lib/crewai/src/crewai/utilities/agent_utils.py:1914
↓ 13 callersFunctionrecord
(session, name="execute flow")
lib/crewai/tests/telemetry/test_session_trace_export.py:123
↓ 13 callersMethodstart
(self)
lib/crewai/tests/test_crew.py:4725
↓ 13 callersMethodstop
Stop the MCP server.
lib/crewai-tools/src/crewai_tools/adapters/mcp_adapter.py:196
↓ 12 callersFunction_assert_tools_overlapped
()
lib/crewai/tests/agents/test_native_tool_calling.py:131
↓ 12 callersMethod_emit_call_denied_event
Report a hook deny as a deny rather than as a provider failure. The call still owes its started event a terminal one, so the failed event
lib/crewai/src/crewai/llms/base_llm.py:672
↓ 12 callersFunction_kickoff
(payload: Any, agent_cls: type = Agent)
lib/crewai/tests/agents/test_agent_kickoff_message_history.py:65
↓ 12 callersFunction_llm_mock
(return_value: str = "described")
lib/crewai-tools/tests/tools/test_vision_tool.py:15
↓ 12 callersFunction_make_tar_gz
Build an in-memory .tar.gz containing the given filename → content mapping.
lib/crewai/tests/skills/test_cache.py:16
↓ 12 callersFunction_normalize_ollama_base_url
Normalize an Ollama base URL into a full OpenAI-compatible endpoint. ``OLLAMA_HOST`` follows Ollama's own convention and may be a bare host (
lib/crewai/src/crewai/llms/providers/openai_compatible/completion.py:98
↓ 12 callersMethod_oauth2_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:40
↓ 12 callersFunction_parallel_prompt
()
lib/crewai/tests/agents/test_native_tool_calling.py:103
↓ 12 callersFunction_pin_crewai_deps
Replace crewai dependency version pins in a pyproject.toml string. Handles both pinned (==) and minimum (>=) version specifiers, as well as e
lib/devtools/src/crewai_devtools/cli.py:622
↓ 12 callersMethod_safe_telemetry_procedure
Run a void telemetry procedure, swallowing failures.
lib/crewai-core/src/crewai_core/telemetry.py:394
↓ 12 callersFunction_saved_methods
(store)
lib/crewai/tests/test_flow_from_definition.py:3548
↓ 12 callersMethod_should_defer_trace_finalization
Whether this kickoff should defer final flow trace finalization.
lib/crewai/src/crewai/flow/runtime/__init__.py:507
↓ 12 callersFunction_validate_deployment_repo_crewai_pin
Fail unless every effective canary CrewAI requirement has the exact pin.
lib/devtools/src/crewai_devtools/cli.py:1554
↓ 12 callersMethodaadd_documents
Add documents with their embeddings to a collection asynchronously. Keyword Args: collection_name: The name of the collection to
lib/crewai/src/crewai/rag/qdrant/client.py:279
↓ 12 callersMethodadd
Add a new task output record to the database. Args: task: The Task object containing task details. output: Dictionary
lib/crewai/src/crewai/memory/storage/kickoff_task_outputs_storage.py:78
↓ 12 callersFunctionbegin_execution
Start an execution context unless one is already active. The outermost crew or flow receives a new uuid by default. Nested executions inherit
lib/crewai/src/crewai/execution.py:85
↓ 12 callersFunctiondownload_skill
Download a skill from the registry and store it in the cache. Args: org: Organisation slug. name: Skill name. source: Opt
lib/crewai/src/crewai/skills/registry.py:275
↓ 12 callersFunctionfind_http_status
Search exceptions for an HTTP status reported by an MCP server. Args: *errors: Exceptions to search, in order of preference. Returns
lib/crewai/src/crewai/mcp/exceptions.py:230
↓ 12 callersMethodformat_output_for_agent
(self, raw_result: object)
lib/crewai/tests/tools/test_base_tool.py:610
↓ 12 callersMethodget_cached_path
Return the cached skill directory path if usable, else None. Args: org: Organisation slug. name: Skill name.
lib/crewai/src/crewai/skills/cache.py:44
↓ 12 callersMethodget_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:2505
↓ 12 callersFunctionget_current_call_id
Get current call_id from context
lib/crewai/src/crewai/llms/base_llm.py:148
↓ 12 callersFunctionhandle_unknown_error
Handle unknown errors by informing the user. Args: printer: Printer instance for output exception: The exception that occurred
lib/crewai/src/crewai/utilities/agent_utils.py:723
↓ 12 callersMethodlist
List all CLI configuration parameters.
lib/cli/src/crewai_cli/settings/main.py:24
↓ 12 callersFunctionllm_call_context
Context manager that establishes an LLM call scope with a unique call_id.
lib/crewai/src/crewai/llms/base_llm.py:100
↓ 12 callersMethodload
Load and process all files from a directory recursively. Args: source_content: Directory path or URL to a directory listing
lib/crewai-tools/src/crewai_tools/rag/loaders/directory_loader.py:10
↓ 12 callersMethodread
Fetch content from URL (for providers that don't support URL references).
lib/crewai-files/src/crewai_files/core/sources.py:528
↓ 12 callersFunctionresolve_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/skills/registry.py:114
← previousnext →201–300 of 15,572, ranked by callers