MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions14,804 in github.com/crewAIInc/crewAI

↓ 11 callersMethodreplay
Replay the crew execution from a specific task.
lib/crewai/src/crewai/crew.py:2034
↓ 11 callersFunctionrequire
Import a module, optionally returning a specific attribute. Args: name: The module name to import. purpose: Description of what r
lib/crewai/src/crewai/utilities/import_utils.py:21
↓ 11 callersMethodrun_crew
Execute the crew and capture the result.
lib/crewai/src/crewai/crew.py:1021
↓ 11 callersMethodsearch
( self, query: list[str], limit: int = 5, metadata_filter: dict[str, Any] | No
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:59
↓ 11 callersFunctionvalidate_video
Validate a video file against constraints. Args: file: The video file to validate. constraints: Video constraints to validate aga
lib/crewai-files/src/crewai_files/processing/validators.py:388
↓ 10 callersFunction_create_analyst_crew
Create a simple analyst crew for file analysis.
lib/crewai/tests/test_flow_multimodal.py:80
↓ 10 callersFunction_create_batch_slice
Create a batch slice from prepared documents. Args: prepared: PreparedDocuments containing ids, texts, and metadatas. start_index
lib/crewai/src/crewai/rag/chromadb/utils.py:112
↓ 10 callersMethod_emit_stream_chunk_event
Emit stream chunk event. Args: chunk: The text content of the chunk. from_task: The task that initiated the call.
lib/crewai/src/crewai/llms/base_llm.py:694
↓ 10 callersMethod_extract_finish_reason_and_response_id
LiteLLM responses/chunks share the choices-shape with OpenAI/Azure; delegate to the shared extractor.
lib/crewai/src/crewai/llm.py:2228
↓ 10 callersFunction_find_checkpoint
Find the CheckpointConfig for an event source. Walks known relationships: Task -> Agent -> Crew. Flow and Agent carry their own checkpoint fi
lib/crewai/src/crewai/state/checkpoint_listener.py:88
↓ 10 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:941
↓ 10 callersFunction_llm_stop_words_applied
Apply the executor's stop words to the LLM for the duration of one call. Uses :func:`crewai.llms.base_llm.call_stop_override` so the LLM's stop
lib/crewai/src/crewai/utilities/agent_utils.py:344
↓ 10 callersMethod_make_manager
(self, *, ephemeral: bool)
lib/crewai/tests/tracing/test_tracing.py:1794
↓ 10 callersMethod_save_to_memory
Save task result to unified memory (memory or crew._memory).
lib/crewai/src/crewai/agents/agent_builder/base_agent_executor.py:31
↓ 10 callersFunction_serialize_llm_for_context
(llm: Any)
lib/crewai/src/crewai/flow/human_feedback.py:113
↓ 10 callersMethod_show_version_update_message_if_needed
Show version update message if a newer version is available. Only displays when verbose mode is enabled and not running in CI/CD.
lib/crewai/src/crewai/events/utils/console_formatter.py:60
↓ 10 callersMethod_validate_structured_output
Validate and parse structured output. Args: response: Raw response string response_format: Optional Pydantic model fo
lib/crewai/src/crewai/llms/base_llm.py:935
↓ 10 callersFunctionbuild
(model: str, **kwargs)
lib/crewai/tests/llms/openai/test_responses_only_models.py:34
↓ 10 callersFunctionbuild_rich_field_description
Build a comprehensive field description including constraints. Embeds format, enum, pattern, min/max, and example constraints into the descri
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:722
↓ 10 callersFunctionconvert_to_model
Convert a result to a Pydantic model or JSON. Args: result: The result to convert. Usually a JSON string, but a Pydantic inst
lib/crewai/src/crewai/utilities/converter.py:206
↓ 10 callersMethodcreate_agent_executor
Create an agent executor for the agent. Returns: An instance of the CrewAgentExecutor class.
lib/crewai/src/crewai/agent/core.py:1157
↓ 10 callersFunctionenforce_rpm_limit
Enforce the requests per minute (RPM) limit if applicable. Args: request_within_rpm_limit: Function to enforce RPM limit.
lib/crewai/src/crewai/utilities/agent_utils.py:472
↓ 10 callersMethodexecute_action
Execute an action with the given arguments.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:276
↓ 10 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/flow/conversational_mixin.py:1570
↓ 10 callersFunctionfreeze
Freeze the current Edge into ``docs/v<version>/`` and update docs.json. Args: version: Release version as ``"X.Y.Z"`` (no leading ``v``).
lib/devtools/src/crewai_devtools/docs_versioning.py:100
↓ 10 callersMethodfrom_flow
Build an expression with the standard Flow runtime context.
lib/crewai/src/crewai/flow/expressions.py:235
↓ 10 callersMethodfrom_string
Parse the ``application[/action][@connection_uuid]`` syntax. Raises: ValueError: If the selector does not follow the supported sy
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:29
↓ 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:1272
↓ 10 callersMethodincrement_tools_errors
Increment the tools errors counter.
lib/crewai/src/crewai/task.py:1144
↓ 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:1094
↓ 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:266
↓ 10 callersMethodrequest
( self, method: str | bytes, url: str | bytes, *args: Any, **kwargs: Any )
lib/crewai-tools/src/crewai_tools/security/safe_requests.py:72
↓ 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:2284
↓ 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:177
↓ 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_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:851
↓ 9 callersFunction_emit
Run one telemetry span method against a mocked tracer. The singleton is reset first: it caches the provider built on the very first construct
lib/crewai/tests/telemetry/test_telemetry.py:331
↓ 9 callersMethod_extract_anthropic_token_usage
Extract token usage and response metadata from Anthropic response.
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:2013
↓ 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_mock_get
(monkeypatch: pytest.MonkeyPatch, get_response: Any)
lib/crewai-tools/tests/utilities/test_safe_requests.py:62
↓ 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_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:333
↓ 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_scope_path
(self, scope: str | None)
lib/crewai/src/crewai/memory/memory_scope.py:93
↓ 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:1807
↓ 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 callersFunctionbuild_xlsx
Return the bytes of a single-sheet XLSX holding *rows*.
lib/crewai-tools/tests/url_read_tool_test.py:82
↓ 9 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:382
↓ 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:528
↓ 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 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:432
↓ 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 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:91
↓ 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_tool_call_list
Check if a response from the LLM is a list of tool calls. Supports OpenAI, Anthropic, Bedrock, and Gemini formats. Args: response: T
lib/crewai/src/crewai/utilities/agent_utils.py:1460
↓ 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:119
↓ 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 callersFunction_attributes
(span: MagicMock)
lib/crewai-core/tests/test_telemetry_deploy.py:38
↓ 8 callersMethod_coerce_llm
Resolve a declared or live LLM the way a crew agent's ``llm`` resolves. ``create_llm`` is the shared helper the crew/agent declaration layer
lib/crewai/src/crewai/flow/conversational_mixin.py:1528
↓ 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 callersMethod_effective_routes
(self, router_config: RouterConfig | None = None)
lib/crewai/src/crewai/flow/conversational_mixin.py:1404
↓ 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_features
(self, bm: TraceBatchManager)
lib/crewai/tests/tracing/test_tracing.py:1826
↓ 8 callersMethod_finalize
(self, bm: TraceBatchManager, *, status_code: int = 200)
lib/crewai/tests/tracing/test_tracing.py:1805
↓ 8 callersMethod_flow
(state: dict[str, Any] | None)
lib/crewai/tests/test_flow_conversation.py:2783
↓ 8 callersMethod_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2755
↓ 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:1784
↓ 8 callersMethod_get_client
Get or create the Gemini client.
lib/crewai-files/src/crewai_files/uploaders/gemini.py:116
← previousnext →301–400 of 14,804, ranked by callers