MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions13,938 in github.com/crewAIInc/crewAI

↓ 8 callersFunctionget_crew_context
Get the current crew context from OpenTelemetry baggage. Returns: CrewContext instance containing crew context information, or None if no
lib/crewai/src/crewai/utilities/crew/crew_context.py:10
↓ 8 callersFunctionget_crewai_tools_dependency
Return the generated-project dependency for CrewAI with tools.
lib/cli/src/crewai_cli/version.py:27
↓ 8 callersMethodget_or_create_collection
Get an existing collection or create it if it doesn't exist. Keyword Args: collection_name: Name of the collection to get or crea
lib/crewai/src/crewai/rag/qdrant/client.py:146
↓ 8 callersFunctionget_tool_call_events
Extract tool call streaming events from mock emit calls.
lib/crewai/tests/llms/test_tool_call_streaming.py:55
↓ 8 callersFunctionget_triggering_event_id
Get the ID of the event that triggered the current execution. Returns: The event_id of the triggering event, or None if not in a triggere
lib/crewai/src/crewai/events/event_context.py:100
↓ 8 callersMethodis_expired
Check if this cached upload has expired.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:48
↓ 8 callersMethodis_url
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:20
↓ 8 callersFunctionnormalize_scope_path
Normalize a scope path by removing double slashes and ensuring proper format. Args: path: The raw scope path (e.g. '/crew/MyCrewName//age
lib/crewai/src/crewai/memory/utils.py:39
↓ 8 callersFunctionparse_registry_ref
Parse '@org/skill-name' into (org, name), ignoring any version pin. Retained for backwards compatibility. Use :func:`parse_skill_ref` to read
lib/crewai/src/crewai/skills/registry.py:95
↓ 8 callersMethodpath_exists
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:29
↓ 8 callersMethodpublish_tool
( self, handle: str, is_public: bool, version: str, description: str |
lib/crewai-core/src/crewai_core/plus_api.py:259
↓ 8 callersFunctionread_toml
Read a TOML file from disk and return its parsed contents.
lib/crewai-core/src/crewai_core/project.py:30
↓ 8 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:930
↓ 8 callersMethodrequest_human_input
Request human input during LLM hook execution. This method pauses live console updates, displays a prompt to the user, waits for thei
lib/crewai/src/crewai/hooks/llm_hooks.py:114
↓ 8 callersFunctionresolve_refs
Recursively resolve all local $refs in the given JSON Schema using $defs as the source. This is needed because Pydantic generates $ref-based sche
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:99
↓ 8 callersFunctionset_platform_integration_token
Set the platform integration token in the current context. Args: integration_token: The integration token to set.
lib/crewai/src/crewai/context.py:30
↓ 8 callersFunctionstrip_jsonc_comments
Strip JSONC comments and trailing commas while preserving string values.
lib/crewai/src/crewai/project/json_loader.py:188
↓ 8 callersFunctionstrip_unsupported_formats
Remove format annotations that OpenAI strict mode doesn't support. OpenAI only supports: date-time, date, time, duration. Other formats like
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:230
↓ 8 callersMethodsupports_function_calling
Check if the model supports function calling. Note: This method is only used by the litellm fallback path. Native providers override
lib/crewai/src/crewai/llm.py:2409
↓ 8 callersMethodsupports_stop_words
Check if the model supports stop words. Note: This method is only used by the litellm fallback path. Native providers override this m
lib/crewai/src/crewai/llm.py:2429
↓ 8 callersFunctiontool_failure_collector
Collect the failures of one execution, isolated from concurrent ones. An agent may be shared by tasks running concurrently, so accumulating on
lib/crewai/src/crewai/tools/tool_failure.py:266
↓ 8 callersMethodtools
Get all available agent tools
lib/crewai/src/crewai/tools/agent_tools/agent_tools.py:22
↓ 8 callersFunctionwrite_temp_file
(content, suffix=".txt", encoding="utf-8")
lib/crewai-tools/tests/rag/test_text_loaders.py:11
↓ 7 callersMethod__get__
Support instance methods by implementing the descriptor protocol. Args: obj: The instance that the method is accessed through.
lib/crewai/src/crewai/project/wrappers.py:297
↓ 7 callersFunction_agent
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_inject_date.py:60
↓ 7 callersMethod_atomic_write_secure_file
Write content to a secure file via tempfile + os.replace.
lib/crewai-core/src/crewai_core/token_manager.py:124
↓ 7 callersMethod_build_scope_filter
Build a Qdrant Filter for scope prefix matching.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:244
↓ 7 callersFunction_cache
(tmp_path: Path)
lib/crewai/tests/skills/test_registry.py:59
↓ 7 callersMethod_call_completions
Call OpenAI Chat Completions API. Falls back to the Responses API when the model turns out not to be served by chat completions, whic
lib/crewai/src/crewai/llms/providers/openai/completion.py:497
↓ 7 callersMethod_create_file
(self, directory, filename, content="test content")
lib/crewai-tools/tests/rag/test_directory_loader.py:17
↓ 7 callersFunction_create_skill_dir
Create a skill directory containing a minimal SKILL.md.
lib/crewai/tests/events/test_skill_usage_events.py:23
↓ 7 callersFunction_dict_tool_use_response
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1366
↓ 7 callersMethod_effective_api
Which OpenAI API to actually use for this model. Honours an explicit ``api`` setting, but upgrades to ``"responses"`` for models alre
lib/crewai/src/crewai/llms/providers/openai/completion.py:1764
↓ 7 callersFunction_ensure_litellm
Lazy-load litellm on first use. Returns True if available.
lib/crewai/src/crewai/llm.py:113
↓ 7 callersMethod_execute_single_native_tool_call
Execute a single native tool call and return metadata/result.
lib/crewai/src/crewai/experimental/agent_executor.py:1913
↓ 7 callersFunction_extract_summary_tags
Extract content between <summary></summary> tags. Falls back to the full text if no tags are found. Args: text: Text potentially con
lib/crewai/src/crewai/utilities/agent_utils.py:950
↓ 7 callersMethod_finalize_task_prompt
Apply skill context, tool preparation, and training data to the task prompt. Args: task_prompt: The task prompt after memory and
lib/crewai/src/crewai/agent/core.py:568
↓ 7 callersMethod_format_messages
(self, messages: str | list[LLMMessage])
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:134
↓ 7 callersFunction_install_client
Install *client* the way a hosted runtime does.
lib/crewai/tests/skills/test_registry.py:74
↓ 7 callersFunction_is_sqlite
Check if a file is a SQLite database by reading its magic bytes.
lib/cli/src/crewai_cli/checkpoint_cli.py:80
↓ 7 callersMethod_load_from_file
(self, content)
lib/crewai-tools/tests/rag/test_mdx_loader.py:18
↓ 7 callersMethod_load_from_path
(self, path)
lib/crewai-tools/tests/rag/test_json_loader.py:25
↓ 7 callersMethod_make_client_kwargs
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:266
↓ 7 callersMethod_make_executor
Build a CrewAgentExecutor with minimal deps.
lib/crewai/tests/agents/test_agent.py:2726
↓ 7 callersMethod_make_executor
Create a minimal CrewAgentExecutor with mocked dependencies.
lib/crewai/tests/agents/test_native_tool_calling.py:1120
↓ 7 callersMethod_merge_tools
Merge new tools into existing tools list, avoiding duplicates.
lib/crewai/src/crewai/crew.py:1710
↓ 7 callersFunction_parse_checkpoint_json
Parse checkpoint JSON into metadata dict.
lib/cli/src/crewai_cli/checkpoint_cli.py:91
↓ 7 callersMethod_prompt_input
Show rich panel and prompt for input. Args: crew: The crew instance for context. Returns: User input string
lib/crewai/src/crewai/core/providers/human_input.py:319
↓ 7 callersFunction_repin_crewai_install
Rewrite ``crewai[extras]==old`` pins in a shell command string. Splits on the known ``crewai[`` prefix and reconstructs the pin with the new
lib/devtools/src/crewai_devtools/cli.py:1390
↓ 7 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:28
↓ 7 callersFunction_resolving
Resolve refs against a temp cwd and cache, with *api* as the registry.
lib/crewai/tests/skills/test_registry.py:82
↓ 7 callersMethod_run
Execute the search query against the SingleStore database. Args: search_query: The SQL query to execute **kwargs: Add
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:381
↓ 7 callersFunction_run_sync
Run a coroutine synchronously, handling nested event loops. If called from within a running event loop, runs the coroutine in a separate thre
lib/crewai/src/crewai/utilities/file_store.py:36
↓ 7 callersFunction_safe_extractall
Path-traversal-safe extraction for Python versions without tar filters. Validates both the member's own path and, for symlink/hardlink members,
lib/cli/src/crewai_cli/skills/main.py:423
↓ 7 callersMethod_save_documents
Save the documents to the storage. This method should be called after the chunks and embeddings are generated. Raises: V
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:50
↓ 7 callersMethod_scroll_all
Scroll all points matching a filter from a shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:256
↓ 7 callersMethod_stringify_result
(result: Any)
lib/crewai/src/crewai/experimental/conversational_mixin.py:1159
↓ 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:184
↓ 7 callersFunction_tool_use_name
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:180
↓ 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 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, 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:920
↓ 7 callersMethodclose
(self)
lib/crewai-tools/tests/tools/stagehand_tool_test.py:96
↓ 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 callersMethodcreate_client
Creates a ChromaDB client from configuration.
lib/crewai/src/crewai/rag/config/optional_imports/protocols.py:18
↓ 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:288
↓ 7 callersMethodevaluate
Evaluate this value as a full CEL expression.
lib/crewai/src/crewai/flow/expressions.py:228
↓ 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:450
↓ 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 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:795
↓ 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:489
↓ 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 callersMethodload_state
Load the most recent state for a given flow UUID. Args: flow_uuid: Unique identifier for the flow instance Returns:
lib/crewai/src/crewai/flow/persistence/sqlite.py:178
↓ 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 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
← previousnext →401–500 of 13,938, ranked by callers