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
tool_usage_error
Records when a tool usage results in an error. Args: llm: The language model being used when the error occurred. agen
lib/crewai/src/crewai/telemetry/telemetry.py:664
↓ 3 callers
Function
total_row
The sheet row of the last row when it looks like a total of the rows above: a total label, or a numeric column whose last value is the sum of the
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:145
↓ 3 callers
Method
train
Trains the crew for a given number of iterations.
lib/crewai/src/crewai/crew.py:954
↓ 3 callers
Function
unregister_after_llm_call_hook
Unregister a specific global after_llm_call hook. Args: hook: The hook function to remove Returns: True if the hook was foun
lib/crewai/src/crewai/hooks/llm_hooks.py:339
↓ 3 callers
Function
unregister_before_llm_call_hook
Unregister a specific global before_llm_call hook. Args: hook: The hook function to remove Returns: True if the hook was fou
lib/crewai/src/crewai/hooks/llm_hooks.py:313
↓ 3 callers
Method
update_crew_from_zip
Update an existing crew deployment from a local project ZIP archive. PROJECT_ID as for `create_crew_from_zip`; FORCE redeploys even while a
lib/cli/src/crewai_cli/plus_api.py:195
↓ 3 callers
Function
uses_openai_responses_api
Return whether provider/API should use OpenAI Responses file support.
lib/crewai-files/src/crewai_files/processing/constraints.py:349
↓ 3 callers
Function
validate_directory_name
Validate that a directory name matches the skill name. Args: skill_dir: Path to the skill directory. skill_name: The declared ski
lib/crewai/src/crewai/skills/validation.py:43
↓ 3 callers
Method
validate_expression
Validate a full CEL expression without evaluating it.
lib/crewai/src/crewai/flow/expressions.py:249
↓ 3 callers
Function
validate_pdf
Validate a PDF file against constraints. Args: file: The PDF file to validate. constraints: PDF constraints to validate against.
lib/crewai-files/src/crewai_files/processing/validators.py:288
↓ 3 callers
Function
version
Show the installed version of crewai.
lib/cli/src/crewai_cli/cli.py:370
↓ 3 callers
Function
versions_match
Return True when two skill versions refer to the same version. Versions arrive as ``1.2.0`` or ``v1.2.0`` depending on whether they came from
lib/crewai/src/crewai/skills/validation.py:18
↓ 3 callers
Function
wait_for_consent
(app, pilot)
lib/cli/tests/test_trace_consent_session.py:30
↓ 3 callers
Method
with_disclosure_level
Create a new Skill at a different disclosure level. Args: level: The new disclosure level. instructions: Optional ins
lib/crewai/src/crewai/skills/models.py:151
↓ 3 callers
Function
write_eval_config
Write the criteria this run was graded on, for the project to edit. Only when the project has none: after that the file is theirs, and the one
lib/cli/src/crewai_cli/experimental/eval_crew.py:556
↓ 2 callers
Method
__del__
(self)
lib/crewai/src/crewai/rag/embeddings/providers/oracle/embedding_callable.py:115
↓ 2 callers
Method
__get__
Support the descriptor protocol for method binding. This allows the wrapped method to be properly bound to an instance when accessed
lib/crewai/src/crewai/flow/flow_wrappers.py:112
↓ 2 callers
Method
__init__
( self, chunk_size: int = 3000, chunk_overlap: int = 300, separators: list[str
lib/crewai-tools/src/crewai_tools/rag/chunkers/text_chunker.py:53
↓ 2 callers
Method
__init__
( self, chunk_size: int = 1200, chunk_overlap: int = 100, separators: list[str
lib/crewai-tools/src/crewai_tools/rag/chunkers/structured_chunker.py:5
↓ 2 callers
Method
__init__
(self, create=None, statuses=None)
lib/cli/tests/experimental/test_eval_crew.py:91
↓ 2 callers
Method
__init__
Create an MCPHTTPError. Args: status_code: HTTP status the server responded with. detail: Optional underlying error t
lib/crewai/src/crewai/mcp/exceptions.py:90
↓ 2 callers
Method
__init__
Initialize the CustomLLM with a predefined response. Args: response: The predefined response to return from call().
lib/crewai/tests/test_custom_llm.py:17
↓ 2 callers
Method
__init__
(self, llm, tools)
lib/crewai/tests/agents/test_lite_agent.py:275
↓ 2 callers
Method
__setitem__
(self, key: str, value: ClientAuthScheme | None)
lib/crewai/src/crewai/a2a/auth/utils.py:57
↓ 2 callers
Function
_a_crew_whose_script_fails
The real `crewai run` on a classic crew whose `uv run run_crew` exits 3, or raises FAILURE.
lib/cli/tests/experimental/test_eval_crew.py:4340
↓ 2 callers
Function
_a_grade
(grade: Any)
lib/cli/src/crewai_cli/experimental/eval_crew.py:1689
↓ 2 callers
Method
_acall_responses
Async call to OpenAI Responses API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:989
↓ 2 callers
Function
_accepted
AMP's answer to a start: the evaluation it opened, or its refusal as a sentence.
lib/cli/src/crewai_cli/experimental/eval_crew.py:1473
↓ 2 callers
Function
_activate_tracing
(tracing: ExecutionTrace)
lib/crewai/src/crewai/execution.py:252
↓ 2 callers
Method
_add_property_ordering
Add propertyOrdering to JSON schema for Gemini 2.0 compatibility. Gemini 2.0 models require an explicit propertyOrdering list to define
lib/crewai/src/crewai/llms/providers/gemini/completion.py:1557
↓ 2 callers
Method
_add_skill_loader_tool
Add the internal loader used for request-scoped skill disclosure.
lib/crewai/src/crewai/agent/core.py:661
↓ 2 callers
Function
_adelegate_to_a2a
Async version of _delegate_to_a2a.
lib/crewai/src/crewai/a2a/wrapper.py:1607
↓ 2 callers
Method
_aexecute_core
Run the core execution logic of the task asynchronously.
lib/crewai/src/crewai/task.py:690
↓ 2 callers
Method
_aexecute_without_timeout
Execute a task without a timeout asynchronously. Args: task_prompt: The prompt to send to the agent. task: The task b
lib/crewai/src/crewai/agent/core.py:1271
↓ 2 callers
Method
_aexport_output
Async equivalent of ``_export_output`` — uses ``acall`` so the event loop is not blocked.
lib/crewai/src/crewai/task.py:1307
↓ 2 callers
Function
_afetch_agent_card_cached
Cached async implementation of AgentCard fetching.
lib/crewai/src/crewai/a2a/utils/agent_card.py:227
↓ 2 callers
Function
_afetch_agent_cards_concurrently
Fetch agent cards concurrently for multiple A2A agents using asyncio.
lib/crewai/src/crewai/a2a/wrapper.py:1438
↓ 2 callers
Function
_agent
()
lib/crewai/tests/tracing/test_trace_agent_prompt_output.py:30
↓ 2 callers
Method
_agent_and_task
(self, code: str)
lib/crewai/tests/tools/test_tool_failure.py:1314
↓ 2 callers
Function
_agent_messages
(inputs: str | None)
lib/cli/src/crewai_cli/run_agent.py:53
↓ 2 callers
Method
_ahandle_converse
Handle async non-streaming converse API call.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1320
↓ 2 callers
Method
_ahandle_human_feedback
Process human feedback asynchronously and refine answer. Args: formatted_answer: Initial agent result. Returns:
lib/crewai/src/crewai/agents/agent_executor.py:3570
↓ 2 callers
Method
_ahandle_non_streaming_response
Handle an async non-streaming response from the LLM. Args: params: Parameters for the completion call callbacks: Opti
lib/crewai/src/crewai/llm.py:1464
↓ 2 callers
Method
_ahandle_streaming_converse
Handle async streaming converse API call.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1602
↓ 2 callers
Method
_ahandle_streaming_responses
Handle async streaming Responses API call.
lib/crewai/src/crewai/llms/providers/openai/completion.py:1677
↓ 2 callers
Method
_ainject_files_from_inputs
Async inject files into the last user message.
lib/crewai/src/crewai/agents/agent_executor.py:3517
↓ 2 callers
Method
_ainvoke_loop
Invoke the agent loop asynchronously and return the result.
lib/crewai/src/crewai/core/providers/human_input.py:54
↓ 2 callers
Function
_aiter
(chunks: list[dict[str, Any]])
lib/crewai/tests/agents/test_empty_llm_response_retry.py:312
↓ 2 callers
Function
_aliases
The router's provider aliases (``crewai.llm.PROVIDER_ALIASES``): every prefix ``LLM`` strips from a model string it routes natively, to the pr
lib/crewai/src/crewai/llm_overlay.py:235
↓ 2 callers
Function
_allowlist_blocked_by_lock
Whether *hostname* is listed but the forced-safe lock overrides it.
lib/crewai-tools/src/crewai_tools/security/safe_path.py:269
↓ 2 callers
Function
_an_evaluation_is_waiting
The evaluation this run was started for, if there is one. In this process the holder itself; in a child process the environment says an evalu
lib/cli/src/crewai_cli/crew_run_tui.py:467
↓ 2 callers
Method
_answer
(self)
lib/crewai-core/tests/test_plus_api_proxy.py:58
↓ 2 callers
Method
_answer
(self, file: str, answer: Callable[[Workbook, str], str])
lib/crewai/src/crewai/tools/agent_tools/spreadsheet_tools.py:105
↓ 2 callers
Function
_arrow_select_one
(labels: list[str])
lib/cli/src/crewai_cli/tui_picker.py:177
↓ 2 callers
Function
_as_float
(value: Any)
lib/cli/src/crewai_cli/model_catalog.py:576
↓ 2 callers
Function
_as_structured
(response: Any, model_type: type[_StructuredT])
lib/crewai/src/crewai/flow/human_feedback.py:284
↓ 2 callers
Function
_asana_crew
()
lib/crewai/tests/agents/test_agent.py:2817
↓ 2 callers
Function
_ask_and_save
(name: str, env_file: Path, endpoints: list[str])
lib/cli/src/crewai_cli/api_keys.py:263
↓ 2 callers
Method
_ask_llm_for_field
Query the LLM for a specific field value based on its description. Args: field_name: The name of the field to extract.
lib/crewai/src/crewai/utilities/training_converter.py:59
↓ 2 callers
Function
_assert_tool_call_completed_once
(llm, mock_response)
lib/crewai/tests/llms/anthropic/test_anthropic.py:1807
↓ 2 callers
Function
_assistant_instructions
AGENTS.md with its evaluation blocks kept (markers dropped) or removed.
lib/cli/src/crewai_cli/utils.py:136
↓ 2 callers
Function
_at_a_terminal
()
lib/cli/src/crewai_cli/experimental/eval_crew.py:1107
↓ 2 callers
Method
_attach_usage_aggregation_listener
Wire an ``LLMCallCompletedEvent`` listener for the duration of one ``kickoff_async`` call.
lib/crewai/src/crewai/flow/runtime/__init__.py:940
↓ 2 callers
Method
_background_encode_batch
Run the encoding pipeline in a background thread with event emission. Both started and completed events are emitted here (in the background
lib/crewai/src/crewai/memory/unified_memory.py:586
↓ 2 callers
Method
_begin_checkpoint
Emit the start event and return the invariant context for a checkpoint.
lib/crewai/src/crewai/state/runtime.py:235
↓ 2 callers
Function
_begin_evaluation
A fresh `eval_id` for the evaluation starting now: a uuid4, never derived from the run, the project or the account.
lib/cli/src/crewai_cli/experimental/eval_crew.py:116
↓ 2 callers
Method
_begin_trace_execution
( self, execution_uuid: str | None = None )
lib/crewai/src/crewai/flow/runtime/__init__.py:514
↓ 2 callers
Function
_blocked_ip_error
(ip_str: str)
lib/crewai-tools/src/crewai_tools/security/ssrf_adapter.py:52
↓ 2 callers
Function
_build
``LLM(model=..., **settings)``, without a setting the class refuses. A name the target has can still reject the value (LiteLLM's ``logprobs`` is
lib/crewai/src/crewai/utilities/llm_utils.py:421
↓ 2 callers
Method
_build_and_validate_headers
(self, headers: dict[str, Any])
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:153
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:299
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:327
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:472
↓ 2 callers
Method
_build_content
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:290
↓ 2 callers
Method
_build_context_for_todo
Build an isolated execution context for a single todo. Passes only final results from completed dependencies — never execution traces
lib/crewai/src/crewai/agents/agent_executor.py:837
↓ 2 callers
Function
_build_description
Build the LLM-facing description, including the current per-call cap. Args: max_seconds: The per-call cap advertised to the model. R
lib/crewai-tools/src/crewai_tools/tools/wait_tool/wait_tool.py:50
↓ 2 callers
Method
_build_execution_prompt
Build the execution prompt, stop words, and RPM limit function. Args: raw_tools: The raw tools available to the agent. R
lib/crewai/src/crewai/agent/core.py:1294
↓ 2 callers
Method
_build_file_context
Build context by reading file once. Args: file: The file to build context for. Returns: FileContext with cac
lib/crewai-files/src/crewai_files/resolution/resolver.py:91
↓ 2 callers
Method
_build_fingerprint_config
Build fingerprint metadata as a config dict for tool invocation. Returns the fingerprint data in a config dict rather than injecting it
lib/crewai/src/crewai/tools/tool_usage.py:1089
↓ 2 callers
Function
_build_like
Build ``model`` with the ``carried`` settings its class accepts. ``base_class`` is the declared llm's class, ``None`` when it is not known; `
lib/crewai/src/crewai/utilities/llm_utils.py:312
↓ 2 callers
Function
_build_model_from_schema
Inner builder shared by the public entry point and recursive nested-object creation. Preprocessing via ``jsonref.replace_refs`` and the sanitizat
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:907
↓ 2 callers
Method
_build_name_cache
(self)
lib/crewai-tools/src/crewai_tools/adapters/tool_collection.py:31
↓ 2 callers
Method
_build_output_from_result
Build a LiteAgentOutput from an executor result dict. Shared logic used by both sync and async execution paths. Args: re
lib/crewai/src/crewai/agent/core.py:2142
↓ 2 callers
Function
_build_path
Build a timestamped checkpoint file path under a branch subdirectory. Filename format: ``{ts}_{uuid8}_p-{parent_id}.json`` Args: dir
lib/crewai/src/crewai/state/provider/json_provider.py:147
↓ 2 callers
Function
_build_persistence_definition
(value: Any)
lib/crewai/src/crewai/flow/dsl/_utils.py:266
↓ 2 callers
Function
_build_response_with_text_and_tool_calls
Mimic a litellm ModelResponse that contains both content and tool_calls.
lib/crewai/tests/test_llm.py:1472
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:338
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:296
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:324
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:465
↓ 2 callers
Function
_cache_dir
()
lib/cli/src/crewai_cli/model_catalog.py:594
↓ 2 callers
Function
_cache_key
Cache key for a provider's resolved model list. Keyed by the exact API key (via a short, non-reversible digest — never the key itself), so sw
lib/cli/src/crewai_cli/model_catalog.py:617
↓ 2 callers
Method
_call_handlers
Call provided synchronous handlers. Args: source: The emitting object event: The event instance handlers:
lib/crewai/src/crewai/events/event_bus.py:401
↓ 2 callers
Function
_call_llm_retrying_empty
Make an LLM call, repeating it once if the answer came back empty. An answer is empty when it is falsy (``None``, ``""``, no tool calls) or t
lib/crewai/src/crewai/utilities/agent_utils.py:529
↓ 2 callers
Method
_call_llm_with_prompt
Calls the LLM with the planning prompt. Args: prompt: The prompt to send to the LLM. plan_type: The type of plan bein
lib/crewai/src/crewai/utilities/reasoning_handler.py:452
↓ 2 callers
Method
_call_responses
Call OpenAI Responses API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:958
↓ 2 callers
Method
_call_tool_impl
Internal implementation of call_tool.
lib/crewai/src/crewai/mcp/client.py:613
↓ 2 callers
Function
_can_ask
(project_dir: Path, env_file: Path)
lib/cli/src/crewai_cli/api_keys.py:250
↓ 2 callers
Method
_capture_execution_uuid
Remember which execution this app is watching. Read as the run announces itself, from the run's own context, and kept: the uuid is go
lib/cli/src/crewai_cli/crew_run_tui.py:1394
↓ 2 callers
Function
_catalog_cache_file
()
lib/cli/src/crewai_cli/model_catalog.py:598
← previous
next →
2,001–2,100 of 19,264, ranked by callers