Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,735 in github.com/crewAIInc/crewAI
⨍
Functions
19,735
◇
Types & classes
3,466
↳
Endpoints
994
↓ 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:1613
↓ 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:3518
↓ 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:478
↓ 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
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:1473
↓ 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:2819
↓ 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
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:945
↓ 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:116
↓ 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:299
↓ 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_content
(self)
lib/cli/src/crewai_cli/crew_run_tui.py:301
↓ 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:1306
↓ 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:2247
↓ 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:349
↓ 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:327
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:465
↓ 2 callers
Function
_cache_control_count
(value: Any)
lib/crewai/tests/llms/test_multimodal.py:201
↓ 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:1405
↓ 2 callers
Function
_catalog_cache_file
()
lib/cli/src/crewai_cli/model_catalog.py:598
↓ 2 callers
Function
_cel_environment
()
lib/crewai/src/crewai/flow/expressions.py:49
↓ 2 callers
Function
_cel_function_registry
()
lib/crewai/src/crewai/flow/expressions.py:38
↓ 2 callers
Function
_chain_deploy
()
lib/cli/src/crewai_cli/run_crew.py:975
↓ 2 callers
Method
_check_execution_error
Check if an execution error should be re-raised immediately. Args: e: The exception that occurred. task: The task bei
lib/crewai/src/crewai/agent/core.py:914
↓ 2 callers
Method
_check_lockfile
(self)
lib/cli/src/crewai_cli/deploy/validate.py:547
↓ 2 callers
Method
_check_tool_repeated_usage
( self, calling: ToolCalling | InstructorToolCalling )
lib/crewai/src/crewai/tools/tool_usage.py:779
↓ 2 callers
Method
_check_version_vs_lockfile
Warn when the lockfile pins a crewai release older than 1.13.0, which is where ``_load_response_format`` was introduced.
lib/cli/src/crewai_cli/deploy/validate.py:1182
↓ 2 callers
Function
_checkpoint_chain_flow
(tmp_path)
lib/crewai/tests/test_flow_from_definition.py:4627
↓ 2 callers
Function
_checkpoint_ids
(location: Path)
lib/cli/tests/test_checkpoint_prune.py:37
↓ 2 callers
Function
_chunk
(content: str)
lib/crewai/tests/test_llm_litellm_streaming_errors.py:83
↓ 2 callers
Function
_chunk
(content: str | None)
lib/crewai/tests/agents/test_empty_llm_response_retry.py:286
↓ 2 callers
Method
_chunk_doc
(self, doc: DoclingDocument)
lib/crewai/src/crewai/knowledge/source/crew_docling_source.py:154
↓ 2 callers
Function
_chunks_with_usage_tail
Three-chunk stream mirroring LiteLLM's include_usage behavior: two content chunks where the second carries finish_reason="stop", then a final
lib/crewai/tests/test_llm_streaming_finish_reason.py:36
↓ 2 callers
Function
_classify_gemini_error
Classify a Gemini exception as transient or permanent upload error. Checks Gemini-specific error message patterns first, then falls back to g
lib/crewai-files/src/crewai_files/uploaders/gemini.py:48
↓ 2 callers
Function
_classify_s3_error
Classify an S3 exception as transient or permanent upload error. Args: e: The exception to classify. filename: The filename for e
lib/crewai-files/src/crewai_files/uploaders/bedrock.py:28
↓ 2 callers
Method
_cleanup_batch_data
Clean up batch data after successful finalization to free memory
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:474
↓ 2 callers
Method
_cleanup_mcp_clients
Cleanup MCP client connections after task execution.
lib/crewai/src/crewai/agent/core.py:1525
↓ 2 callers
Method
_clear_context
(self)
lib/crewai/src/crewai/telemetry/tracing/session.py:279
↓ 2 callers
Method
_clear_current_method
Drop the header's active method once it ends. Caller holds the lock. Falls back to another still-active step (methods can overlap) so the
lib/cli/src/crewai_cli/crew_run_tui.py:987
↓ 2 callers
Method
_close_transport_context
Exit the streamable-HTTP context if one is pending.
lib/crewai/src/crewai/mcp/transports/http.py:72
↓ 2 callers
Function
_coerce_trigger
(trigger: FlowTrigger)
lib/crewai/src/crewai/flow/dsl/_conditions.py:56
↓ 2 callers
Method
_collapse_to_outcome
( self, feedback: str, outcomes: Sequence[str], llm: str | Bas
lib/crewai/src/crewai/flow/conversational_mixin.py:289
↓ 2 callers
Method
_collect_root_identifiers
Collect CEL root identifiers, excluding receiver macro local variables.
lib/crewai/src/crewai/flow/expressions.py:469
↓ 2 callers
Function
_colorize_json_line
Append a single line with soft JSON syntax highlighting.
lib/cli/src/crewai_cli/crew_run_tui.py:161
↓ 2 callers
Function
_combine_knowledge_context
Combine agent and crew knowledge contexts into a single string. Args: agent: The agent with knowledge contexts. Returns: Com
lib/crewai/src/crewai/agent/utils.py:210
↓ 2 callers
Function
_common_strict_pipeline
Shared strict sanitization: inline refs, close objects, require all properties.
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:606
↓ 2 callers
Method
_compact_async
Fire-and-forget: compact the table in a daemon background thread.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:238
↓ 2 callers
Method
_compile_cel
( expression: str, *, source: str | None = None, environment: Any | None = Non
lib/crewai/src/crewai/flow/expressions.py:436
↓ 2 callers
Method
_complete_feedback
Mark the final reviewed answer as the completed executor state.
lib/crewai/src/crewai/agents/agent_executor.py:3590
↓ 2 callers
Method
_complete_kickoff
( self, output: LiteAgentOutput, messages: str | list[LLMMessage], agent_info:
lib/crewai/src/crewai/agent/core.py:2180
↓ 2 callers
Function
_completed_event
(mock_emit)
lib/crewai/tests/test_llm_streaming_finish_reason.py:25
↓ 2 callers
Function
_completion
(message: dict)
lib/crewai/tests/llms/openai_compatible/test_openai_compatible.py:474
↓ 2 callers
Method
_completion_usage
Usage from a raw LiteLLM completion, read from ``model_extra``. Avoids ``isinstance(..., ModelResponseBase)``: that name stays None u
lib/crewai/src/crewai/llm.py:2239
↓ 2 callers
Function
_compute_backoff_delay
Compute exponential backoff delay with jitter. Args: attempt: The current attempt number (0-indexed). Returns: Delay in seco
lib/crewai-files/src/crewai_files/uploaders/gemini.py:34
↓ 2 callers
Method
_condition_met
( self, condition: FlowDefinitionCondition, trigger_method: FlowMethodName, su
lib/crewai/src/crewai/flow/runtime/__init__.py:3337
↓ 2 callers
Function
_condition_tree
( condition_type: FlowConditionType, triggers: Sequence[FlowTrigger], )
lib/crewai/src/crewai/flow/dsl/_conditions.py:65
↓ 2 callers
Method
_configure_format_from_task
Determine output format and schema from task requirements. This is a helper method that examines the task's output requirements and r
lib/crewai/src/crewai/agents/agent_adapters/base_converter_adapter.py:132
↓ 2 callers
Method
_configured_api_key
The key from an explicit value, the provider's env var, or its default. None when a required key is not set: like the native providers, it is
lib/crewai/src/crewai/llms/providers/openai_compatible/completion.py:193
← previous
next →
2,101–2,200 of 19,735, ranked by callers