MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,484 in github.com/crewAIInc/crewAI

↓ 2 callersMethod_validate_and_emit_structured_output
Validate content against response model and emit completion event. Args: content: Response content to validate respon
lib/crewai/src/crewai/llms/providers/azure/completion.py:826
↓ 2 callersMethod_validate_and_fix_endpoint
Validate and fix Azure endpoint URL format. Azure OpenAI endpoints should be in the format: https://<resource-name>.openai.azure.com/
lib/crewai/src/crewai/llms/providers/azure/completion.py:417
↓ 2 callersMethod_validate_and_save_token
Validate the JWT and persist it via the token manager.
lib/crewai-core/src/crewai_core/auth/oauth2.py:186
↓ 2 callersFunction_validate_embedding_config
Validate embedding config and provide clearer error messages for union validation. This pre-validator catches Pydantic ValidationErrors from the
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:32
↓ 2 callersMethod_validate_function_signature
Validate that the function signature matches the args schema.
lib/crewai/src/crewai/tools/structured_tool.py:332
↓ 2 callersMethod_validate_model_in_constants
Validate if a model name exists in the provider's constants or matches provider patterns. This method first checks the hardcoded constants li
lib/crewai/src/crewai/llm.py:565
↓ 2 callersMethod_validate_output_file_path
Validate an output file path for security concerns. Args: value: The output file path to validate. allow_templates: I
lib/crewai/src/crewai/task.py:517
↓ 2 callersMethod_validate_save_path
(path: str)
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:156
↓ 2 callersFunction_validate_step_name
(name: str, *, field: str)
lib/crewai/src/crewai/flow/flow_definition.py:879
↓ 2 callersMethod_validate_url
Validate URL format.
lib/crewai-tools/src/crewai_tools/tools/scrapegraph_scrape_tool/scrapegraph_scrape_tool.py:132
↓ 2 callersFunction_walk_files
List regular files below root as project-relative paths.
lib/cli/src/crewai_cli/deploy/archive.py:105
↓ 2 callersFunction_walk_pages
Recursively walk a navigation subtree, applying ``transform`` to every bare page string (i.e. leaves of the ``pages`` lists).
scripts/docs/prefix_version_paths.py:61
↓ 2 callersFunction_warn_conversion_failed
( converter: Converter, model: type[BaseModel], error: ConverterError )
lib/crewai/src/crewai/utilities/converter.py:361
↓ 2 callersMethod_with_spreadsheets
The task prompt and tools, plus the overview and tools for the spreadsheets the task's URLs point to; unchanged when there are none.
lib/crewai/src/crewai/agent/core.py:736
↓ 2 callersFunction_wrap_with_filters
Wrap a hook so it only runs for matching agents/tools (context-shape aware).
lib/crewai/src/crewai/hooks/dispatch.py:375
↓ 2 callersFunction_write_export
Write FILES under FOLDER: the names written, and how many were skipped. MARKER, when given, is written last, and only when nothing was skipped.
lib/cli/src/crewai_cli/experimental/eval_crew.py:2749
↓ 2 callersFunction_write_flow_project
(project_root: Path)
lib/cli/tests/test_flow_commands.py:28
↓ 2 callersFunctiona_step
()
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:251
↓ 2 callersMethodaadd
Add string content asynchronously.
lib/crewai/src/crewai/knowledge/source/string_knowledge_source.py:30
↓ 2 callersMethodacheckpoint
Async version of :meth:`checkpoint`. Args: location: Storage destination. For JsonProvider this is a directory pa
lib/crewai/src/crewai/state/runtime.py:325
↓ 2 callersMethodaclear
Clear all entries from the cache. Returns: Number of entries cleared.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:369
↓ 2 callersMethodaclear_expired
Remove all expired entries from the cache. Returns: Number of entries removed.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:347
↓ 2 callersFunctionaclear_task_files
Clear files for a task execution asynchronously. Args: task_id: Unique identifier for the task.
lib/crewai/src/crewai/utilities/file_store.py:143
↓ 2 callersMethodaclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 2 callersMethodaclose
Close the async client and clean up resources. This ensures proper cleanup of the underlying aiohttp session to avoid unclosed connec
lib/crewai/src/crewai/llms/providers/azure/completion.py:1418
↓ 2 callersFunctionactive_tool_failures
Records for the execution in progress, or None outside a collector.
lib/crewai/src/crewai/tools/tool_failure.py:286
↓ 2 callersMethodadd
( # type: ignore[override] self, youtube_channel_handle: str, )
lib/crewai-tools/src/crewai_tools/tools/youtube_channel_search_tool/youtube_channel_search_tool.py:41
↓ 2 callersMethodadd
(self, docs_url: str)
lib/crewai-tools/src/crewai_tools/tools/code_docs_search_tool/code_docs_search_tool.py:39
↓ 2 callersMethodadd
(self, website: str)
lib/crewai-tools/src/crewai_tools/tools/website_search/website_search_tool.py:40
↓ 2 callersMethodadd
( # type: ignore[override] self, repo: str, content_types: list[str] | None = None,
lib/crewai-tools/src/crewai_tools/tools/github_search_tool/github_search_tool.py:53
↓ 2 callersMethodadd
(self, directory: str)
lib/crewai-tools/src/crewai_tools/tools/directory_search_tool/directory_search_tool.py:40
↓ 2 callersMethodadd
(self, youtube_video_url: str)
lib/crewai-tools/src/crewai_tools/tools/youtube_video_search_tool/youtube_video_search_tool.py:39
↓ 2 callersFunctionadd_crew_attributes
Add crew attributes to a span. Args: span: The span to add the attributes to. crew: The crew whose attributes should be added.
lib/crewai/src/crewai/telemetry/utils.py:54
↓ 2 callersMethodadd_event
Add event to buffer
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:283
↓ 2 callersFunctionadd_stream_sink
Register a sink in the current context.
lib/crewai/src/crewai/events/stream_context.py:17
↓ 2 callersFunctionadd_tools_to_agent_project
Append ``tools`` to the agent definition and return the newly added ones. Saves ``platform_token`` to the project's ``.env`` and adds the ``c
lib/cli/src/crewai_cli/agent_tools.py:41
↓ 2 callersMethodadelete
Delete memories asynchronously.
lib/crewai/src/crewai/memory/storage/backend.py:203
↓ 2 callersFunctionaexecute_a2a_delegation
Execute a task delegation to a remote A2A agent asynchronously. Native async implementation with multi-turn support. Use this when running in
lib/crewai/src/crewai/a2a/utils/delegation.py:239
↓ 2 callersFunctionafetch_agent_card
Fetch AgentCard from an A2A endpoint asynchronously. Native async implementation. Use this when running in an async context. Args: e
lib/crewai/src/crewai/a2a/utils/agent_card.py:157
↓ 2 callersFunctionagent_definition_tools
Return the string tool references in the agent definition.
lib/cli/src/crewai_cli/agent_tools.py:103
↓ 2 callersFunctionaget_task_files
Retrieve files for a task execution asynchronously. Args: task_id: Unique identifier for the task. Returns: Dictionary of fi
lib/crewai/src/crewai/utilities/file_store.py:126
↓ 2 callersFunctionaggregate_raw_outputs_from_task_outputs
Generate string context from the task outputs. Args: task_outputs: List of TaskOutput objects. Returns: A string containing
lib/crewai/src/crewai/utilities/formatter.py:16
↓ 2 callersFunctionahandle_knowledge_retrieval
Handle async knowledge retrieval for task execution. Args: agent: The agent performing the task. task: The task being executed.
lib/crewai/src/crewai/agent/utils.py:329
↓ 2 callersMethodakickoff_for_each
Native async execution of the Crew's workflow for each input. Uses native async throughout rather than thread-based async. Args:
lib/crewai/src/crewai/crew.py:1329
↓ 2 callersMethodaon_inbound
Handle async inbound. Args: message: The inbound response. Returns: Modified response with async header.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:114
↓ 2 callersMethodaon_outbound
Handle async outbound. Args: message: The outbound request. Returns: Modified request with async header.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:101
↓ 2 callersMethodapply_auth
Apply API key authentication. Args: client: HTTP client for making auth requests. headers: Current request headers.
lib/crewai/src/crewai/a2a/auth/client_schemes.py:277
↓ 2 callersMethodaread
Async fetch content from URL.
lib/crewai-files/src/crewai_files/core/sources.py:540
↓ 2 callersMethodaremove_by_file_id
Remove a cached upload by file ID. Args: file_id: The file ID to remove. provider: The provider name. Return
lib/crewai-files/src/crewai_files/cache/upload_cache.py:326
↓ 2 callersMethodareset
Reset the knowledge base asynchronously.
lib/crewai/src/crewai/knowledge/knowledge.py:201
↓ 2 callersMethodaresolve
Async resolve a file to its delivery format for a provider. Args: file: The file to resolve. provider: Provider name
lib/crewai-files/src/crewai_files/resolution/resolver.py:425
↓ 2 callersFunctionarun_with_rate_limit_retry
Asynchronously run an operation with retries for transient rate limits.
lib/crewai/src/crewai/llms/retry.py:166
↓ 2 callersFunctionask
(project: Path, question: str)
lib/devtools/src/crewai_devtools/agents_md_eval.py:208
↓ 2 callersFunctionask_for_api_key
Ask for ``name``, an API key a run failed without, and save it. The key is asked for, exported and saved as :func:`ask_for_missing_api_keys`
lib/cli/src/crewai_cli/api_keys.py:165
↓ 2 callersFunctionassert_agent_runtime_field_schema
(properties: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:47
↓ 2 callersFunctionassert_llm_definition_schema
(schema_defs: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:63
↓ 2 callersFunctionassert_planning_config_schema
(schema_defs: dict[str, Any])
lib/crewai/tests/test_flow_from_definition.py:54
↓ 2 callersMethodassert_sent_to
(provider: str, request)
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:558
↓ 2 callersMethodassociate_job
Associate admitted work with the active originating turn/reply. This does not register, submit, control or mutate the job. Call through
lib/crewai/src/crewai/experimental/flow_turns.py:148
↓ 2 callersFunctionastore_task_files
Store files for a task execution asynchronously. Args: task_id: Unique identifier for the task. files: Dictionary mapping names t
lib/crewai/src/crewai/utilities/file_store.py:109
↓ 2 callersFunctionasync_convert_to_model
Async equivalent of ``convert_to_model`` — uses native ``acall``. Mirrors the dispatch semantics of the sync version exactly; the only differ
lib/crewai/src/crewai/utilities/converter.py:436
↓ 2 callersFunctionasync_convert_with_instructions
Async equivalent of ``convert_with_instructions`` — calls ``ato_pydantic``/``ato_json``.
lib/crewai/src/crewai/utilities/converter.py:535
↓ 2 callersMethodato_json
Async equivalent of ``to_json``. The function-calling path delegates to ``InternalInstructor`` (currently sync-only); we run it via `
lib/crewai/src/crewai/utilities/converter.py:181
↓ 2 callersFunctionattempt
Run one operation while retaining its retryable error.
lib/crewai/src/crewai/llms/retry.py:131
↓ 2 callersMethodaupload
Async upload a file to S3 for use with Bedrock. Uses streaming upload with automatic multipart for large files. For FilePath sources,
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:380
↓ 2 callersFunctionawaiting_dir
Where the tokens live: this user's crewAI data directory, wherever the environment says home is. Windows reads it from the known-folder API.
lib/crewai-core/src/crewai_core/eval_handshake.py:62
↓ 2 callersFunctionbackslashed
A workbook at the root and one under ``xl/``, with ``_rels/.rels`` naming ``xl\\workbook.xml``.
lib/crewai-files/tests/spreadsheets/test_reading.py:836
↓ 2 callersFunctionbare_model_name
Return the model family without provider, region, date, or version suffix. ``us.anthropic.claude-sonnet-4-5-20250929-v1:0`` and ``us.anthropi
lib/crewai/src/crewai/llms/context_window.py:172
↓ 2 callersMethodbegin_event_processing
Mark that an event handler started processing (for synchronization).
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:249
↓ 2 callersMethodbuild
(provider: str, **kwargs)
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:549
↓ 2 callersFunctionbuild_action
Turn one `do:` action into the callable the flow runs for that node.
lib/crewai/src/crewai/flow/runtime/_actions.py:447
↓ 2 callersFunctionbuild_embedder_from_provider
Build an embedding function instance from a provider. Args: provider: The embedding provider configuration. Returns: An inst
lib/crewai/src/crewai/rag/embeddings/factory.py:120
↓ 2 callersFunctionbuild_schema_hint
Build a human-readable hint from a Pydantic model's JSON schema. Args: args_schema: The Pydantic model class to extract schema from.
lib/crewai/src/crewai/tools/structured_tool.py:100
↓ 2 callersFunctionbuild_step_executor
(llm: StubProviderLLM)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:247
↓ 2 callersFunctionbuild_task_prompt_with_schema
Build task prompt with JSON/Pydantic schema instructions if applicable. Args: task: The task being executed. task_prompt: The ini
lib/crewai/src/crewai/agent/utils.py:62
↓ 2 callersFunctionbuild_text_tool_calling_fallback_message
Build instructions for downgrading native tools to text tool calls.
lib/crewai/src/crewai/utilities/agent_utils.py:1406
↓ 2 callersFunctionbuildable_json_crew
A JSON crew crewAI builds for real, its one agent on LLM.
lib/cli/tests/test_run_usage.py:1287
↓ 2 callersFunctionbuilding_mapped_model
Build the model the overlay mapped to, without mapping it again.
lib/crewai/src/crewai/llm_overlay.py:273
↓ 2 callersFunctioncache_func
(args, result)
lib/crewai/tests/test_crew.py:2209
↓ 2 callersMethodcalculateNetworkPosition
(isDrawerOpen, centerScreen = false)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:2338
↓ 2 callersMethodcall
(self, messages, tools=None, callbacks=None, available_functions=None, **kw)
lib/crewai/tests/tools/test_tool_failure.py:61
↓ 2 callersMethodcall_tool
Call a tool on the MCP server. Args: tool_name: Name of the tool to call. arguments: Tool arguments. Returns
lib/crewai/src/crewai/mcp/client.py:453
↓ 2 callersFunctioncallback
Marks a method as a crew callback. Args: meth: The method to mark. Returns: A wrapped method marked as a callback with memoi
lib/crewai/src/crewai/project/annotations.py:138
↓ 2 callersFunctioncatalog_context_window
Return the full catalog window for a model id, or ``None`` if unlisted. Exact IDs are resolved in ``sizes``. A miss falls back to ``BARE_CONT
lib/crewai/src/crewai/llms/context_window.py:239
↓ 2 callersFunctioncheck_conditional_skip
Check if a conditional task should be skipped. Args: crew: The crew instance. task: The conditional task to check. task_o
lib/crewai/src/crewai/crews/utils.py:180
↓ 2 callersFunctioncheck_gh_installed
Check if GitHub CLI is installed and offer to install it. Raises: SystemExit: If gh is not installed and user declines installation.
lib/devtools/src/crewai_devtools/cli.py:92
↓ 2 callersFunctioncheck_git_clean
Check if git working directory is clean. Raises: SystemExit: If there are uncommitted changes.
lib/devtools/src/crewai_devtools/cli.py:149
↓ 2 callersFunctioncheck_native_tool_support
Check if the LLM supports native function calling and tools are available. Args: llm: The LLM instance. original_tools: Original
lib/crewai/src/crewai/utilities/agent_utils.py:1382
↓ 2 callersMethodcheck_open
Call at stage boundaries; this cannot abort an arbitrary provider call.
lib/crewai/src/crewai/experimental/flow_jobs.py:201
↓ 2 callersFunctionclassic_create
Run `crewai create crew my_crew --classic` in ``tmp_path`` with ``tmp_path`` as home, so the LiteLLM cache starts cold.
lib/cli/tests/test_create_crew.py:2517
↓ 2 callersMethodclassify
(error: BaseException, tmp_path: Path)
lib/crewai/tests/llms/test_missing_api_key.py:522
↓ 2 callersMethodclear
Clear the training data by removing the file or resetting its contents.
lib/crewai/src/crewai/utilities/training_handler.py:33
↓ 2 callersFunctionclear_all_tool_call_hooks
Clear all registered global tool call hooks (both before and after). Returns: Tuple of (before_hooks_cleared, after_hooks_cleared) E
lib/crewai/src/crewai/hooks/tool_hooks.py:384
↓ 2 callersMethodclear_expired
Sync wrapper for aclear_expired.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:470
↓ 2 callersMethodclear_pending_feedback
Clear the pending feedback marker after successful resume. Args: flow_uuid: Unique identifier for the flow instance
lib/crewai/src/crewai/flow/persistence/sqlite.py:368
↓ 2 callersFunctionclient_for_selector
Select the integrations client for an application selector.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:363
↓ 2 callersMethodclose
(self)
lib/crewai-tools/tests/utilities/test_safe_requests.py:491
↓ 2 callersMethodclose
Fence pending/active delivery; retained job results are untouched.
lib/crewai/src/crewai/experimental/flow_replies.py:428
↓ 2 callersMethodcompare_with_baseline
( self, baseline_filepath: str, save_current: bool = True, print_summary: bool
lib/crewai/src/crewai/experimental/evaluation/experiment/result.py:48
↓ 2 callersMethodconfigure_tools
(self, tools: List[BaseTool])
lib/crewai/tests/agents/agent_adapters/test_base_tool_adapter.py:11
← previousnext →2,701–2,800 of 19,484, ranked by callers