Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
20,757 in github.com/crewAIInc/crewAI
⨍
Functions
20,757
◇
Types & classes
3,596
↳
Endpoints
1,012
↓ 3 callers
Method
task_failed
Records that a task execution failed and closes its span with ERROR. Failures were previously routed through ``task_ended``, which closes eve
lib/crewai/src/crewai/telemetry/telemetry.py:579
↓ 3 callers
Function
tickets_xlsx
(note: str = "")
lib/crewai/tests/agents/test_agent_spreadsheets.py:57
↓ 3 callers
Method
to_json
Convert text to json. Args: current_attempt: The current attempt number for conversion retries. Returns: A J
lib/crewai/src/crewai/utilities/converter.py:155
↓ 3 callers
Method
to_structured_tool
Convert this tool to a CrewStructuredTool instance.
lib/crewai/src/crewai/tools/base_tool.py:440
↓ 3 callers
Function
tool_result
(messages: list[dict[str, Any]])
lib/crewai/tests/agents/test_agent_spreadsheets.py:160
↓ 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:958
↓ 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
Function
untrusted_amp_stop
Why the crew must not run for an evaluation: its trace would go to an AMP this command does not trust — the one the run traces to, read after
lib/cli/src/crewai_cli/experimental/eval_crew.py:1069
↓ 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:363
↓ 3 callers
Function
validate_agent_definition
Check a JSON/JSONC or YAML Agent without executing project Python. Check fields, Python-reference syntax and tool declarations without importing
lib/crewai/src/crewai/project/json_loader.py:253
↓ 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:300
↓ 3 callers
Function
version
Show the installed version of crewai.
lib/cli/src/crewai_cli/cli.py:372
↓ 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:571
↓ 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:93
↓ 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, **kwargs)
lib/crewai/tests/agents/test_conversation.py:253
↓ 2 callers
Method
__init__
(self, llm, tools)
lib/crewai/tests/agents/test_lite_agent.py:275
↓ 2 callers
Method
__new__
(cls)
lib/crewai-core/src/crewai_core/telemetry.py:278
↓ 2 callers
Method
__setitem__
(self, key: str, value: ClientAuthScheme | None)
lib/crewai/src/crewai/a2a/auth/utils.py:57
↓ 2 callers
Function
_a2a_agent
()
lib/crewai/tests/test_artifacts.py:814
↓ 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:4919
↓ 2 callers
Function
_a_grade
(grade: Any)
lib/cli/src/crewai_cli/experimental/eval_crew.py:1844
↓ 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:1627
↓ 2 callers
Function
_activate_tracing
(tracing: ExecutionTrace)
lib/crewai/src/crewai/execution.py:256
↓ 2 callers
Method
_add_package
(self, tool_details: dict[str, Any])
lib/cli/src/crewai_cli/tools/main.py:270
↓ 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:1570
↓ 2 callers
Method
_add_skill_loader_tool
Add the internal loader used for request-scoped skill disclosure.
lib/crewai/src/crewai/agent/core.py:779
↓ 2 callers
Function
_adelegate_to_a2a
Async version of _delegate_to_a2a.
lib/crewai/src/crewai/a2a/wrapper.py:1643
↓ 2 callers
Method
_aexecute_core
Run the core execution logic of the task asynchronously.
lib/crewai/src/crewai/task.py:735
↓ 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:1395
↓ 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:1474
↓ 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:1352
↓ 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:3576
↓ 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:1634
↓ 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:3523
↓ 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
_amp_answer
(status, body)
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_tools.py:382
↓ 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:501
↓ 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
Method
_apply_guardrail_result
Apply a passing guardrail's result to the task output. Returns the output to keep and, when the structured fields need to be rebuilt,
lib/crewai/src/crewai/task.py:1487
↓ 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:287
↓ 2 callers
Function
_asana_crew
()
lib/crewai/tests/agents/test_agent.py:2823
↓ 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
_async_create
(chunks: list[MagicMock])
lib/crewai/tests/llms/openai/test_openai.py:2619
↓ 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:950
↓ 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
Function
_bedrock_image
Build an image whose content type is detected without libmagic.
lib/crewai-files/tests/test_resolver.py:242
↓ 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:124
↓ 2 callers
Method
_begin_trace_execution
( self, execution_uuid: str | None = None )
lib/crewai/src/crewai/flow/runtime/__init__.py:519
↓ 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:302
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:330
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:472
↓ 2 callers
Method
_build_client_config
Build the botocore config shared by the sync and async clients.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:358
↓ 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:842
↓ 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:1418
↓ 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:941
↓ 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:2369
↓ 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:267
↓ 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:370
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:299
← previous
next →
2,201–2,300 of 20,757, ranked by callers