Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,663 in github.com/crewAIInc/crewAI
⨍
Functions
19,663
◇
Types & classes
3,456
↳
Endpoints
994
↓ 8 callers
Method
login
(self)
lib/cli/src/crewai_cli/tools/main.py:228
↓ 8 callers
Function
normalize_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 callers
Function
open_image
Open image bytes with Pillow, refusing any format outside the allowlist. Args: content: Raw image bytes. filename: Name of the fi
lib/crewai-files/src/crewai_files/processing/images.py:24
↓ 8 callers
Function
outcome_of
(record, **thresholds)
lib/crewai/tests/test_jev_evaluation_runner.py:134
↓ 8 callers
Function
parse_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 callers
Method
prepare
(self)
lib/crewai/tests/telemetry/test_conversation_spans.py:154
↓ 8 callers
Function
project_config
(root: Path, definition: str | None = None)
lib/crewai-core/tests/test_agent_project_entrypoint.py:8
↓ 8 callers
Method
publish_tool
( self, handle: str, is_public: bool, version: str, description: str |
lib/crewai-core/src/crewai_core/plus_api.py:379
↓ 8 callers
Function
read_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:154
↓ 8 callers
Method
request_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:116
↓ 8 callers
Function
resolve_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:101
↓ 8 callers
Function
restore_tool
(data: dict[str, object])
lib/crewai/tests/tools/test_deserialization_guard.py:29
↓ 8 callers
Method
run_agent
(self)
lib/crewai/tests/agents/test_lite_agent.py:763
↓ 8 callers
Function
safe_tool_conversion
Safely extract and validate tool information. Combines extraction, validation, and logging for robust tool conversion. Args: tool: T
lib/crewai/src/crewai/llms/providers/utils/common.py:130
↓ 8 callers
Method
save
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:144
↓ 8 callers
Method
search
( self, query_embedding: list[float], scope_prefix: str | None = None, categor
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:395
↓ 8 callers
Method
set
Set a CLI configuration parameter.
lib/cli/src/crewai_cli/settings/main.py:77
↓ 8 callers
Function
set_execution_uuid
Bind an execution uuid for the current context. Use this from enterprise / hosts that already own the run id (e.g. Celery ``kickoff_id``). Ov
lib/crewai/src/crewai/execution.py:70
↓ 8 callers
Function
set_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 callers
Method
settle
Settle the active delivery once; adapters must validate feedback identity. completed is a whole-message adapter observation, not a speaker/wo
lib/crewai/src/crewai/experimental/flow_replies.py:368
↓ 8 callers
Function
should_enable_tracing
Determine if tracing should be enabled. This is the single source of truth for tracing enablement. Priority order: 1. Explicit override (
lib/crewai/src/crewai/events/listeners/tracing/utils.py:144
↓ 8 callers
Method
shutdown
(self)
lib/crewai-core/tests/test_runtime_env.py:38
↓ 8 callers
Function
strip_jsonc_comments
Strip JSONC comments and trailing commas while preserving string values.
lib/crewai/src/crewai/project/json_loader.py:193
↓ 8 callers
Function
strip_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:232
↓ 8 callers
Method
supports_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:2577
↓ 8 callers
Method
tools
Get all available agent tools
lib/crewai/src/crewai/tools/agent_tools/agent_tools.py:22
↓ 8 callers
Function
validate_crew_project
Validate JSON crew structure without kicking off the crew.
lib/crewai/src/crewai/project/json_loader.py:332
↓ 8 callers
Function
write_agent_data
(root, filename, **extra)
lib/crewai/tests/project/test_agent_project.py:122
↓ 8 callers
Function
write_temp_file
(content, suffix=".txt", encoding="utf-8")
lib/crewai-tools/tests/rag/test_text_loaders.py:14
↓ 7 callers
Method
__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 callers
Method
__new__
(cls, *args: Any, **kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:53
↓ 7 callers
Function
_a_project_recorded
A crew project whose files predate its last traced run, recorded MINUTES_AGO.
lib/cli/tests/experimental/test_eval_crew.py:3351
↓ 7 callers
Function
_agent
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_inject_date.py:60
↓ 7 callers
Method
_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 callers
Method
_build_route_catalog
( self, router_config: RouterConfig | None, )
lib/crewai/src/crewai/flow/conversational_mixin.py:1464
↓ 7 callers
Method
_build_scope_filter
Build a Qdrant Filter for scope prefix matching.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:245
↓ 7 callers
Function
_cache
(tmp_path: Path)
lib/crewai/tests/skills/test_registry.py:59
↓ 7 callers
Method
_call
(self, counts: dict[int, int], text: str, result: str = "x", **kw: Any)
lib/crewai/tests/tools/test_tool_failure.py:1945
↓ 7 callers
Function
_cell
(value: object, limit: int)
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:64
↓ 7 callers
Method
_check_pyproject
(self)
lib/cli/src/crewai_cli/deploy/validate.py:498
↓ 7 callers
Function
_convert
( use_async: bool, result: str, output_pydantic: type[BaseModel] | None, output_json: type[Bas
lib/crewai/tests/utilities/test_converter.py:1074
↓ 7 callers
Function
_counted
(n: int, noun: str)
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:81
↓ 7 callers
Method
_create_file
(self, directory, filename, content="test content")
lib/crewai-tools/tests/rag/test_directory_loader.py:17
↓ 7 callers
Function
_create_skill_dir
Create a skill directory containing a minimal SKILL.md.
lib/crewai/tests/events/test_skill_usage_events.py:23
↓ 7 callers
Function
_definition
(project: Path)
lib/cli/tests/test_agent_tools.py:30
↓ 7 callers
Function
_failed_events
(mock_emit: MagicMock)
lib/crewai/tests/test_llm_litellm_streaming_errors.py:75
↓ 7 callers
Method
_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:758
↓ 7 callers
Method
_format_messages
( self, messages: str | list[LLMMessage], *, file_api: str | None = None )
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:148
↓ 7 callers
Method
_get_client
Get the appropriate client - instance-specific or global.
lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py:113
↓ 7 callers
Function
_http_status_error
(status_code: int, detail: str = "refused")
lib/crewai/tests/mcp/test_mcp_exceptions.py:25
↓ 7 callers
Function
_http_status_error
(status_code: int)
lib/crewai/tests/mcp/test_http_transport_auth.py:19
↓ 7 callers
Function
_install_client
Install *client* the way a hosted runtime does.
lib/crewai/tests/skills/test_registry.py:74
↓ 7 callers
Function
_is_escape_hatch_enabled
True when ``ALLOW_UNSAFE_PATHS`` is set and ``FORCE_SAFE_PATHS`` is not.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:84
↓ 7 callers
Function
_is_sqlite
Check if a file is a SQLite database by reading its magic bytes.
lib/cli/src/crewai_cli/checkpoint_cli.py:96
↓ 7 callers
Method
_load_from_file
(self, content)
lib/crewai-tools/tests/rag/test_mdx_loader.py:18
↓ 7 callers
Method
_load_from_path
(self, path)
lib/crewai-tools/tests/rag/test_json_loader.py:25
↓ 7 callers
Method
_make_client_kwargs
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:302
↓ 7 callers
Method
_make_executor
Build an AgentExecutor carrying only the fields this test reads.
lib/crewai/tests/agents/test_agent.py:3073
↓ 7 callers
Function
_parse_checkpoint_json
Parse checkpoint JSON into metadata dict.
lib/cli/src/crewai_cli/checkpoint_cli.py:107
↓ 7 callers
Function
_pipe
(cells: list[str])
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:85
↓ 7 callers
Method
_poll_for_token
Poll the token endpoint until authentication completes or the code expires.
lib/crewai-core/src/crewai_core/auth/oauth2.py:136
↓ 7 callers
Method
_prepare_kickoff
Prepare common setup for kickoff execution. This method handles all the common preparation logic shared between kickoff() and kickoff
lib/crewai/src/crewai/agent/core.py:1713
↓ 7 callers
Method
_prepare_tools
( self, agent: BaseAgent, task: Task, tools: list[BaseTool] )
lib/crewai/src/crewai/crew.py:1677
↓ 7 callers
Method
_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 callers
Function
_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:1432
↓ 7 callers
Function
_repository_response
(status_code: int = 200)
lib/crewai/tests/agents/test_agent.py:2443
↓ 7 callers
Function
_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:75
↓ 7 callers
Function
_resolve_llm_instance
Resolve a collapse/learn LLM the same way agents resolve theirs. Explicit decorator values win. ``None`` follows ``create_llm``: ``MODEL`` /
lib/crewai/src/crewai/flow/human_feedback.py:264
↓ 7 callers
Function
_resolving
Resolve refs against a temp cwd and cache, with *api* as the registry.
lib/crewai/tests/skills/test_registry.py:82
↓ 7 callers
Method
_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 callers
Function
_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 callers
Method
_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 callers
Method
_scroll_all
Scroll all points matching a filter from a shard.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:257
↓ 7 callers
Method
_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:302
↓ 7 callers
Function
_tool_use_input
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:227
↓ 7 callers
Function
_tool_use_name
(block: _AnthropicToolUseBlock)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:223
↓ 7 callers
Function
_traced_crew
()
lib/crewai/tests/tracing/test_tracing.py:67
↓ 7 callers
Function
_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 callers
Method
_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 callers
Function
_without_placeholder
(api_key: str | None)
lib/crewai/src/crewai/llms/base_llm.py:93
↓ 7 callers
Method
_write_project
(self, root, tool_line='"custom:landmine"')
lib/crewai/tests/project/test_json_loader.py:584
↓ 7 callers
Method
activate
Bind this session; the caller retains ownership of its lifetime.
lib/crewai/src/crewai/telemetry/tracing/session.py:209
↓ 7 callers
Function
apply_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 callers
Function
build_pdf
Return the bytes of a one-page PDF containing *text*.
lib/crewai-tools/tests/rag/test_pdf_loader.py:18
↓ 7 callers
Method
call
( self, messages: str | list[LLMMessage], tools: list[dict[str, Any]] | None = None,
lib/crewai/tests/hooks/test_model_call_hook_reach.py:34
↓ 7 callers
Method
call
( self, messages, tools=None, callbacks=None, avai
lib/crewai/tests/agents/test_lite_agent.py:541
↓ 7 callers
Function
chat_flow
(llm: CompactionLLM, **config: Any)
lib/crewai/tests/test_flow_context_compaction.py:67
↓ 7 callers
Method
checkpoint
Write a JSON checkpoint file. Args: data: The serialized JSON string to persist. location: Base directory where check
lib/crewai/src/crewai/state/provider/json_provider.py:42
↓ 7 callers
Method
clear
Sync wrapper for aclear.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:476
↓ 7 callers
Method
close
(self)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:44
↓ 7 callers
Function
close_span_with_error
Set span status to ERROR and end it. Used for spans representing work that failed, so failures are distinguishable from successes downstream.
lib/crewai/src/crewai/telemetry/utils.py:126
↓ 7 callers
Function
common_span_attributes
Build the attributes every span carries, once per process. Cached because it reads the project's ``pyproject.toml``, and because a process ca
lib/crewai-core/src/crewai_core/telemetry.py:221
↓ 7 callers
Function
compute_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 callers
Method
configure
(self, enterprise_url: str)
lib/cli/src/crewai_cli/enterprise/main.py:21
↓ 7 callers
Function
configured_project_definition
Return a configured CrewAI definition path for a project type. ``[tool.crewai].type`` must match ``project_type`` and ``definition`` must be
lib/crewai-core/src/crewai_core/project.py:68
↓ 7 callers
Method
connect
(self, **kwargs)
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool.py:118
↓ 7 callers
Method
connect
Establish HTTP connection to MCP server. Returns: Self for method chaining. Raises: MCPConnectionError: If t
lib/crewai/src/crewai/mcp/transports/http.py:108
↓ 7 callers
Function
create_agent
Create an experimental standalone agent, using JSON by default.
lib/cli/src/crewai_cli/create_agent.py:13
↓ 7 callers
Method
create_client
Creates a ChromaDB client from configuration.
lib/crewai/src/crewai/rag/config/optional_imports/protocols.py:18
↓ 7 callers
Method
create_panel
Create a standardized panel with consistent styling.
lib/crewai/src/crewai/events/utils/console_formatter.py:52
← previous
next →
701–800 of 19,663, ranked by callers