MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions19,482 in github.com/crewAIInc/crewAI

↓ 3 callersMethodadd_edge
Add an edge from this node to another. Args: edge_type: The relationship type. target_id: The event_id of the target
lib/crewai/src/crewai/state/event_record.py:78
↓ 3 callersMethodadd_sources
(self)
lib/crewai/src/crewai/knowledge/knowledge.py:154
↓ 3 callersMethodadelete
Async delete an uploaded file. Default implementation runs sync delete in executor. Override in subclasses for native async support.
lib/crewai-files/src/crewai_files/uploaders/base.py:86
↓ 3 callersFunctionagent_definition_path
Return the project's JSON or YAML agent definition.
lib/cli/src/crewai_cli/agent_tools.py:137
↓ 3 callersFunctionaget_all_files
Get merged crew and task files asynchronously. Task files override crew files with the same name. Args: crew_id: Unique identifier f
lib/crewai/src/crewai/utilities/file_store.py:154
↓ 3 callersMethodaget_by_hash
Get a cached upload by file hash. Args: file_hash: Hash of the file content. provider: The provider name. Re
lib/crewai-files/src/crewai_files/cache/upload_cache.py:207
↓ 3 callersFunctionaget_files
Retrieve files for a crew execution asynchronously. Args: execution_id: Unique identifier for the crew execution. Returns: D
lib/crewai/src/crewai/utilities/file_store.py:81
↓ 3 callersMethodainvoke
Async version of invoke. Alias for invoke_async.
lib/crewai/src/crewai/agents/agent_executor.py:3322
↓ 3 callersMethodall_of
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:50
↓ 3 callersFunctionallows_private_host
Whether *hostname* is explicitly allowed to resolve privately. Matching is exact on the hostname: no wildcards, and IP addresses are never al
lib/crewai-tools/src/crewai_tools/security/safe_path.py:276
↓ 3 callersFunctionanalyze_query
Use the LLM to analyze a recall query. On LLM failure, returns safe defaults so recall degrades to plain vector search. Args: query:
lib/crewai/src/crewai/memory/analyze.py:204
↓ 3 callersMethodanimateEdgeWidth
( edges, edgeId, targetWidth, duration = CONSTANTS.EDGE.ANIMATION_DURATION, )
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:584
↓ 3 callersMethodanimateToPosition
(targetPosition)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:2391
↓ 3 callersFunctionappend_message
Append a message to ``state.messages`` or the flow fallback buffer.
lib/crewai/src/crewai/flow/conversation.py:117
↓ 3 callersFunctionapply_execution_context
Write an ExecutionContext back into the ContextVars.
lib/crewai/src/crewai/context.py:120
↓ 3 callersMethodareset
(self)
lib/crewai/tests/agents/test_agent.py:1899
↓ 3 callersMethodaresolve_files
Async resolve multiple files in parallel. Args: files: Dictionary mapping names to file inputs. provider: Provider na
lib/crewai-files/src/crewai_files/resolution/resolver.py:451
↓ 3 callersMethodasave
Save documents to the knowledge base asynchronously. Args: documents: List of document strings to save.
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:239
↓ 3 callersMethodasave
(self, documents)
lib/crewai/tests/agents/test_agent.py:1893
↓ 3 callersMethodasearch
Search for documents in the knowledge base asynchronously. Args: query: List of query strings. limit: Maximum number
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:196
↓ 3 callersMethodaset_by_hash
Cache an uploaded file by hash. Args: file_hash: Hash of the file content. content_type: MIME type of the file.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:262
↓ 3 callersFunctionassert_anonymous
A random uuid4: not the run's id, not the project's, nothing derived.
lib/cli/tests/experimental/test_eval_crew.py:976
↓ 3 callersMethodassert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/cli/tests/test_plus_api.py:150
↓ 3 callersMethodassert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/crewai/tests/cli/test_plus_api.py:48
↓ 3 callersFunctionastore_files
Store files for a crew execution asynchronously. Args: execution_id: Unique identifier for the crew execution. files: Dictionary
lib/crewai/src/crewai/utilities/file_store.py:64
↓ 3 callersMethodato_pydantic
Async equivalent of ``to_pydantic`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/utilities/converter.py:125
↓ 3 callersFunctionawaited_evaluation
What `crewai eval` said about this run, when it started it: None for a run nobody is evaluating. Never raises: a directory or a file that cannot
lib/crewai-core/src/crewai_core/eval_handshake.py:75
↓ 3 callersFunctionbare_context_windows
Index context limits by bare model name. Each catalog entry casts a vote for its limit. The bare name keeps the limit with the most votes. A
lib/crewai/src/crewai/llms/context_window.py:214
↓ 3 callersFunctionbuild
(tf: tarfile.TarFile)
lib/crewai/tests/skills/test_cache.py:213
↓ 3 callersFunctionbuild_env_with_tool_repository_credentials
Return a copy of ``os.environ`` augmented with UV_INDEX_* credentials for ``repository_handle``. The handle is normalized to upper-case with
lib/crewai-core/src/crewai_core/tool_credentials.py:12
↓ 3 callersFunctionbuild_execution_plan
Build an execution plan from handlers and their dependencies. Args: handlers: All handlers for an event type dependencies: Mappin
lib/crewai/src/crewai/events/handler_graph.py:105
↓ 3 callersMethodbuild_router_context
(self)
lib/crewai/tests/test_flow_jobs.py:77
↓ 3 callersFunctionbuild_simple_crew
(tool)
lib/crewai/tests/tools/test_structured_tool.py:354
↓ 3 callersFunctionbuild_skill_catalog
Label the metadata-only skills an execution can still load. Skills resolved from different orgs or search paths can share a frontmatter name.
lib/crewai/src/crewai/skills/loader.py:245
↓ 3 callersFunctionbuild_zip
Return a zip holding *names*, shaped like an OOXML package.
lib/crewai-tools/tests/url_read_tool_test.py:126
↓ 3 callersMethodcalculate_usage_metrics
Calculates and returns the usage metrics.
lib/crewai/src/crewai/crew.py:2327
↓ 3 callersMethodcall
(self, messages, **kwargs)
lib/cli/tests/test_run_agent.py:275
↓ 3 callersMethodcall
Mock LLM call that returns a predefined response. Properly formats messages to match OpenAI's expected structure.
lib/crewai/tests/test_custom_llm.py:27
↓ 3 callersMethodcall_llm_native_tools
Execute LLM call with native function calling. Always calls the LLM so it can read reflection prompts and decide whether to provide a
lib/crewai/src/crewai/agents/agent_executor.py:1724
↓ 3 callersFunctioncall_stop_override
Override the stop list for ``llm`` within the current call scope. Only ``llm``'s reads via :attr:`BaseLLM.stop_sequences` see ``stop``; other
lib/crewai/src/crewai/llms/base_llm.py:174
↓ 3 callersMethodcall_tool_result
Call a tool and return its content together with the ``isError`` flag. MCP servers report a failed tool as a *successful* JSON-RPC response
lib/crewai/src/crewai/mcp/client.py:468
↓ 3 callersFunctioncaptured_task_failures
Every TaskFailedEvent the producer *emits*, captured at the emit boundary. Patches ``crewai_event_bus.emit`` rather than subscribing a handler to
lib/crewai/tests/telemetry/test_task_failure_instrumentation.py:369
↓ 3 callersMethodchat
Start an experimental conversation using the same options as Flow.chat. Requires ``conversational=True``. Use ``tui=True`` for the terminal U
lib/crewai/src/crewai/agent/core.py:1943
↓ 3 callersMethodcheck_output
Check if an output type is set.
lib/crewai/src/crewai/task.py:603
↓ 3 callersMethodchunk
Chunk the input text into smaller pieces. Args: text: The text to chunk. Returns: A list of text chunks.
lib/crewai-tools/src/crewai_tools/rag/chunkers/base_chunker.py:179
↓ 3 callersMethodclassify_intent
Map user text to one of the given outcomes using an LLM.
lib/crewai/src/crewai/flow/conversational_mixin.py:1007
↓ 3 callersFunctionclear_all_llm_call_hooks
Clear all registered global LLM call hooks (both before and after). Returns: Tuple of (before_hooks_cleared, after_hooks_cleared) Ex
lib/crewai/src/crewai/hooks/llm_hooks.py:399
↓ 3 callersMethodclose
Close the underlying stream.
lib/crewai-files/src/crewai_files/core/sources.py:388
↓ 3 callersMethodclose
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1913
↓ 3 callersMethodclose
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:182
↓ 3 callersMethodclose
(self)
lib/crewai/tests/memory/test_storage_backend_async_parity.py:46
↓ 3 callersFunctionclose_span
Set span status to OK and end it. Args: span: The span to close.
lib/crewai/src/crewai/telemetry/utils.py:116
↓ 3 callersMethodcoding_agent_span
Records which AI coding assistant (if any) is running this process. Emitted at most once per process as a feature usage event, so it lands
lib/crewai/src/crewai/telemetry/telemetry.py:1346
↓ 3 callersMethodcompute_key
Compute a collision-resistant key using SHA-256.
lib/crewai/src/crewai/a2a/auth/utils.py:42
↓ 3 callersFunctioncompute_sha256
Compute the SHA-256 hash of the given content. Args: content: The content to hash. Returns: The SHA-256 hash of the content as a
lib/crewai-tools/src/crewai_tools/rag/misc.py:5
↓ 3 callersFunctionconfigure_auth_client
Configure HTTP client with auth-specific settings. Only HTTPDigestAuth and APIKeyAuth need client configuration. Args: auth: Authent
lib/crewai/src/crewai/a2a/auth/utils.py:262
↓ 3 callersFunctionconfigured_project_json_crew
Return the configured JSON crew definition for crew projects.
lib/cli/src/crewai_cli/run_crew.py:166
↓ 3 callersFunctioncontext_windows_from_catalog
Build model-id context windows from a LiteLLM catalog payload. Catalog keys are kept as published. When a key is ``provider/model`` and that
lib/crewai/src/crewai/llms/context_window.py:88
↓ 3 callersFunctioncopy_template
Copy a file from src to dst; ``extras`` go into its crewai dependency.
lib/cli/src/crewai_cli/utils.py:164
↓ 3 callersMethodcount
(self, scope_prefix: str | None = None)
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:644
↓ 3 callersFunctioncreate_async_chunk_generator
Create an async chunk generator that uses a holder to access streaming output. Args: state: The streaming state. run_coro: Corout
lib/crewai/src/crewai/utilities/streaming.py:522
↓ 3 callersFunctioncreate_frame_generator
Create a scoped synchronous public frame generator.
lib/crewai/src/crewai/utilities/streaming.py:254
↓ 3 callersFunctioncreate_memory_tools
Create Recall and Remember tools for the given memory instance. When memory is read-only (``_read_only=True``), only the RecallMemoryTool is
lib/crewai/src/crewai/tools/memory_tools.py:104
↓ 3 callersFunctioncreate_streaming_state
Create and register streaming state. Args: current_task_info: Task context info. result_holder: List to hold the final result.
lib/crewai/src/crewai/utilities/streaming.py:412
↓ 3 callersFunctioncreated_config
Yield a getter for the config RagTool hands to the client factory.
lib/crewai-tools/tests/tools/rag/test_rag_tool_default_provider.py:25
↓ 3 callersMethodcrew_by_name
( self, project_name: str, log_type: str = "deployment" )
lib/crewai-core/src/crewai_core/plus_api.py:502
↓ 3 callersMethodcrew_by_uuid
(self, uuid: str, log_type: str = "deployment")
lib/crewai-core/src/crewai_core/plus_api.py:509
↓ 3 callersMethodcurrent
(self)
lib/cli/src/crewai_cli/organization/main.py:90
↓ 3 callersFunctiondelegate_to_analyst
(task: str)
lib/crewai/tests/agents/test_agent_spreadsheets.py:610
↓ 3 callersMethoddelete
( self, scope_prefix: str | None = None, categories: list[str] | None = None,
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:433
↓ 3 callersMethoddelete_crew_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:514
↓ 3 callersMethoddelete_crew_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:519
↓ 3 callersMethoddelta_since
Return the per-call usage accrued since ``baseline`` was captured. Both objects must come from the same monotonically increasing accu
lib/crewai/src/crewai/types/usage_metrics.py:79
↓ 3 callersFunctiondeny_nth_model_call
Deny the nth model call of the run, returning the log of attempts.
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:127
↓ 3 callersMethoddescendants
Return all descendant nodes, children recursively. Args: event_id: The root event ID to start from. Returns:
lib/crewai/src/crewai/state/event_record.py:160
↓ 3 callersMethoddisallow_file
Revoke an artifact path. Missing aliases are ignored.
lib/crewai/src/crewai/tools/agent_tools/deferred_tool_result_reader.py:43
↓ 3 callersMethoddisconnect
Close HTTP connection. Raises: MCPConnectionError: If the server refused the connection. The refusal is reported
lib/crewai/src/crewai/mcp/transports/http.py:167
↓ 3 callersMethoddownload_pdf
(self, pdf_url: str, save_path: str)
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:161
↓ 3 callersMethodembed_batch
Generate embeddings for multiple texts. Args: texts: List of texts to embed Returns: List of embedd
lib/crewai-tools/src/crewai_tools/rag/embedding_service.py:285
↓ 3 callersMethodembed_batch
Embed several texts with one call to the wrapped function. Args: texts: Texts to embed. Returns: One embeddi
lib/crewai/src/crewai/rag/qdrant/embedding_adapter.py:41
↓ 3 callersFunctionembed_texts
Embed multiple texts in a single API call. The embedder already accepts ``list[str]``, so this just calls it once with the full batch and nor
lib/crewai/src/crewai/memory/types.py:312
↓ 3 callersFunctionenable_agent_streaming
Enable streaming on all agents that have an LLM configured. Args: agents: Iterable of agents to enable streaming on.
lib/crewai/src/crewai/crews/utils.py:46
↓ 3 callersMethodevaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:27
↓ 3 callersMethodevaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:310
↓ 3 callersMethodevaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/semantic_quality_metrics.py:25
↓ 3 callersMethodevaluate_training_data
Evaluate the training data based on the llm output, human feedback, and improved output. Args: - training_data: The trai
lib/crewai/src/crewai/utilities/evaluators/task_evaluator.py:115
↓ 3 callersMethodexecute
(self, sql: str, *args: object)
lib/crewai/tests/test_sqlite_connection_lifecycle.py:63
↓ 3 callersMethodexecute_async
Execute the task asynchronously.
lib/crewai/src/crewai/task.py:650
↓ 3 callersMethodexecute_native_tool
Execute native tool calls in a batch. Processes all tools from pending_tool_calls, executes them, and appends results to the conversa
lib/crewai/src/crewai/agents/agent_executor.py:2010
↓ 3 callersMethodexport
Bound each request; oversized single spans are skipped with FAILURE.
lib/crewai/src/crewai/telemetry/tracing/grants.py:296
↓ 3 callersMethodextract
(self, options: Any)
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:291
↓ 3 callersMethodextract_all_states
Extract conversation states from all registered extensions. Args: conversation_history: The sequence of A2A messages exchanged.
lib/crewai/src/crewai/a2a/extensions/base.py:195
↓ 3 callersFunctionextract_common_params
Extract common parameters from handler kwargs. Args: kwargs: Handler kwargs dict. Returns: CommonParams with extracted value
lib/crewai/src/crewai/a2a/updates/base.py:152
↓ 3 callersMethodextract_id
Extract the checkpoint ID from a file path. The filename format is ``{ts}_{uuid8}_p-{parent}.json``. The checkpoint ID is the ``{ts}_
lib/crewai/src/crewai/state/provider/json_provider.py:113
↓ 3 callersMethodextract_memories
Extract discrete memories from a raw content blob using the LLM. This is a pure helper -- it does NOT store anything. Call remember()
lib/crewai/src/crewai/memory/unified_memory.py:672
↓ 3 callersFunctionfail_execution
()
lib/crewai/tests/telemetry/test_session_trace_export.py:614
↓ 3 callersFunctionfail_project_scripts
(monkeypatch: pytest.MonkeyPatch)
lib/cli/tests/test_run_usage.py:986
↓ 3 callersMethodfetch
Fetch latest updates from the remote.
lib/cli/src/crewai_cli/git.py:54
↓ 3 callersFunctionfetch_and_json_env_file
Fetch the environment variables from a .env file and return them as a dictionary.
lib/cli/src/crewai_cli/utils.py:198
↓ 3 callersMethodfetch_inputs
Gathers placeholders (e.g., {something}) referenced in tasks or agents. Scans each task's 'description' + 'expected_output', and each
lib/crewai/src/crewai/crew.py:2210
← previousnext →1,801–1,900 of 19,482, ranked by callers