Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,264 in github.com/crewAIInc/crewAI
⨍
Functions
19,264
◇
Types & classes
3,413
↳
Endpoints
990
↓ 3 callers
Method
assert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/cli/tests/test_plus_api.py:150
↓ 3 callers
Method
assert_request_with_org_id
( self, mock_client_instance, method: str, endpoint: str, **kwargs )
lib/crewai/tests/cli/test_plus_api.py:48
↓ 3 callers
Function
astore_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 callers
Method
ato_pydantic
Async equivalent of ``to_pydantic`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/utilities/converter.py:125
↓ 3 callers
Function
awaited_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 callers
Function
bare_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 callers
Function
build
(tf: tarfile.TarFile)
lib/crewai/tests/skills/test_cache.py:213
↓ 3 callers
Function
build_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 callers
Function
build_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 callers
Method
build_router_context
(self)
lib/crewai/tests/test_flow_jobs.py:77
↓ 3 callers
Function
build_simple_crew
(tool)
lib/crewai/tests/tools/test_structured_tool.py:354
↓ 3 callers
Function
build_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 callers
Function
build_zip
Return a zip holding *names*, shaped like an OOXML package.
lib/crewai-tools/tests/url_read_tool_test.py:126
↓ 3 callers
Method
calculate_usage_metrics
Calculates and returns the usage metrics.
lib/crewai/src/crewai/crew.py:2327
↓ 3 callers
Method
call
(self, messages, **kwargs)
lib/cli/tests/test_run_agent.py:275
↓ 3 callers
Method
call
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 callers
Method
call_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 callers
Function
call_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 callers
Method
call_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 callers
Function
captured_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 callers
Method
chat
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:1937
↓ 3 callers
Method
check_output
Check if an output type is set.
lib/crewai/src/crewai/task.py:602
↓ 3 callers
Method
chunk
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 callers
Method
classify_intent
Map user text to one of the given outcomes using an LLM.
lib/crewai/src/crewai/flow/conversational_mixin.py:1007
↓ 3 callers
Function
clear_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 callers
Method
close
Close the underlying stream.
lib/crewai-files/src/crewai_files/core/sources.py:388
↓ 3 callers
Method
close
()
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1913
↓ 3 callers
Method
close
Cancel streaming and clean up resources.
lib/crewai/src/crewai/types/streaming.py:182
↓ 3 callers
Method
close
(self)
lib/crewai/tests/memory/test_storage_backend_async_parity.py:46
↓ 3 callers
Function
close_span
Set span status to OK and end it. Args: span: The span to close.
lib/crewai/src/crewai/telemetry/utils.py:116
↓ 3 callers
Method
coding_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 callers
Method
compute_key
Compute a collision-resistant key using SHA-256.
lib/crewai/src/crewai/a2a/auth/utils.py:42
↓ 3 callers
Function
compute_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 callers
Function
configure_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 callers
Function
configured_project_json_crew
Return the configured JSON crew definition for crew projects.
lib/cli/src/crewai_cli/run_crew.py:166
↓ 3 callers
Function
context_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 callers
Function
copy_template
Copy a file from src to dst; ``extras`` go into its crewai dependency.
lib/cli/src/crewai_cli/utils.py:164
↓ 3 callers
Method
count
(self, scope_prefix: str | None = None)
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:628
↓ 3 callers
Function
create_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 callers
Function
create_frame_generator
Create a scoped synchronous public frame generator.
lib/crewai/src/crewai/utilities/streaming.py:254
↓ 3 callers
Function
create_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 callers
Function
create_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 callers
Method
crew_by_name
( self, project_name: str, log_type: str = "deployment" )
lib/crewai-core/src/crewai_core/plus_api.py:502
↓ 3 callers
Method
crew_by_uuid
(self, uuid: str, log_type: str = "deployment")
lib/crewai-core/src/crewai_core/plus_api.py:509
↓ 3 callers
Method
current
(self)
lib/cli/src/crewai_cli/organization/main.py:90
↓ 3 callers
Function
delegate_to_analyst
(task: str)
lib/crewai/tests/agents/test_agent_spreadsheets.py:610
↓ 3 callers
Method
delete
( self, scope_prefix: str | None = None, categories: list[str] | None = None,
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:433
↓ 3 callers
Method
delete_crew_by_name
(self, project_name: str)
lib/crewai-core/src/crewai_core/plus_api.py:514
↓ 3 callers
Method
delete_crew_by_uuid
(self, uuid: str)
lib/crewai-core/src/crewai_core/plus_api.py:519
↓ 3 callers
Method
delta_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 callers
Function
deny_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 callers
Method
descendants
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 callers
Method
disallow_file
Revoke an artifact path. Missing aliases are ignored.
lib/crewai/src/crewai/tools/agent_tools/deferred_tool_result_reader.py:43
↓ 3 callers
Method
disconnect
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 callers
Method
download_pdf
(self, pdf_url: str, save_path: str)
lib/crewai-tools/src/crewai_tools/tools/arxiv_paper_tool/arxiv_paper_tool.py:161
↓ 3 callers
Method
embed_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 callers
Function
embed_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 callers
Function
enable_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 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:27
↓ 3 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/tools_metrics.py:310
↓ 3 callers
Method
evaluate
( self, agent: Agent | BaseAgent, execution_trace: dict[str, Any], final_outpu
lib/crewai/src/crewai/experimental/evaluation/metrics/semantic_quality_metrics.py:25
↓ 3 callers
Method
evaluate_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 callers
Method
execute
(self, sql: str, *args: object)
lib/crewai/tests/test_sqlite_connection_lifecycle.py:63
↓ 3 callers
Method
execute_async
Execute the task asynchronously.
lib/crewai/src/crewai/task.py:649
↓ 3 callers
Method
execute_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 callers
Method
export
Bound each request; oversized single spans are skipped with FAILURE.
lib/crewai/src/crewai/telemetry/tracing/grants.py:296
↓ 3 callers
Method
extract
(self, options: Any)
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:291
↓ 3 callers
Method
extract_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 callers
Function
extract_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 callers
Method
extract_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 callers
Method
extract_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 callers
Function
fail_execution
()
lib/crewai/tests/telemetry/test_session_trace_export.py:614
↓ 3 callers
Function
fail_project_scripts
(monkeypatch: pytest.MonkeyPatch)
lib/cli/tests/test_run_usage.py:986
↓ 3 callers
Method
fetch
Fetch latest updates from the remote.
lib/cli/src/crewai_cli/git.py:54
↓ 3 callers
Function
fetch_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 callers
Method
fetch_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
↓ 3 callers
Method
filter_by_names
(self, names: list[str] | None = None)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:63
↓ 3 callers
Method
finalize_session_traces
(self)
lib/cli/tests/test_trace_consent_session.py:192
↓ 3 callers
Function
find_json_project_file
Return ``stem.jsonc`` or ``stem.json``, preferring JSONC.
lib/crewai/src/crewai/project/json_loader.py:178
↓ 3 callers
Function
find_version_files
Find all __init__.py files that contain __version__. Args: base_path: Base directory to search in. Returns: List of paths to
lib/devtools/src/crewai_devtools/cli.py:667
↓ 3 callers
Method
finish
( self, error_type: type[BaseException] | None = None, error: BaseException | None = N
lib/crewai/src/crewai/execution.py:44
↓ 3 callers
Method
fitToAvailableSpace
(centerScreen = false)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:2404
↓ 3 callers
Function
flow_template_expression_description
(prefix: str)
lib/crewai/src/crewai/flow/expressions.py:179
↓ 3 callers
Method
flush_to_central
Sync local shard records to the central shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:784
↓ 3 callers
Function
format_error_for_display
Return exception details without OS-added absolute path context.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:52
↓ 3 callers
Function
format_inline_value
(value: Any)
lib/crewai/src/crewai/flow/skill.py:571
↓ 3 callers
Method
from_settings
Build an ``Oauth2Settings`` instance from the persisted CrewAI settings.
lib/crewai-core/src/crewai_core/auth/oauth2.py:49
↓ 3 callers
Method
from_tool_pack
Create multiple MergeAgentHandlerTool instances from a Tool Pack. Args: tool_pack_id: UUID of the Tool Pack
lib/crewai-tools/src/crewai_tools/tools/merge_agent_handler_tool/merge_agent_handler_tool.py:267
↓ 3 callers
Function
generate_input_description_with_ai
Generate an input description using AI based on the context of the crew. Args: input_name: The name of the input placeholder. cre
lib/crewai/src/crewai/utilities/crew_chat.py:418
↓ 3 callers
Method
get_chunker
(self)
lib/crewai-tools/src/crewai_tools/rag/data_types.py:32
↓ 3 callers
Method
get_context_window_size
Get the context window size for the model.
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:2096
↓ 3 callers
Function
get_enclosing_parent_id
Get the parent of the current scope (stack[-2]).
lib/crewai/src/crewai/events/event_context.py:68
↓ 3 callers
Function
get_enterprise_api_base_url
Get the enterprise API base URL from environment or use default.
lib/crewai-tools/src/crewai_tools/adapters/enterprise_adapter.py:12
↓ 3 callers
Function
get_env_context
()
lib/crewai/src/crewai/utilities/env.py:28
↓ 3 callers
Method
get_file_info
Get information about an uploaded file. Args: file_id: The file identifier. Returns: Dictionary with file in
lib/crewai-files/src/crewai_files/uploaders/base.py:101
↓ 3 callers
Function
get_files
Retrieve files for a crew execution. Args: execution_id: Unique identifier for the crew execution. Returns: Dictionary of fi
lib/crewai/src/crewai/utilities/file_store.py:193
↓ 3 callers
Method
get_input_tokens_count
(self, messages)
lib/crewai/tests/llms/test_context_window.py:389
↓ 3 callers
Method
get_last_raw_result
(self, fallback: Any)
lib/crewai/src/crewai/tools/tool_usage.py:143
↓ 3 callers
Method
get_organizations
(self)
lib/crewai-core/src/crewai_core/plus_api.py:584
↓ 3 callers
Function
get_packages
Get all packages from lib/ directory. Args: lib_dir: Path to lib/ directory. Returns: List of package directory paths.
lib/devtools/src/crewai_devtools/cli.py:683
← previous
next →
1,801–1,900 of 19,264, ranked by callers