MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions13,938 in github.com/crewAIInc/crewAI

↓ 10 callersMethodget_mcp_tools
Convert MCP server references/configs to CrewAI tools. Delegates to :class:`~crewai.mcp.tool_resolver.MCPToolResolver`.
lib/crewai/src/crewai/agent/core.py:1236
↓ 10 callersMethodincrement_tools_errors
Increment the tools errors counter.
lib/crewai/src/crewai/task.py:1138
↓ 10 callersMethodkickoff_for_each
Executes the Crew's workflow for each input and aggregates results. Args: inputs: List of input dictionaries, one per execution.
lib/crewai/src/crewai/crew.py:1084
↓ 10 callersMethodload
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/webpage_loader.py:16
↓ 10 callersMethodload
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/docx_loader.py:11
↓ 10 callersMethodrecall
Retrieve relevant memories. ``shallow`` embeds the query directly and runs a single vector search. ``deep`` (default) uses the Recall
lib/crewai/src/crewai/memory/unified_memory.py:681
↓ 10 callersFunctionregister_after_llm_call_hook
Register a global after_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:227
↓ 10 callersMethodreset_memories
Reset specific or all memories for the crew. Args: command_type: Type of memory to reset. Valid options: 'memory'
lib/crewai/src/crewai/crew.py:2271
↓ 10 callersMethodrun
(self)
lib/cli/tests/test_run_crew.py:533
↓ 10 callersFunctionsafe_get_bounded
GET a URL through :func:`safe_get`, refusing bodies over *max_bytes*. The body is streamed and abandoned as soon as it crosses the limit, so an
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:103
↓ 10 callersMethodsearch
Search for similar documents using a query. Keyword Args: collection_name: Name of the collection to search in. query
lib/crewai/src/crewai/rag/qdrant/client.py:322
↓ 10 callersMethodset_files
Set available input files. Args: files: Dictionary mapping file names to file inputs.
lib/crewai/src/crewai/tools/agent_tools/read_file_tool.py:39
↓ 10 callersMethodstatus
Get the git status in porcelain format.
lib/cli/src/crewai_cli/git.py:84
↓ 10 callersMethodtask_execution
Generate a standard prompt for task execution. Returns: A dictionary containing the constructed prompt(s).
lib/crewai/src/crewai/utilities/prompts.py:93
↓ 9 callersMethod__setattr__
Allow arbitrary attribute assignment for backward compat with plain class.
lib/crewai/src/crewai/flow/runtime/__init__.py:759
↓ 9 callersMethod_asave_documents
Save the documents to the storage asynchronously. This method should be called after the chunks and embeddings are generated. Raises
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:67
↓ 9 callersFunction_build_docs_root
Build a minimal docs/ tree with one previous snapshot + Edge + docs.json. The shape mirrors the real repo: an Edge directory with per-locale fold
lib/devtools/tests/test_docs_versioning.py:16
↓ 9 callersMethod_classify_import_error
Turn a raw import-time exception into a user-actionable finding.
lib/cli/src/crewai_cli/deploy/validate.py:715
↓ 9 callersMethod_collapse_to_outcome
Collapse free-form feedback to a predefined outcome using LLM. This method uses the specified LLM to interpret the human's feedback a
lib/crewai/src/crewai/flow/runtime/__init__.py:3715
↓ 9 callersMethod_extract_anthropic_token_usage
Extract token usage and response metadata from Anthropic response.
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1963
↓ 9 callersFunction_format_messages_for_summary
Format messages with role labels for summarization. Skips system messages. Handles None content, tool_calls, and multimodal content blocks.
lib/crewai/src/crewai/utilities/agent_utils.py:847
↓ 9 callersMethod_get_or_create_interpreter
Get or create a code interpreter for the specified thread. Args: thread_id: Thread ID for the code interpreter session R
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:520
↓ 9 callersFunction_is_non_roundtrippable
Return ``True`` if *fn* cannot survive a serialize/deserialize round-trip. Built-in functions, plain module-level functions, and classes produce
lib/crewai/src/crewai/types/callback.py:31
↓ 9 callersFunction_load_user_data
Read the user-data JSON file, returning ``{}`` on missing/corrupt.
lib/crewai-core/src/crewai_core/user_data.py:34
↓ 9 callersFunction_prepare_documents_for_chromadb
Prepare documents for ChromaDB by extracting IDs, texts, and metadata. Args: documents: List of BaseRecord documents to prepare. Ret
lib/crewai/src/crewai/rag/chromadb/utils.py:56
↓ 9 callersFunction_python_ref_errors
(value: Any, source: str | Path)
lib/crewai/src/crewai/project/json_loader.py:612
↓ 9 callersFunction_resolve_checkpoint
( location: str, checkpoint_id: str | None )
lib/cli/src/crewai_cli/checkpoint_cli.py:431
↓ 9 callersMethod_run_sync
Run an async coroutine from sync context without blocking event loop.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:403
↓ 9 callersMethod_safe_telemetry_procedure
Run a void telemetry procedure, swallowing failures.
lib/crewai-core/src/crewai_core/telemetry.py:272
↓ 9 callersMethod_scope_path
(self, scope: str | None)
lib/crewai/src/crewai/memory/memory_scope.py:91
↓ 9 callersMethod_set_plan_step_status
Set status for an explicit plan step reported by the planner.
lib/cli/src/crewai_cli/crew_run_tui.py:1803
↓ 9 callersFunctionactivate_skill
Promote a skill to INSTRUCTIONS disclosure level. Idempotent: returns the skill unchanged if already at or above INSTRUCTIONS. Args:
lib/crewai/src/crewai/skills/loader.py:120
↓ 9 callersMethodadd
Add a tool result to the cache. Declared failures are never stored: replaying one would make a transient error permanent for the rest
lib/crewai/src/crewai/agents/cache/cache_handler.py:23
↓ 9 callersMethodaemit
Asynchronously emit an event to registered async handlers. Only processes async handlers. Use in async contexts. Args: s
lib/crewai/src/crewai/events/event_bus.py:771
↓ 9 callersMethodclose
Clean up Stagehand resources.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:681
↓ 9 callersFunctionconfigured_project_declarative_flow
Return the configured declarative flow source for flow projects.
lib/cli/src/crewai_cli/run_declarative_flow.py:449
↓ 9 callersMethodcreate_collection
Create a new collection in Qdrant. Keyword Args: collection_name: Name of the collection to create. Must be unique. v
lib/crewai/src/crewai/rag/qdrant/client.py:68
↓ 9 callersFunctionextract_output_from_stream
Extract output from code interpreter response stream. Args: response: Response from code interpreter execution Returns: Extr
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:19
↓ 9 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:1321
↓ 9 callersMethodfinalize_session_traces
Emit a final ``FlowFinishedEvent`` and finalize the trace batch. Pairs with ``flow.defer_trace_finalization = True`` (or ``Conversati
lib/crewai/src/crewai/experimental/conversational_mixin.py:1197
↓ 9 callersMethodfrom_checkpoint
Restore a Crew from a checkpoint, ready to resume via kickoff(). Args: config: Checkpoint configuration with ``restore_from`` set
lib/crewai/src/crewai/crew.py:425
↓ 9 callersMethodfrom_provider_dict
Normalize a provider's raw usage dict into a ``UsageMetrics``. Accepts the full set of key aliases CrewAI providers emit: ``prompt_to
lib/crewai/src/crewai/types/usage_metrics.py:143
↓ 9 callersFunctionget_after_tool_call_hooks
Get all registered global after_tool_call hooks. Returns: List of registered after hooks
lib/crewai/src/crewai/hooks/tool_hooks.py:287
↓ 9 callersFunctionget_current_parent_id
Get the current parent event ID from the stack.
lib/crewai/src/crewai/events/event_context.py:62
↓ 9 callersMethodget_mcp_tools
(self, mcps: list[str])
lib/crewai/tests/agents/agent_builder/test_base_agent.py:25
↓ 9 callersFunctionget_project_id
Return ``[tool.crewai].project_id`` if the project has one. Read-only and safe to call from library code: it never creates or modifies anythi
lib/crewai-core/src/crewai_core/project.py:235
↓ 9 callersMethodinitialize_batch
Initialize a new trace batch (thread-safe)
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:89
↓ 9 callersMethodinstall
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:210
↓ 9 callersFunctionis_current_version_yanked
Return ``(yanked, reason)`` for the currently installed version.
lib/crewai-core/src/crewai_core/version.py:149
↓ 9 callersFunctionis_tracing_enabled_in_context
Check if tracing is enabled in current execution context. Returns: True if tracing is enabled in context, False otherwise. Return
lib/crewai/src/crewai/events/listeners/tracing/utils.py:161
↓ 9 callersMethodkickoff
(self, inputs)
lib/cli/tests/test_run_crew.py:592
↓ 9 callersFunctionmark_cache_breakpoint
Return ``message`` with the cache-breakpoint flag set. Returns a new dict so callers can safely pass literal dicts.
lib/crewai/src/crewai/llms/cache.py:27
↓ 9 callersMethodmark_completed
Mark a todo as completed by step number.
lib/crewai/src/crewai/utilities/planning_types.py:96
↓ 9 callersFunctionpush_event_scope
Push an event ID and type onto the scope stack.
lib/crewai/src/crewai/events/event_context.py:171
↓ 9 callersFunctionregister
Register a global hook for an interception point.
lib/crewai/src/crewai/hooks/dispatch.py:108
↓ 9 callersMethodsave
Save the data to the specified file using pickle. Args: data: The data to be saved to the file.
lib/crewai/src/crewai/utilities/file_handler.py:143
↓ 9 callersFunctionset_tui_mode
(enabled: bool)
lib/crewai/src/crewai/events/listeners/tracing/utils.py:79
↓ 9 callersFunctionstring_to_callable
Convert a dotted path string to the callable it references. If *value* is already callable it is returned as-is, with a warning if it cannot
lib/crewai/src/crewai/types/callback.py:54
↓ 9 callersFunctionvalidate_audio
Validate an audio file against constraints. Args: file: The audio file to validate. constraints: Audio constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:331
↓ 8 callersMethod__init__
(self, toolkit: CodeInterpreterToolkit, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:388
↓ 8 callersMethod_common_payload_refinement
Common payload refinement for all tools.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:284
↓ 8 callersMethod_create_mock_tool
(self, name, description)
lib/crewai-tools/tests/tools/tool_collection_test.py:20
↓ 8 callersFunction_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_loader.py:19
↓ 8 callersFunction_emit_llm_call
Emit one fake ``LLMCallCompletedEvent`` with ``current_flow_id`` pinned to ``flow_id``. Runs in a freshly-copied context so the value the bus
lib/crewai/tests/test_flow_usage_metrics.py:30
↓ 8 callersMethod_fetch_actions
Fetch action schemas from the platform API.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/crewai_platform_tool_builder.py:41
↓ 8 callersMethod_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2737
↓ 8 callersMethod_format_messages_for_converse
Format messages for Converse API following AWS documentation. Note: Returns dict[str, Any] instead of LLMMessage because Bedrock uses
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1778
↓ 8 callersMethod_get_client
Get or create the Gemini client.
lib/crewai-files/src/crewai_files/uploaders/gemini.py:116
↓ 8 callersMethod_get_client_params
Get OpenAI client parameters.
lib/crewai/src/crewai/llms/providers/openai/completion.py:398
↓ 8 callersFunction_get_machine_id
Stable, privacy-preserving machine fingerprint (cross-platform).
lib/crewai/src/crewai/events/listeners/tracing/utils.py:191
↓ 8 callersMethod_invoke_before_llm_call_hooks
Invoke before_llm_call hooks for direct LLM calls (no agent context). This method should be called by native provider implementations before
lib/crewai/src/crewai/llms/base_llm.py:988
↓ 8 callersMethod_invoke_step_callback
Invoke step callback if configured. Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/experimental/agent_executor.py:3017
↓ 8 callersFunction_is_cache_valid
Return True if the cache is less than 24 hours old.
lib/crewai-core/src/crewai_core/version.py:49
↓ 8 callersMethod_make_mcp_request
Make a JSON-RPC 2.0 MCP request to Agent Handler.
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:73
↓ 8 callersFunction_make_pyproject
( name: str = "my_crew", dependencies: Iterable[str] = ("crewai>=1.14.0",), *, hatchling: bool
lib/cli/tests/deploy/test_validate.py:23
↓ 8 callersFunction_mock_get
(monkeypatch: pytest.MonkeyPatch, get_response: Any)
lib/crewai-tools/tests/utilities/test_safe_requests.py:53
↓ 8 callersMethod_oauth2_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/keycloak.py:36
↓ 8 callersFunction_record
(dim: int, content: str = "test")
lib/crewai/tests/memory/test_dimension_mismatch.py:24
↓ 8 callersMethod_rejects_reasoning_effort_with_tools
Whether a 400 is OpenAI refusing `reasoning_effort` alongside tools. GPT-5.6 applies a server-side `reasoning_effort` default and then reject
lib/crewai/src/crewai/llms/providers/openai/completion.py:1725
↓ 8 callersFunction_resolve_dotted_path
Import a module and walk attribute lookups to resolve a dotted path. Handles multi-level qualified names like ``"module.ClassName.method"`` b
lib/crewai/src/crewai/types/callback.py:97
↓ 8 callersMethod_set_agent_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:107
↓ 8 callersMethod_set_task_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:101
↓ 8 callersFunction_split_messages_into_chunks
Split messages into chunks at message boundaries. Excludes system messages from chunks. Each chunk stays under max_tokens based on estimated
lib/crewai/src/crewai/utilities/agent_utils.py:902
↓ 8 callersFunction_task_for
(agent: Agent)
lib/crewai/tests/events/test_skill_usage_events.py:45
↓ 8 callersMethod_to_responses_input
Translate a chat-format message into Responses ``input`` items. Tool calling is expressed differently by the two APIs. Chat Completions
lib/crewai/src/crewai/llms/providers/openai/completion.py:750
↓ 8 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:955
↓ 8 callersMethod_validate_query
Validate the search query to ensure it's safe to execute. Only SELECT and SHOW statements are allowed for security reasons. Args:
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:356
↓ 8 callersMethodaclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 8 callersMethodadd
Add content to the knowledge base.
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:98
↓ 8 callersFunctionchunk_text
Split a text file into chunks of maximum character count. Yields chunks one at a time to minimize memory usage. Args: file: The text
lib/crewai-files/src/crewai_files/processing/transformers.py:227
↓ 8 callersFunctioncleanup_temp_file
(path)
lib/crewai-tools/tests/rag/test_text_loaders.py:19
↓ 8 callersMethodcopy
Creates a deep copy of the Crew instance. Returns: Crew: A new instance with copied components
lib/crewai/src/crewai/crew.py:2104
↓ 8 callersMethoddelete_collection
Delete a collection and all its data. Keyword Args: collection_name: Name of the collection to delete. Raises:
lib/crewai/src/crewai/rag/qdrant/client.py:430
↓ 8 callersFunctiondetect_content_type
Detect MIME type from file content. Uses python-magic if available for accurate content-based detection, falls back to mimetypes module using
lib/crewai-files/src/crewai_files/core/sources.py:125
↓ 8 callersMethodfirst
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:44
↓ 8 callersFunctionforce_additional_properties_false
Force additionalProperties=false on all object-type dicts recursively. OpenAI strict mode requires all objects to have additionalProperties=false
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:181
↓ 8 callersFunctionformat_skill_context
Format skill information for agent prompt injection. At METADATA level: returns name and description only. At INSTRUCTIONS level or above: re
lib/crewai/src/crewai/skills/loader.py:293
↓ 8 callersMethodfrom_flow
Build an expression with the standard Flow runtime context.
lib/crewai/src/crewai/flow/expressions.py:185
↓ 8 callersFunctiongenerate_filename
Generate a UUID-based filename with extension from content type. Args: content_type: MIME type to derive extension from. Returns:
lib/crewai-files/src/crewai_files/core/sources.py:110
↓ 8 callersFunctionget_all_files
Get merged crew and task files. Task files override crew files with the same name. Args: crew_id: Unique identifier for the crew exe
lib/crewai/src/crewai/utilities/file_store.py:250
← previousnext →301–400 of 13,938, ranked by callers