Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,482 in github.com/crewAIInc/crewAI
⨍
Functions
19,482
◇
Types & classes
3,433
↳
Endpoints
991
↓ 12 callers
Method
add
Add a new task output record to the database. Args: task: The Task object containing task details. output: Dictionary
lib/crewai/src/crewai/memory/storage/kickoff_task_outputs_storage.py:78
↓ 12 callers
Method
add
Add a new task output to storage. Args: task: The task that was executed. output: The output produced by the task.
lib/crewai/src/crewai/utilities/task_output_storage_handler.py:59
↓ 12 callers
Method
add
Add a tool result to the cache. Declared failures are never stored: replaying one would make a transient error permanent for the rest
lib/crewai/src/crewai/agents/cache/cache_handler.py:23
↓ 12 callers
Function
chat
(llm: PublicLLM | None = None)
lib/crewai/tests/test_flow_turns.py:43
↓ 12 callers
Method
claim
Atomically acquire the floor for at most one still-relevant completion.
lib/crewai/src/crewai/experimental/flow_replies.py:252
↓ 12 callers
Function
compared
(**overrides)
lib/cli/tests/experimental/test_eval_crew.py:1690
↓ 12 callers
Function
complete
(flow, name="one")
lib/crewai/tests/test_flow_replies.py:39
↓ 12 callers
Method
create_vector_index
( self, *, index_name: str | None = None, idx_type: Literal["HNSW", "IVF"] = "
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:711
↓ 12 callers
Function
download_skill
Download a skill from the registry and store it in the cache. Args: org: Organisation slug. name: Skill name. source: Opt
lib/crewai/src/crewai/skills/registry.py:275
↓ 12 callers
Method
enqueue
Queue one accepted completion; duplicates coalesce by job version. Only terminal completions are announced, so noisy stage progress never
lib/crewai/src/crewai/experimental/flow_replies.py:165
↓ 12 callers
Method
execute_action
Execute an action with the given arguments.
lib/crewai-tools/src/crewai_tools/tools/crewai_platform_tools/integrations_client.py:289
↓ 12 callers
Function
execute_single_native_tool_call
Execute a single native tool call with full lifecycle management. Handles: arg parsing, tool lookup, max-usage check, cache read/write, befor
lib/crewai/src/crewai/utilities/agent_utils.py:1517
↓ 12 callers
Method
execute_sql
Execute *sql_query* and return the results as a list of dicts. Parameters ---------- sql_query: The SQL statement
lib/crewai-tools/src/crewai_tools/tools/nl2sql/nl2sql_tool.py:460
↓ 12 callers
Method
feature_usage_span
Records that a feature was used. One span = one count. Args: feature: Feature identifier, e.g. ``"cli_usage:eval"``.
lib/crewai-core/src/crewai_core/telemetry.py:605
↓ 12 callers
Function
files_in
(folder: Path)
lib/cli/tests/experimental/test_eval_crew.py:2827
↓ 12 callers
Function
find_http_status
Search exceptions for an HTTP status reported by an MCP server. Args: *errors: Exceptions to search, in order of preference. Returns
lib/crewai/src/crewai/mcp/exceptions.py:230
↓ 12 callers
Method
format_output_for_agent
(self, raw_result: object)
lib/crewai/tests/tools/test_base_tool.py:610
↓ 12 callers
Method
get_cached_path
Return the cached skill directory path if usable, else None. Args: org: Organisation slug. name: Skill name.
lib/crewai/src/crewai/skills/cache.py:43
↓ 12 callers
Function
get_current_call_id
Get current call_id from context
lib/crewai/src/crewai/llms/base_llm.py:211
↓ 12 callers
Function
get_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:713
↓ 12 callers
Method
list
List all CLI configuration parameters.
lib/cli/src/crewai_cli/settings/main.py:24
↓ 12 callers
Method
load
Load and process all files from a directory recursively. Args: source_content: Directory path or URL to a directory listing
lib/crewai-tools/src/crewai_tools/rag/loaders/directory_loader.py:10
↓ 12 callers
Function
load_chromadb_embedding_function
Import one of chromadb's embedding function classes on demand. Args: module: Module name under ``chromadb.utils.embedding_functions``.
lib/crewai/src/crewai/rag/embeddings/chromadb_loader.py:9
↓ 12 callers
Function
parse_tool_call_args
Parse tool call arguments from a JSON string or dict. Returns: ``(args_dict, None)`` on success, or ``(None, error_result)`` on J
lib/crewai/src/crewai/utilities/agent_utils.py:1793
↓ 12 callers
Method
read
Fetch content from URL (for providers that don't support URL references).
lib/crewai-files/src/crewai_files/core/sources.py:528
↓ 12 callers
Function
resolve_registry_ref
Resolve a registry reference to a Skill object. Resolution order: 1. ./skills/{name}/ in the current working directory (project-local) 2.
lib/crewai/src/crewai/skills/registry.py:114
↓ 12 callers
Method
resume_live_updates
Resume Live session updates after human input is complete. New streaming sessions will be created on-demand when needed. This method
lib/crewai/src/crewai/events/utils/console_formatter.py:201
↓ 12 callers
Method
search
Search for similar documents using a query. Keyword Args: collection_name: Name of the collection to search in. query
lib/crewai/src/crewai/rag/qdrant/client.py:401
↓ 12 callers
Function
setup
()
lib/crewai/tests/test_flow_replies.py:33
↓ 12 callers
Method
start
(self)
lib/crewai/tests/utilities/test_events.py:628
↓ 12 callers
Function
tool_call
(name: str, **arguments: Any)
lib/crewai/tests/agents/test_agent_spreadsheets.py:146
↓ 12 callers
Function
tool_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:269
↓ 11 callers
Method
_agent
(self, **kwargs)
lib/crewai/tests/test_tool_cache_default.py:161
↓ 11 callers
Function
_at_a_terminal
Run `crewai create` as a person who types ``typed``, with stdin and stdout terminals unless a test says otherwise. Call it in the test body: pytes
lib/cli/tests/test_cli.py:403
↓ 11 callers
Function
_attributes
(span: MagicMock)
lib/crewai-core/tests/test_telemetry_deploy.py:38
↓ 11 callers
Method
_collapse_to_outcome
Collapse free-form feedback to a predefined outcome using LLM. This method uses the specified LLM to interpret the human's feedback a
lib/crewai/src/crewai/flow/runtime/__init__.py:3901
↓ 11 callers
Function
_create
Run `crewai create` outside CliRunner, which would swap in its own non-terminal stdin and stdout.
lib/cli/tests/test_cli.py:456
↓ 11 callers
Function
_fixture_records
Four records that differ in scope, category, metadata, and timestamp.
lib/crewai/tests/memory/test_storage_backend_async_parity.py:78
↓ 11 callers
Function
_graded
(monkeypatch, directory: Path, answer=None, evaluation_id: str = EVALUATION_ID, gate: str = "passed")
lib/cli/tests/experimental/test_eval_crew.py:3950
↓ 11 callers
Method
_make_state
(self)
lib/crewai/tests/test_checkpoint.py:223
↓ 11 callers
Function
_record_runs
Record each `crewai run` that create starts. Other commands, such as git, run for real.
lib/cli/tests/test_cli.py:438
↓ 11 callers
Function
_repeated_call_records
(records: list[ToolFailureRecord])
lib/crewai/tests/tools/test_tool_failure.py:1855
↓ 11 callers
Method
_run
Read a file, or a window of its lines, as text.
lib/crewai-tools/src/crewai_tools/tools/file_read_tool/file_read_tool.py:174
↓ 11 callers
Method
_run
Process input text synchronously.
lib/crewai/tests/tools/test_base_tool.py:149
↓ 11 callers
Method
_setup_connected_tool
(self, rows: list[tuple], **kwargs)
lib/crewai-tools/tests/tools/test_db2_search_tool.py:391
↓ 11 callers
Function
_stub_api
A CrewAI AMP client stub serving one skill.
lib/crewai/tests/skills/test_registry.py:52
↓ 11 callers
Method
acall
( self, messages: Any, tools: Any = None, callbacks: Any = None, avail
lib/crewai/tests/llms/test_base_llm.py:25
↓ 11 callers
Method
aclose
Settle owned workers; in-flight provider calls may still take time.
lib/crewai/src/crewai/experimental/flow_jobs.py:402
↓ 11 callers
Function
build
(provider: Provider, via_llm: bool, **kwargs: Any)
lib/crewai/tests/llms/test_missing_api_key.py:113
↓ 11 callers
Function
build_agent
(**kwargs: Any)
lib/crewai/tests/hooks/test_deny_reaches_the_caller.py:140
↓ 11 callers
Method
connect
(self)
lib/crewai/tests/telemetry/test_wharf_runner.py:86
↓ 11 callers
Function
convert_to_model
Convert a result to a Pydantic model or JSON. Args: result: The result to convert. Usually a JSON string, but a Pydantic inst
lib/crewai/src/crewai/utilities/converter.py:213
↓ 11 callers
Method
create_agent_executor
Create the AgentExecutor for the agent.
lib/crewai/src/crewai/agent/core.py:1343
↓ 11 callers
Function
create_folder_structure
( name: str, parent_folder: str | None = None )
lib/cli/src/crewai_cli/create_crew.py:50
↓ 11 callers
Function
create_test_png
Create a minimal valid PNG for testing.
lib/crewai-files/tests/processing/test_transformers.py:20
↓ 11 callers
Method
delete
Delete an uploaded file. Args: file_id: The file identifier to delete. Returns: True if deletion was success
lib/crewai-files/src/crewai_files/uploaders/base.py:76
↓ 11 callers
Method
get_mcp_tools
(self, mcps: list[str])
lib/crewai/tests/agents/agent_builder/test_base_agent.py:25
↓ 11 callers
Method
isatty
(self)
lib/cli/tests/test_cli.py:399
↓ 11 callers
Function
missing_key
(name: str = "OPENAI_API_KEY")
lib/cli/tests/test_run_usage.py:1373
↓ 11 callers
Function
parse_skill_ref
Parse a registry reference into its organisation, name and version. Accepts '@org/skill-name' and the version-pinned '@org/skill-name@1.2.0'
lib/crewai/src/crewai/skills/registry.py:46
↓ 11 callers
Function
provider_for_model
Return the provider crewAI runs ``model`` on, or ``None`` if it is unknown. A ``provider/model`` string names its provider by prefix, with crewAI
lib/cli/src/crewai_cli/constants.py:201
↓ 11 callers
Function
read_file
(path)
lib/crewai-tools/tests/tools/test_file_writer_tool.py:35
↓ 11 callers
Function
register_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:265
↓ 11 callers
Method
register_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
↓ 11 callers
Function
repeated_tool_call_limit_reached
Whether the streak tracked by :func:`check_repeated_tool_call` hit the limit.
lib/crewai/src/crewai/utilities/agent_utils.py:2097
↓ 11 callers
Function
resolve_agent_project_entrypoint
Resolve one project-local Python, JSON, or YAML standalone agent. An explicit ``[tool.crewai].definition`` takes precedence. Otherwise load `
lib/crewai-core/src/crewai_core/project.py:160
↓ 11 callers
Function
run_app_ends
The run app, opened once per FAILURES entry: that run fails with it, or completes for None. Returns what happened, in order.
lib/cli/tests/test_run_usage.py:1342
↓ 11 callers
Method
search
( self, query: list[str], limit: int = 5, metadata_filter: dict[str, Any] | No
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:117
↓ 11 callers
Method
set
(self)
lib/cli/tests/test_trace_consent_session.py:137
↓ 11 callers
Method
shutdown
(self)
lib/crewai/tests/telemetry/test_tracer_isolation.py:31
↓ 11 callers
Method
task_execution
Generate a standard prompt for task execution. Returns: A dictionary containing the constructed prompt(s).
lib/crewai/src/crewai/utilities/prompts.py:93
↓ 11 callers
Function
validate_video
Validate a video file against constraints. Args: file: The video file to validate. constraints: Video constraints to validate aga
lib/crewai-files/src/crewai_files/processing/validators.py:388
↓ 10 callers
Function
_agent
(llm: BaseLLM)
lib/crewai/tests/utilities/test_converter.py:1070
↓ 10 callers
Function
_assert_next_steps
(output: str, folder_name: str, key_line: str | None)
lib/cli/tests/test_create_flow.py:176
↓ 10 callers
Function
_assert_same_record
(actual: MemoryRecord | None, expected: MemoryRecord)
lib/crewai/tests/memory/test_storage_backend_contract.py:72
↓ 10 callers
Function
_create
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch, fmt: str)
lib/cli/tests/test_agent_tools.py:21
↓ 10 callers
Function
_create_analyst_crew
Create a simple analyst crew for file analysis.
lib/crewai/tests/test_flow_multimodal.py:80
↓ 10 callers
Function
_create_batch_slice
Create a batch slice from prepared documents. Args: prepared: PreparedDocuments containing ids, texts, and metadatas. start_index
lib/crewai/src/crewai/rag/chromadb/utils.py:112
↓ 10 callers
Function
_distill_llm
(*responses: Any)
lib/crewai/tests/test_async_human_feedback.py:1494
↓ 10 callers
Method
_extract_finish_reason_and_response_id
LiteLLM responses/chunks share the choices-shape with OpenAI/Azure; delegate to the shared extractor.
lib/crewai/src/crewai/llm.py:2354
↓ 10 callers
Function
_find_checkpoint
Find the CheckpointConfig for an event source. Walks known relationships: Task -> Agent -> Crew. Flow and Agent carry their own checkpoint fi
lib/crewai/src/crewai/state/checkpoint_listener.py:88
↓ 10 callers
Method
_make_manager
(self, *, ephemeral: bool)
lib/crewai/tests/tracing/test_tracing.py:1588
↓ 10 callers
Function
_now
()
lib/cli/tests/experimental/test_eval_crew.py:146
↓ 10 callers
Method
_prepare_tool_result_for_context
Replace an oversized successful result with a deferred-file reference.
lib/crewai/src/crewai/agents/agent_executor.py:312
↓ 10 callers
Method
_reasoning_effort_key
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:2158
↓ 10 callers
Function
_record_key_prompts
Answer API-key prompts in order and record each prompt's text and options.
lib/cli/tests/test_create_crew.py:1615
↓ 10 callers
Function
_resolve_checkpoint
( location: str, checkpoint_id: str | None )
lib/cli/src/crewai_cli/checkpoint_cli.py:447
↓ 10 callers
Method
_resolve_native
Resolve an ``MCPServerConfig`` into tools. Returns ``(tools, clients)`` where *clients* is always empty for native tools (clients are
lib/crewai/src/crewai/mcp/tool_resolver.py:335
↓ 10 callers
Method
_run
( self, query: str, filter_by: str | None = None, filter_value: Any | None = N
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:864
↓ 10 callers
Method
_run
(self, question: str)
lib/crewai-tools/tests/base_tool_test.py:46
↓ 10 callers
Function
_safe_extractall
Path-traversal-safe extraction for Python versions without tar filters. Only regular files and directories are extracted. Symlink and hardlink
lib/cli/src/crewai_cli/skills/main.py:541
↓ 10 callers
Function
_sanitize_collection_name
Sanitize a collection name to meet ChromaDB requirements. Requirements: 1. 3-63 characters long 2. Starts and ends with alphanumeric char
lib/crewai/src/crewai/rag/chromadb/utils.py:309
↓ 10 callers
Function
_send
( messages: list[LLMMessage], monkeypatch: pytest.MonkeyPatch )
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:168
↓ 10 callers
Function
_serialize_llm_for_context
(llm: Any)
lib/crewai/src/crewai/flow/human_feedback.py:114
↓ 10 callers
Method
_show_version_update_message_if_needed
Show version update message if a newer version is available. Only displays when verbose mode is enabled and not running in CI/CD.
lib/crewai/src/crewai/events/utils/console_formatter.py:61
↓ 10 callers
Function
_skill_row
( handle: str, *, description: str | None = "A skill.", latest_version: str | None = "1.0.0",
lib/cli/tests/skills/test_main.py:340
↓ 10 callers
Function
_streaming_formatter
(file: io.StringIO, **console_kwargs: Any)
lib/crewai/tests/utilities/test_console_formatter_pause_resume.py:142
↓ 10 callers
Function
_structured_text_response
A response whose single text block holds the structured JSON payload.
lib/crewai/tests/llms/anthropic/test_anthropic.py:2007
↓ 10 callers
Function
_text
Non-repeating text of about ``size`` bytes: a cut copy cannot compare equal.
lib/crewai/tests/telemetry/test_span_attribute_bound.py:37
↓ 10 callers
Method
_validate_structured_output
Validate and parse structured output. Args: response: Raw response string response_format: Optional Pydantic model fo
lib/crewai/src/crewai/llms/base_llm.py:1161
← previous
next →
401–500 of 19,482, ranked by callers