MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions14,804 in github.com/crewAIInc/crewAI

↓ 7 callersMethod_submit_save
Submit a save operation to the background thread pool. The future is tracked so that ``drain_writes()`` can wait for it. If the pool
lib/crewai/src/crewai/memory/unified_memory.py:297
↓ 7 callersFunction_tool_use_input
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:222
↓ 7 callersFunction_tool_use_name
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:218
↓ 7 callersFunction_tree_record
Build a parent/child tree: crew_start ├── task_start │ ├── agent_start │ └── agent_complete (started=agent_start)
lib/crewai/tests/test_event_record.py:34
↓ 7 callersMethod_validate_identifier
Validates table and column names to prevent SQL injection. Simple identifiers must start with a letter and contain only letters, digi
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:193
↓ 7 callersMethodappend_agent_result
Record an agent result, optionally making it visible to the user.
lib/crewai/src/crewai/flow/conversational_mixin.py:754
↓ 7 callersFunctionapply_checkpoint
Handle checkpoint config for a kickoff method. If *from_checkpoint* carries a ``restore_from`` path, builds and returns a restored instance (
lib/crewai/src/crewai/state/checkpoint_config.py:215
↓ 7 callersFunctionbuild_env_with_all_tool_credentials
Return ``os.environ`` augmented with UV_INDEX_* credentials for every private index referenced under ``[tool.uv.sources]`` in ``pyproject.toml``.
lib/crewai-core/src/crewai_core/tool_credentials.py:35
↓ 7 callersFunctionbuild_pdf
Return the bytes of a one-page PDF containing *text*.
lib/crewai-tools/tests/rag/test_pdf_loader.py:18
↓ 7 callersMethodcall
( self, messages: str | list[LLMMessage], tools: list[dict[str, Any]] | None = None,
lib/crewai/tests/hooks/test_model_call_hook_reach.py:34
↓ 7 callersMethodcall
( self, messages, tools=None, callbacks=None, avai
lib/crewai/tests/agents/test_lite_agent.py:539
↓ 7 callersFunctioncallable_to_string
Serialize a module-level callable as a ``"module.qualname"`` string. Args: fn: The callable to serialize. Returns: The dotte
lib/crewai/src/crewai/types/callback.py:131
↓ 7 callersMethodcheckpoint
(self)
lib/crewai/tests/test_flow_definition.py:992
↓ 7 callersFunctionclear_all
Clear all global hooks across every interception point.
lib/crewai/src/crewai/hooks/dispatch.py:153
↓ 7 callersMethodclose
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 7 callersFunctionclose_span_with_error
Set span status to ERROR and end it. Used for spans representing work that failed, so failures are distinguishable from successes downstream.
lib/crewai/src/crewai/telemetry/utils.py:126
↓ 7 callersFunctioncommon_span_attributes
Build the attributes every span carries, once per process. Cached because it reads the project's ``pyproject.toml``, and because a process ca
lib/crewai-core/src/crewai_core/telemetry.py:131
↓ 7 callersFunctioncompute_composite_score
Compute a weighted composite relevance score from semantic, recency, and importance. composite = w_semantic * semantic + w_recency * decay + w_im
lib/crewai/src/crewai/memory/types.py:345
↓ 7 callersMethodconfigure
(self, enterprise_url: str)
lib/cli/src/crewai_cli/enterprise/main.py:21
↓ 7 callersMethodconnect
(self, sockaddr: tuple[str, int])
lib/crewai-tools/tests/utilities/test_safe_requests.py:408
↓ 7 callersMethodconnect
Establish HTTP connection to MCP server. Returns: Self for method chaining. Raises: MCPConnectionError: If t
lib/crewai/src/crewai/mcp/transports/http.py:108
↓ 7 callersMethodcreate_client
Creates a ChromaDB client from configuration.
lib/crewai/src/crewai/rag/config/optional_imports/protocols.py:18
↓ 7 callersMethodcreate_crew_deployment_span
Records creating a new crew deployment (``crewai deploy create``). Also emits ``deploy:created`` so that deployments are countable from the
lib/crewai-core/src/crewai_core/telemetry.py:366
↓ 7 callersMethodcreate_panel
Create a standardized panel with consistent styling.
lib/crewai/src/crewai/events/utils/console_formatter.py:51
↓ 7 callersFunctioncreate_test_pdf
Create a minimal valid PDF for testing.
lib/crewai-files/tests/processing/test_transformers.py:30
↓ 7 callersFunctiondb_storage_path
Return the path for SQLite database / app-data storage. Creates the directory if it does not exist.
lib/crewai-core/src/crewai_core/paths.py:16
↓ 7 callersMethoddeploy
Deploy a crew using either UUID or project name. Args: uuid (Optional[str]): The UUID of the crew to deploy.
lib/cli/src/crewai_cli/deploy/main.py:289
↓ 7 callersFunctionend_execution
End an execution context owned by the current kickoff. Nested kickoffs pass ``None`` and leave the outer uuid in place.
lib/crewai/src/crewai/execution.py:64
↓ 7 callersMethodevaluate
Evaluate this value as a full CEL expression.
lib/crewai/src/crewai/flow/expressions.py:282
↓ 7 callersFunctionexecute
Execute an A2A task using a CrewAI agent. Args: agent: The CrewAI agent to execute the task. context: The A2A request context con
lib/crewai/src/crewai/a2a/utils/task.py:290
↓ 7 callersMethodfork
Fork a Crew from a checkpoint, creating a new execution branch. Args: config: Checkpoint configuration with ``restore_from`` set.
lib/crewai/src/crewai/crew.py:457
↓ 7 callersMethodfrom_content
(content: str | Path | None = None)
lib/crewai-tools/src/crewai_tools/rag/data_types.py:100
↓ 7 callersMethodget_async_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:108
↓ 7 callersFunctionget_llm_response
Call the LLM and return the response, handling any invalid responses. Args: llm: The LLM instance to call. messages: The messages
lib/crewai/src/crewai/utilities/agent_utils.py:554
↓ 7 callersMethodget_required_fields
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:37
↓ 7 callersMethodget_sync_page
Get or create a page for the specified thread.
lib/crewai-tools/src/crewai_tools/aws/bedrock/browser/browser_toolkit.py:113
↓ 7 callersMethodget_token
Return the access token if valid and not expired, else None.
lib/crewai-core/src/crewai_core/token_manager.py:65
↓ 7 callersFunctionget_uploader
Get Gemini file uploader.
lib/crewai-files/src/crewai_files/uploaders/factory.py:89
↓ 7 callersFunctionhandle_context_length
Handle context length exceeded by either summarizing or raising an error. Args: respect_context_window: Whether to respect context window
lib/crewai/src/crewai/utilities/agent_utils.py:807
↓ 7 callersMethodhandle_execution_completion
Handle the completion flow as shown in your diagram.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:47
↓ 7 callersFunctionimport_and_validate_definition
Pydantic-compatible function to import a class/function from a string path. Args: v: Import path string in the format 'module.path.ClassN
lib/crewai/src/crewai/utilities/import_utils.py:87
↓ 7 callersMethodis_batch_initialized
Check if batch is initialized
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:499
↓ 7 callersFunctionis_newer_version_available
Return ``(is_newer, current_version, latest_version)``.
lib/crewai-core/src/crewai_core/version.py:184
↓ 7 callersMethodlist_records
List records in a scope, newest first. Args: scope: Optional scope path prefix to filter by. If None and root_scope
lib/crewai/src/crewai/memory/unified_memory.py:936
↓ 7 callersMethodload
(self, source_content: SourceContent, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/rag/loaders/json_loader.py:10
↓ 7 callersMethodload_pending_feedback
Load state and pending feedback context. Args: flow_uuid: Unique identifier for the flow instance Returns: T
lib/crewai/src/crewai/flow/persistence/sqlite.py:246
↓ 7 callersFunctionload_skill
Load one skill input into Skill objects. Accepts a pre-loaded Skill object, skill search path, inline SKILL.md string, or '@org/name' registr
lib/crewai/src/crewai/skills/loader.py:154
↓ 7 callersMethodmark_running
Mark a todo as running by step number.
lib/crewai/src/crewai/utilities/planning_types.py:90
↓ 7 callersFunctionmemoize
Memoize a method by caching its results based on arguments. Handles both sync and async methods. Pydantic BaseModel instances are converted t
lib/crewai/src/crewai/project/utils.py:38
↓ 7 callersFunctionparse_inputs_json
Parse a ``--inputs`` JSON object, exiting with a pointed error if invalid.
lib/cli/src/crewai_cli/input_prompt.py:24
↓ 7 callersMethodquery
Query across all knowledge sources to find the most relevant information. Returns the top_k most relevant chunks. Raises:
lib/crewai/src/crewai/knowledge/knowledge.py:135
↓ 7 callersFunctionraise_connection_failure
Raise a typed MCP connection error when an HTTP status is known. Args: message: Fallback message when no HTTP status can be recovered.
lib/crewai/src/crewai/mcp/exceptions.py:162
↓ 7 callersMethodregister_handler
Register an event handler for a specific event type. Args: event_type: The event class to listen for handler: The han
lib/crewai/src/crewai/events/event_bus.py:797
↓ 7 callersFunctionrender_text_description_and_args
Render the tool name, description, and args in plain text. search: This tool is used for search, args: {"query": {"type": "string"}} calculat
lib/crewai/src/crewai/utilities/agent_utils.py:211
↓ 7 callersMethodrun
( self, crew: Crew | None = None, agents: list[Agent] | list[BaseAgent] | None = None,
lib/crewai/src/crewai/experimental/evaluation/experiment/runner.py:32
↓ 7 callersMethodrun
(self)
lib/crewai/tests/test_stream_frames.py:288
↓ 7 callersMethodsave_tokens
Save the access token and its expiration time. Args: access_token: The access token to save. expires_at: The UNIX tim
lib/crewai-core/src/crewai_core/token_manager.py:50
↓ 7 callersMethodsearch
( self, query_embedding: list[float], scope_prefix: str | None = None, categor
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:371
↓ 7 callersMethodset_tracer
Mark telemetry live (idempotent). Deliberately does not install a global TracerProvider. Doing so made every OTel-instrumented librar
lib/crewai/src/crewai/telemetry/telemetry.py:171
↓ 7 callersFunctionset_triggering_event_id
Set the ID of the triggering event for causal chain tracking. Args: event_id: The event_id that triggered the current execution, or None.
lib/crewai/src/crewai/events/event_context.py:109
↓ 7 callersMethodsetup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_webpage_loader.py:10
↓ 7 callersMethodsetup_mock_response
(self, text, status_code=200, content_type="text/html")
lib/crewai-tools/tests/rag/test_xml_loader.py:10
↓ 7 callersMethodsetup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_webpage_loader.py:18
↓ 7 callersMethodsetup_mock_soup
(self, text, title=None, script_style_elements=None)
lib/crewai-tools/tests/rag/test_xml_loader.py:18
↓ 7 callersMethodskill
Return a portable Markdown skill for authoring Flow declarations.
lib/crewai/src/crewai/flow/flow_definition.py:861
↓ 7 callersFunctionstore_files
Store files for a crew execution. Args: execution_id: Unique identifier for the crew execution. files: Dictionary mapping names t
lib/crewai/src/crewai/utilities/file_store.py:178
↓ 7 callersMethodsubscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:158
↓ 7 callersFunctionsuppress_warnings
Context manager to suppress all warnings. Yields: None during the context execution. Note: This implementation consolidates
lib/crewai/src/crewai/utilities/logger_utils.py:43
↓ 7 callersFunctionunregister_after_tool_call_hook
Unregister a specific global after_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fou
lib/crewai/src/crewai/hooks/tool_hooks.py:324
↓ 7 callersFunctionunregister_before_tool_call_hook
Unregister a specific global before_tool_call hook. Args: hook: The hook function to remove Returns: True if the hook was fo
lib/crewai/src/crewai/hooks/tool_hooks.py:298
↓ 7 callersFunctionupdate_pyproject_version
Update the [project] version field in a pyproject.toml file. Args: file_path: Path to pyproject.toml file. new_version: New versi
lib/devtools/src/crewai_devtools/cli.py:306
↓ 7 callersMethoduse
( self, calling: ToolCalling | InstructorToolCalling, tool_string: str )
lib/crewai/src/crewai/tools/tool_usage.py:148
↓ 7 callersFunctionvalidate_crew_project
Validate JSON crew structure without kicking off the crew.
lib/crewai/src/crewai/project/json_loader.py:277
↓ 7 callersFunctionvalidate_import_path
Import and return the class/function from the import path. Args: v: Import path string in the format 'module.path.ClassName'. Return
lib/crewai/src/crewai/utilities/import_utils.py:51
↓ 7 callersFunctionwarn_deprecated
Print a yellow deprecation warning for a legacy CLI command or flag.
lib/cli/src/crewai_cli/utils.py:53
↓ 6 callersFunction_agent
(llm: _Recorder, **kwargs: Any)
lib/crewai/tests/agents/test_agent_kickoff_content_parts.py:45
↓ 6 callersFunction_agent_with_skills
Create an agent with explicitly activated, always-on skills.
lib/crewai/tests/events/test_skill_usage_events.py:33
↓ 6 callersFunction_assert_safe_peer
Raise if a connected socket's peer is a private/reserved address.
lib/crewai-tools/src/crewai_tools/security/ssrf_adapter.py:54
↓ 6 callersFunction_attach_flow_definition
( flow_class: type[Flow], methods: dict[str, dict[str, object]] )
lib/crewai/tests/test_flow_visualization.py:80
↓ 6 callersFunction_augment_prompt_with_a2a
Add A2A delegation instructions to prompt. Args: a2a_agents: Dictionary of A2A agent configurations task_description: Original ta
lib/crewai/src/crewai/a2a/wrapper.py:639
↓ 6 callersMethod_base_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:48
↓ 6 callersMethod_build_upload_result
Build an UploadResult for a completed upload. Args: file_id: The uploaded file ID. content_type: The file's content t
lib/crewai-files/src/crewai_files/uploaders/openai.py:146
↓ 6 callersMethod_convert_contents_to_dict
Convert contents to dict format.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1519
↓ 6 callersMethod_create_manager_agent
(self)
lib/crewai/src/crewai/crew.py:1521
↓ 6 callersFunction_create_skill
( parent: Path, name: str, description: str, instructions: str, )
lib/crewai/tests/skills/test_progressive_disclosure.py:39
↓ 6 callersFunction_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_integration.py:18
↓ 6 callersMethod_effective_builtin_routes
Route labels the framework handles, from the definition when there is one. Shared with ``route_turn`` so both agree on what counts as a custo
lib/crewai/src/crewai/flow/conversational_mixin.py:1385
↓ 6 callersMethod_extract_finish_reason_and_id
Extract raw finish_reason and response_id from an Anthropic ``Message`` / ``BetaMessage``. Anthropic exposes ``stop_reason`` (e.g. ``"
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:1999
↓ 6 callersMethod_extract_openai_token_usage
Extract token usage and response metadata from OpenAI ChatCompletion.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2731
↓ 6 callersMethod_extract_responses_token_usage
Extract token usage and response metadata from Responses API response.
lib/crewai/src/crewai/llms/providers/openai/completion.py:1545
↓ 6 callersMethod_extract_token_usage
Extract token usage and response metadata from Gemini response.
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1440
↓ 6 callersMethod_fetch_amp_mcp_configs
Fetch MCP server configurations via CrewAI+ API. Sends a GET request to the CrewAI+ mcps/configs endpoint with comma-separated slugs.
lib/crewai/src/crewai/mcp/tool_resolver.py:197
↓ 6 callersMethod_finalize_backend_batch
Send batch finalization to backend Args: events_count: Number of events that were successfully sent
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:386
↓ 6 callersMethod_format_messages_for_azure
Format messages for Azure AI Inference API. Args: messages: Input messages Returns: List of dict objects wit
lib/crewai/src/crewai/llms/providers/azure/completion.py:752
↓ 6 callersMethod_format_messages_for_gemini
Format messages for Gemini API. Gemini has specific requirements: - System messages are separate system_instruction - Content
lib/crewai/src/crewai/llms/providers/gemini/completion.py:556
↓ 6 callersMethod_formatter
()
lib/crewai/tests/tools/test_tool_failure.py:503
↓ 6 callersMethod_get_client
Get or create the OpenAI client.
lib/crewai-files/src/crewai_files/uploaders/openai.py:164
↓ 6 callersMethod_get_client
Get the appropriate client - instance-specific or global.
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:55
↓ 6 callersFunction_get_purpose_for_content_type
Get the appropriate purpose for a file based on content type. OpenAI Files API requires different purposes for different file types: - Images
lib/crewai-files/src/crewai_files/uploaders/openai.py:25
↓ 6 callersMethod_get_secure_storage_path
Platform-appropriate per-user credential directory (mode 0o700).
lib/crewai-core/src/crewai_core/token_manager.py:85
← previousnext →501–600 of 14,804, ranked by callers