MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions14,252 in github.com/crewAIInc/crewAI

↓ 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:83
↓ 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:904
↓ 10 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:66
↓ 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:190
↓ 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:1117
↓ 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 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:1449
↓ 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 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:1232
↓ 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:1091
↓ 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 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:2281
↓ 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__setattr__
Allow arbitrary attribute assignment for backward compat with plain class.
lib/crewai/src/crewai/flow/runtime/__init__.py:772
↓ 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:3736
↓ 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 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_message_content_text
Return the message content as text for token estimation.
lib/crewai/src/crewai/utilities/agent_utils.py:847
↓ 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_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:275
↓ 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: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 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:475
↓ 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:429
↓ 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 callersMethodget
(self, url: str, **kwargs: Any)
lib/crewai-tools/tests/utilities/test_safe_requests.py:549
↓ 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:1424
↓ 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 callersMethod_effective_routes
(self, router_config: RouterConfig | None = None)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1328
↓ 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_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_finalize
(self, bm: TraceBatchManager, *, status_code: int = 200)
lib/crewai/tests/tracing/test_tracing.py:1805
↓ 8 callersMethod_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2742
↓ 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 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:1730
↓ 8 callersFunction_reregister_listener
Re-subscribe the global listener to the event bus. The repo-wide ``cleanup_event_handlers`` fixture clears every handler after each test, so
lib/crewai/tests/telemetry/test_flow_telemetry.py:29
↓ 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_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
← previousnext →301–400 of 14,252, ranked by callers