MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions12,753 in github.com/crewAIInc/crewAI

↓ 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:403
↓ 9 callersFunctionget_current_parent_id
Get the current parent event ID from the stack.
lib/crewai/src/crewai/events/event_context.py:62
↓ 9 callersMethodget_mcp_tools
(self, mcps: list[str])
lib/crewai/tests/agents/agent_builder/test_base_agent.py:25
↓ 9 callersMethodinitialize_batch
Initialize a new trace batch (thread-safe)
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:88
↓ 9 callersMethodinstall
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:209
↓ 9 callersFunctionis_current_version_yanked
Return ``(yanked, reason)`` for the currently installed version.
lib/crewai-core/src/crewai_core/version.py:149
↓ 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 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_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:193
↓ 9 callersFunctionregister_before_llm_call_hook
Register a global before_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:157
↓ 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 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 callersMethodtask_execution
Generate a standard prompt for task execution. Returns: A dictionary containing the constructed prompt(s).
lib/crewai/src/crewai/utilities/prompts.py:74
↓ 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 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_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_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:2479
↓ 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 callersFunction_get_machine_id
Stable, privacy-preserving machine fingerprint (cross-platform).
lib/crewai/src/crewai/events/listeners/tracing/utils.py:191
↓ 8 callersMethod_invoke_step_callback
Invoke step callback if configured. Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/experimental/agent_executor.py:2957
↓ 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 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_split_messages_into_chunks
Split messages into chunks at message boundaries. Excludes system messages from chunks. Each chunk stays under max_tokens based on estimated
lib/crewai/src/crewai/utilities/agent_utils.py:819
↓ 8 callersMethod_validate_query
Validate the search query to ensure it's safe to execute. Only SELECT and SHOW statements are allowed for security reasons. Args:
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:356
↓ 8 callersMethodaclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:264
↓ 8 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:114
↓ 8 callersMethodadd
Add content to the knowledge base.
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:98
↓ 8 callersFunctionchunk_text
Split a text file into chunks of maximum character count. Yields chunks one at a time to minimize memory usage. Args: file: The text
lib/crewai-files/src/crewai_files/processing/transformers.py:227
↓ 8 callersFunctioncleanup_temp_file
(path)
lib/crewai-tools/tests/rag/test_text_loaders.py:19
↓ 8 callersMethodcopy
Creates a deep copy of the Crew instance. Returns: Crew: A new instance with copied components
lib/crewai/src/crewai/crew.py:1987
↓ 8 callersMethoddelete_collection
Delete a collection and all its data. Keyword Args: collection_name: Name of the collection to delete. Raises:
lib/crewai/src/crewai/rag/qdrant/client.py:430
↓ 8 callersFunctiondetect_content_type
Detect MIME type from file content. Uses python-magic if available for accurate content-based detection, falls back to mimetypes module using
lib/crewai-files/src/crewai_files/core/sources.py:125
↓ 8 callersMethodfirst
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:44
↓ 8 callersFunctionforce_additional_properties_false
Force additionalProperties=false on all object-type dicts recursively. OpenAI strict mode requires all objects to have additionalProperties=false
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:181
↓ 8 callersMethodfrom_flow
Build an expression with the standard Flow runtime context.
lib/crewai/src/crewai/flow/expressions.py:207
↓ 8 callersFunctiongenerate_filename
Generate a UUID-based filename with extension from content type. Args: content_type: MIME type to derive extension from. Returns:
lib/crewai-files/src/crewai_files/core/sources.py:110
↓ 8 callersFunctionget_all_files
Get merged crew and task files. Task files override crew files with the same name. Args: crew_id: Unique identifier for the crew exe
lib/crewai/src/crewai/utilities/file_store.py:250
↓ 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:48
↓ 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 callersMethodkickoff
(self, inputs)
lib/cli/tests/test_run_crew.py:592
↓ 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). Args: ref: A registry reference, e.g. '@acme/my-skill'. Returns: A (org, name) tup
lib/crewai/src/crewai/experimental/skills/registry.py:36
↓ 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:238
↓ 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:913
↓ 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:109
↓ 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 callersMethodstore
Unpack an archive into the cache and write metadata. Uses tarfile with filter='data' for path-traversal protection. Args:
lib/crewai/src/crewai/experimental/skills/cache.py:50
↓ 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:2362
↓ 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:2382
↓ 8 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
↓ 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 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 callersMethod_create_file
(self, directory, filename, content="test content")
lib/crewai-tools/tests/rag/test_directory_loader.py:17
↓ 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:1885
↓ 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:867
↓ 7 callersMethod_format_messages
(self, messages: str | list[LLMMessage])
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:134
↓ 7 callersMethod_get_client_params
Get OpenAI client parameters.
lib/crewai/src/crewai/llms/providers/openai/completion.py:360
↓ 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:2671
↓ 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:1677
↓ 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:1388
↓ 7 callersMethod_run
( self, file_path: str | None = None, start_line: int | None = 1, line_count:
lib/crewai-tools/src/crewai_tools/tools/file_read_tool/file_read_tool.py:73
↓ 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/experimental/skills/main.py:380
↓ 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
← previousnext →301–400 of 12,753, ranked by callers