MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions14,804 in github.com/crewAIInc/crewAI

↓ 6 callersMethod_get_server_info
Get server information for events. Returns: Tuple of (server_name, server_url, transport_type).
lib/crewai/src/crewai/mcp/client.py:127
↓ 6 callersMethod_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:341
↓ 6 callersMethod_handle_crew_planning
Handles the Crew planning.
lib/crewai/src/crewai/crew.py:1454
↓ 6 callersFunction_is_async_client
Type guard to check if the client is an asynchronous AsyncQdrantClient. Args: client: The client to check. Returns: True if
lib/crewai/src/crewai/rag/qdrant/utils.py:61
↓ 6 callersFunction_is_async_client
Type guard to check if the client is an asynchronous AsyncClientAPI. Args: client: The client to check. Returns: True if the
lib/crewai/src/crewai/rag/chromadb/utils.py:44
↓ 6 callersMethod_is_responses_only_error
Whether a 404 means the model exists but isn't on chat completions. OpenAI distinguishes the two 404s it returns here: responses
lib/crewai/src/crewai/llms/providers/openai/completion.py:1701
↓ 6 callersFunction_is_sync_client
Type guard to check if the client is a synchronous QdrantClient. Args: client: The client to check. Returns: True if the cli
lib/crewai/src/crewai/rag/qdrant/utils.py:49
↓ 6 callersFunction_is_sync_client
Type guard to check if the client is a synchronous ClientAPI. Args: client: The client to check. Returns: True if the client
lib/crewai/src/crewai/rag/chromadb/utils.py:32
↓ 6 callersFunction_is_tool_use_block
Return true for complete Anthropic tool-use blocks across SDK shapes. New/preview Anthropic models can return content blocks whose concrete SDK
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:185
↓ 6 callersMethod_make_agent
(self, checkpoint: Any = None)
lib/crewai/tests/test_checkpoint.py:56
↓ 6 callersFunction_make_crew
( *, task_description: str = "", expected_output: str = "", agent_role: str = "", agent_go
lib/crewai/tests/cli/test_crew_chat.py:14
↓ 6 callersMethod_make_crew
( self, agents: list[Agent], checkpoint: Any = None )
lib/crewai/tests/test_checkpoint.py:59
↓ 6 callersFunction_make_mock_client
Create a mock MCPClient that returns *tool_definitions*.
lib/crewai/tests/mcp/test_mcp_config.py:35
↓ 6 callersFunction_make_storage
(path: str, vector_dim: int = 4)
lib/crewai/tests/memory/test_qdrant_edge_storage.py:24
↓ 6 callersMethod_make_tool
(self)
lib/crewai/tests/tools/test_base_tool.py:722
↓ 6 callersMethod_mark_todo_completed
( self, step_number: int, result: str | None = None, )
lib/crewai/src/crewai/experimental/agent_executor.py:497
↓ 6 callersFunction_method_action
(method: Any)
lib/crewai/src/crewai/flow/dsl/_utils.py:90
↓ 6 callersMethod_nested_in_flow_execution
True when a crew runs inside a flow session (context or batch ownership).
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:799
↓ 6 callersFunction_normalize_agent_input
Accept a prompt string or a rendered conversation. A whole-string ``${...}`` template keeps its evaluated type, so a CEL expression over ``st
lib/crewai/src/crewai/flow/runtime/_actions.py:201
↓ 6 callersMethod_on_crew_done
(self, output: str | None)
lib/cli/src/crewai_cli/crew_run_tui.py:749
↓ 6 callersMethod_parse_amp_ref
Parse an AMP reference into *(slug, optional tool name)*. Accepts both bare slugs (``"notion"``, ``"notion#search"``) and the legacy
lib/crewai/src/crewai/mcp/tool_resolver.py:121
↓ 6 callersFunction_parse_duration
(value: str)
lib/cli/src/crewai_cli/checkpoint_cli.py:618
↓ 6 callersMethod_parse_observation_response
Parse the LLM response into a StepObservation. The LLM may return: - A StepObservation instance directly (streaming + litellm path)
lib/crewai/src/crewai/agents/planner_observer.py:325
↓ 6 callersFunction_pop_local_context
(kwargs: dict[str, Any])
lib/crewai/src/crewai/flow/runtime/_actions.py:418
↓ 6 callersMethod_read_secure_file
Read raw bytes from a secure file, or None if absent.
lib/crewai-core/src/crewai_core/token_manager.py:144
↓ 6 callersMethod_refine_request_payload
Subclass must implement: transform validated params dict into API request params.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:273
↓ 6 callersMethod_require_memory
Return the bound ``Memory`` or raise a clear error if missing.
lib/crewai/src/crewai/memory/memory_scope.py:263
↓ 6 callersFunction_resolve
Coerce a checkpoint field value. Returns: CheckpointConfig — use this config. _SENTINEL — explicit opt-out (``False``), stop walk
lib/crewai/src/crewai/state/checkpoint_listener.py:55
↓ 6 callersFunction_resolve_python_class
( value: Any, source: str | Path, *, base_class: type[Any] | None = None, project_root: Pa
lib/crewai/src/crewai/project/json_loader.py:845
↓ 6 callersMethod_router_response_format
( self, router_config: RouterConfig, )
lib/crewai/src/crewai/flow/conversational_mixin.py:1236
↓ 6 callersFunction_scaffold_json_crew
(root: Path, *, task_agent: str = "researcher")
lib/cli/tests/deploy/test_validate.py:114
↓ 6 callersMethod_show_logs
Emit agent execution event. Args: formatted_answer: Agent's response to log.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1536
↓ 6 callersMethod_stringify_result
(result: Any)
lib/crewai/src/crewai/flow/conversational_mixin.py:1513
↓ 6 callersFunction_tar_from_members
Build an in-memory tar archive via `build(tf)` and return it for reading.
lib/cli/tests/skills/test_safe_extract.py:20
↓ 6 callersFunction_ts_from_name
Extract timestamp from checkpoint ID or filename.
lib/cli/src/crewai_cli/checkpoint_cli.py:201
↓ 6 callersMethod_use_trained_data
Use trained data for the agent task prompt to improve output.
lib/crewai/src/crewai/agent/core.py:1329
↓ 6 callersMethod_write_project
(self, root, tool_line='"custom:landmine"')
lib/crewai/tests/project/test_json_loader.py:500
↓ 6 callersMethodadd_template
Download a template and copy it into the current working directory. Args: name: Template name (with or without the template_ pref
lib/cli/src/crewai_cli/remote_template/main.py:93
↓ 6 callersMethodadd_usage_metrics
Add usage metrics from another UsageMetrics object. Args: usage_metrics: The usage metrics to add.
lib/crewai/src/crewai/types/usage_metrics.py:65
↓ 6 callersFunctionaget_llm_response
Call the LLM asynchronously and return the response. Args: llm: The LLM instance to call. messages: The messages to send to the L
lib/crewai/src/crewai/utilities/agent_utils.py:608
↓ 6 callersMethodaget_or_create_collection
Get an existing collection or create it if it doesn't exist asynchronously. Keyword Args: collection_name: Name of the collection
lib/crewai/src/crewai/rag/qdrant/client.py:190
↓ 6 callersFunctionbuild_crew
(agent: Agent, **task_kwargs: Any)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:150
↓ 6 callersFunctionbuild_pdf
Return the bytes of a one-page PDF containing *text*.
lib/crewai-tools/tests/url_read_tool_test.py:52
↓ 6 callersFunctioncancel
Cancel an A2A task. Publishes a cancel event that the cancellable decorator listens for. Args: context: The A2A request context cont
lib/crewai/src/crewai/a2a/utils/task.py:458
↓ 6 callersFunctionchunk_pdf
Split a PDF into chunks of maximum page count. Yields chunks one at a time to minimize memory usage. Args: file: The PDF file to chu
lib/crewai-files/src/crewai_files/processing/transformers.py:159
↓ 6 callersMethodclear
Sync wrapper for aclear.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:475
↓ 6 callersFunctionclear_after_tool_call_hooks
Clear all registered global after_tool_call hooks. Returns: Number of hooks that were cleared Example: >>> register_after_to
lib/crewai/src/crewai/hooks/tool_hooks.py:367
↓ 6 callersFunctioncreate_crew
( name: str, provider: str | None = None, skip_provider: bool = False, parent_folder: str | No
lib/cli/src/crewai_cli/create_crew.py:206
↓ 6 callersFunctioncreate_validated_connection
Open a TCP socket to *host* after validating and pinning the peer IP.
lib/crewai-tools/src/crewai_tools/security/ssrf_adapter.py:70
↓ 6 callersMethodcrew
Creates the Content Crew
lib/cli/src/crewai_cli/templates/flow/crews/content_crew/content_crew.py:53
↓ 6 callersMethodcrew
(self)
lib/crewai/tests/test_project.py:87
↓ 6 callersMethodcrew_completed_span
Records how long a crew ran and how it ended, for every user. The crew analogue of :meth:`flow_completed_span`, and it exists because
lib/crewai/src/crewai/telemetry/telemetry.py:1120
↓ 6 callersFunctiondefault_flow_persistence
Build the default flow persistence backend. Returns the result of the registered factory if one is set, otherwise a built-in :class:`~crewai.
lib/crewai/src/crewai/flow/persistence/factory.py:48
↓ 6 callersMethoddisconnect
Disconnect from MCP server and cleanup resources.
lib/crewai/src/crewai/mcp/client.py:385
↓ 6 callersFunctionexecute_tool_and_check_finality
Execute a tool and check if the result should be treated as a final answer. This function integrates tool hooks for before and after tool executi
lib/crewai/src/crewai/utilities/tool_utils.py:200
↓ 6 callersMethodexecute_with_trigger
Execute crew with trigger payload.
lib/cli/src/crewai_cli/triggers/main.py:37
↓ 6 callersFunctionextract_json_from_llm_response
(text: str)
lib/crewai/src/crewai/experimental/evaluation/json_parser.py:8
↓ 6 callersFunctionfactory
Create a gRPC channel for the given URL.
lib/crewai/src/crewai/a2a/utils/delegation.py:811
↓ 6 callersFunctionfailure_from_exception
Build a :class:`ToolFailure` from an exception a tool raised.
lib/crewai/src/crewai/tools/tool_failure.py:165
↓ 6 callersFunctionfind_transport_failure
Search exceptions for the one that explains why a connection failed. A failing transport cancels the coroutine that was waiting on it, so the
lib/crewai/src/crewai/mcp/exceptions.py:252
↓ 6 callersFunctionformat_path_for_display
Return a path label that does not expose absolute directory prefixes.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:29
↓ 6 callersMethodformat_text_content
Format text as a content block for the LLM. Default implementation uses OpenAI/Anthropic format. Subclasses should override for provi
lib/crewai/src/crewai/llms/base_llm.py:526
↓ 6 callersFunctionget_a2a_agents_and_response_model
Get A2A agent configs and response model. Args: a2a_config: A2A configuration (any type). Returns: Tuple of client A2A confi
lib/crewai/src/crewai/a2a/utils/response_model.py:87
↓ 6 callersFunctionget_image_dimensions
Get the dimensions of an image file. Args: file: The image file to measure. Returns: Tuple of (width, height) in pixels, or
lib/crewai-files/src/crewai_files/processing/transformers.py:288
↓ 6 callersFunctionget_latest_version_from_pypi
Return the latest non-yanked PyPI version of CrewAI, or ``None`` on failure.
lib/crewai-core/src/crewai_core/version.py:112
↓ 6 callersMethodget_pending_todos
Get all pending todos. Returns: List of pending TodoItem objects.
lib/crewai/src/crewai/utilities/planning_types.py:177
↓ 6 callersFunctionget_provider
Get the current human input provider. Returns: The current provider, or a new SyncHumanInputProvider if none set.
lib/crewai/src/crewai/core/providers/human_input.py:451
↓ 6 callersFunctionhandle_max_iterations_exceeded
Handles the case when the maximum number of iterations is exceeded. Performs one more LLM call to get the final answer. Args: formatted_a
lib/crewai/src/crewai/utilities/agent_utils.py:376
↓ 6 callersFunctionhandle_partial_json
Handle partial JSON in a result string and convert to Pydantic model or dict. Args: result: The result string to process. model:
lib/crewai/src/crewai/utilities/converter.py:296
↓ 6 callersFunctionhas_reached_max_iterations
Check if the maximum number of iterations has been reached. Args: iterations: Current number of iterations. max_iterations: Maxim
lib/crewai/src/crewai/utilities/agent_utils.py:363
↓ 6 callersFunctionhas_user_declined_tracing
Return True if the user has explicitly declined trace collection.
lib/crewai-core/src/crewai_core/user_data.py:69
↓ 6 callersFunctioninitialize_tool_with
(mock_driver)
lib/crewai-tools/tests/tools/selenium_scraping_tool_test.py:25
↓ 6 callersFunctionis_dmn_mode_enabled
Return True when the enterprise non-interactive mode is enabled.
lib/cli/src/crewai_cli/utils.py:77
↓ 6 callersMethodis_synced
Return True if the Git repository is fully synced with the remote, False otherwise.
lib/cli/src/crewai_cli/git.py:117
↓ 6 callersFunctionis_tui_mode
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:83
↓ 6 callersMethodkickoff_async
Execute the agent asynchronously with the given messages. This is the async version of the kickoff method that uses native async exec
lib/crewai/src/crewai/agent/core.py:2059
↓ 6 callersMethodload_prompts
Load prompts from a JSON file. Returns: The I18N instance with loaded prompts. Raises: Exception: If the pro
lib/crewai/src/crewai/utilities/i18n.py:27
↓ 6 callersMethodlogin
(self)
lib/cli/src/crewai_cli/tools/main.py:230
↓ 6 callersMethodlogin_to_tool_repository
Log in to the tool repository. This request is authenticated, so sending user_identifier and project_id alongside it links the accoun
lib/crewai-core/src/crewai_core/plus_api.py:232
↓ 6 callersMethodmain
()
lib/crewai/tests/agents/test_agent.py:2827
↓ 6 callersMethodmark_events_collected
Mark that events have been collected during execution.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:43
↓ 6 callersFunctionnormalize_input_files
Convert a list of file sources to a named dictionary of FileInputs. Args: input_files: List of file source inputs or File objects. R
lib/crewai-files/src/crewai_files/resolution/utils.py:49
↓ 6 callersMethodprocess
Process a single file according to constraints and its mode mode. Args: file: The file to process. Returns:
lib/crewai-files/src/crewai_files/processing/processor.py:110
↓ 6 callersMethodproject_created_span
Records that the CLI scaffolded a new project. Acquisition was previously only observable from a project's first *run*, which misses
lib/crewai-core/src/crewai_core/telemetry.py:467
↓ 6 callersFunctionread_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:108
↓ 6 callersMethodrecall
Recall relevant memories. Delegates to this flow's memory. Args: query: Natural language query. **kwargs: Passed to m
lib/crewai/src/crewai/flow/runtime/__init__.py:971
↓ 6 callersFunctionregister_scoped
Register a hook scoped to the current :func:`scoped_hooks` context.
lib/crewai/src/crewai/hooks/dispatch.py:177
↓ 6 callersMethodrender_template
Interpolate ``${...}`` expressions inside nested strings as CEL. A string that is exactly one ``${...}`` keeps the evaluated value's
lib/crewai/src/crewai/flow/expressions.py:291
↓ 6 callersFunctionresize_image
Resize an image to fit within the specified dimensions. Args: file: The image file to resize. max_width: Maximum width in pixels.
lib/crewai-files/src/crewai_files/processing/transformers.py:15
↓ 6 callersFunctionrestore_event_scope
Restore the event scope stack from a checkpoint.
lib/crewai/src/crewai/events/event_context.py:136
↓ 6 callersFunctionresume_task_scope
Push the latest recorded ``task_started`` scope for a task. Args: task_id: The task identifier to look up in the active event record.
lib/crewai/src/crewai/events/event_context.py:141
↓ 6 callersFunctionrun_after_tool_call_hooks
Run all ``post_tool_call`` hooks against a context. Returns: The (possibly modified) tool result carried on the context.
lib/crewai/src/crewai/hooks/tool_hooks.py:193
↓ 6 callersFunctionrun_before_tool_call_hooks
Run all ``pre_tool_call`` hooks against a context. Returns: True if a hook blocked execution (returned False or raised :class:`Ho
lib/crewai/src/crewai/hooks/tool_hooks.py:173
↓ 6 callersFunctionsafe_tool_conversion
Safely extract and validate tool information. Combines extraction, validation, and logging for robust tool conversion. Args: tool: T
lib/crewai/src/crewai/llms/providers/utils/common.py:115
↓ 6 callersFunctionscoped_hooks
Enter an execution-scoped hook registry. Hooks registered inside this context (via :func:`register_scoped`) run after global hooks and are di
lib/crewai/src/crewai/hooks/dispatch.py:160
↓ 6 callersMethodset
Set a CLI configuration parameter.
lib/cli/src/crewai_cli/settings/main.py:77
↓ 6 callersMethodset_cache_handler
Set the cache handler for the agent. Args: cache_handler: An instance of the CacheHandler class.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:804
↓ 6 callersFunctionset_last_event_id
Set the ID of the last emitted event. Args: event_id: The event_id to set as the last emitted event.
lib/crewai/src/crewai/events/event_context.py:91
↓ 6 callersFunctionset_suppress_tracing_messages
Set whether to suppress tracing-related console messages. Args: suppress: True to suppress messages, False to show them. Returns:
lib/crewai/src/crewai/events/listeners/tracing/utils.py:87
↓ 6 callersMethodsetup_listeners
Setup event listeners - delegates to specific handlers. Args: crewai_event_bus: The event bus to register listeners on.
lib/crewai/src/crewai/events/listeners/tracing/trace_listener.py:203
← previousnext →601–700 of 14,804, ranked by callers