Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
13,938 in github.com/crewAIInc/crewAI
⨍
Functions
13,938
◇
Types & classes
2,826
↳
Endpoints
792
↓ 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:275
↓ 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
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
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
Method
wait_for_batch_initialization
Wait for batch to be initialized. Args: timeout: Maximum time to wait in seconds (default: 2.0) Returns: Tru
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:493
↓ 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
↓ 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__
Initialize the CustomLLM with a predefined response. Args: response: The predefined response to return from call().
lib/crewai/tests/test_custom_llm.py:16
↓ 2 callers
Method
__init__
(self, llm, tools)
lib/crewai/tests/agents/test_lite_agent.py:274
↓ 2 callers
Method
__new__
(cls, *args: Any, **kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:53
↓ 2 callers
Method
_acall_responses
Async call to OpenAI Responses API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:718
↓ 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:1457
↓ 2 callers
Method
_add_skill_loader_tool
Add the internal loader used for request-scoped skill disclosure.
lib/crewai/src/crewai/agent/core.py:493
↓ 2 callers
Function
_adelegate_to_a2a
Async version of _delegate_to_a2a.
lib/crewai/src/crewai/a2a/wrapper.py:1603
↓ 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:1055
↓ 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:1209
↓ 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:1436
↓ 2 callers
Method
_agent_and_task
(self, code: str)
lib/crewai/tests/tools/test_tool_failure.py:1332
↓ 2 callers
Function
_agent_kwargs_from_definition
( defn: dict[str, Any], path: Path | str, *, agent_class: type[Any] | None = None, resolve
lib/crewai/src/crewai/project/json_loader.py:955
↓ 2 callers
Method
_ahandle_converse
Handle async non-streaming converse API call.
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1192
↓ 2 callers
Method
_ahandle_human_feedback
Process human feedback asynchronously and refine answer. Args: formatted_answer: Initial agent result. Returns:
lib/crewai/src/crewai/experimental/agent_executor.py:3230
↓ 2 callers
Method
_ainject_files_from_inputs
Async inject files into the last user message.
lib/crewai/src/crewai/experimental/agent_executor.py:3177
↓ 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
Method
_ainvoke_loop_react
Execute agent loop asynchronously using ReAct text-based pattern. Returns: Final answer from the agent.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1148
↓ 2 callers
Method
_ainvoke_step_callback
Invoke step callback (async context). Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/agents/crew_agent_executor.py:1475
↓ 2 callers
Function
_aiter
()
lib/crewai/tests/test_llm_streaming_finish_reason.py:82
↓ 2 callers
Method
_append_text_tool_calling_fallback_message
Add text tool-calling instructions after native tools are rejected.
lib/crewai/src/crewai/agents/crew_agent_executor.py:470
↓ 2 callers
Function
_arrow_select_one
(labels: list[str])
lib/cli/src/crewai_cli/tui_picker.py:126
↓ 2 callers
Function
_as_float
(value: Any)
lib/cli/src/crewai_cli/model_catalog.py:576
↓ 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
_asummarize_chunks
Summarize multiple message chunks concurrently using asyncio. Args: chunks: List of message chunks to summarize. llm: LLM instanc
lib/crewai/src/crewai/utilities/agent_utils.py:967
↓ 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:865
↓ 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:581
↓ 2 callers
Function
_bad_request
(message: str, param: str = "reasoning_effort")
lib/crewai/tests/llms/openai/test_tools_reasoning_effort_retry.py:50
↓ 2 callers
Method
_begin_checkpoint
Emit the start event and return the invariant context for a checkpoint.
lib/crewai/src/crewai/state/runtime.py:229
↓ 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:263
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:273
↓ 2 callers
Method
_build_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:307
↓ 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/experimental/agent_executor.py:610
↓ 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:1078
↓ 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:1073
↓ 2 callers
Function
_build_long_conversation
Build a multi-turn conversation that produces multiple chunks at max_tokens=200. Each non-system message is ~100-140 estimated tokens (400-560 ch
lib/crewai/tests/utilities/test_agent_utils.py:845
↓ 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:905
↓ 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:1771
↓ 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:265
↓ 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:1163
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:313
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:260
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:270
↓ 2 callers
Method
_build_sync_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:300
↓ 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
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:446
↓ 2 callers
Method
_call_responses
Call OpenAI Responses API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:687
↓ 2 callers
Function
_catalog_cache_file
()
lib/cli/src/crewai_cli/model_catalog.py:598
↓ 2 callers
Function
_chain_deploy
()
lib/cli/src/crewai_cli/run_crew.py:496
↓ 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:721
↓ 2 callers
Method
_check_lockfile
(self)
lib/cli/src/crewai_cli/deploy/validate.py:394
↓ 2 callers
Method
_check_pyproject
(self)
lib/cli/src/crewai_cli/deploy/validate.py:347
↓ 2 callers
Method
_check_tool_repeated_usage
( self, calling: ToolCalling | InstructorToolCalling )
lib/crewai/src/crewai/tools/tool_usage.py:767
↓ 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:914
↓ 2 callers
Function
_checkpoint_chain_flow
(tmp_path)
lib/crewai/tests/test_flow_from_definition.py:3995
↓ 2 callers
Method
_chunk_doc
(self, doc: DoclingDocument)
lib/crewai/src/crewai/knowledge/source/crew_docling_source.py:154
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/excel_knowledge_source.py:176
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/string_knowledge_source.py:36
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/csv_knowledge_source.py:46
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/text_file_knowledge_source.py:38
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/pdf_knowledge_source.py:58
↓ 2 callers
Method
_chunk_text
Utility method to split text into chunks.
lib/crewai/src/crewai/knowledge/source/json_knowledge_source.py:58
↓ 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:464
↓ 2 callers
Method
_cleanup_mcp_clients
Cleanup MCP client connections after task execution.
lib/crewai/src/crewai/agent/core.py:1247
↓ 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:733
↓ 2 callers
Function
_clear_lines
(n: int)
lib/cli/src/crewai_cli/tui_picker.py:71
↓ 2 callers
Method
_coerce_response_to_pydantic
Validate an LLM response into the configured Pydantic model. Pure post-processing — performs no I/O. Shared by ``to_pydantic`` and ``
lib/crewai/src/crewai/utilities/converter.py:51
↓ 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/experimental/conversational_mixin.py:142
↓ 2 callers
Method
_collect_root_identifiers
Collect CEL root identifiers, excluding receiver macro local variables.
lib/crewai/src/crewai/flow/expressions.py:402
↓ 2 callers
Function
_colorize_json_line
Append a single line with soft JSON syntax highlighting.
lib/cli/src/crewai_cli/crew_run_tui.py:146
↓ 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:201
↓ 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:604
↓ 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:213
↓ 2 callers
Method
_compile_cel
( expression: str, *, source: str | None = None, environment: Any | None = Non
lib/crewai/src/crewai/flow/expressions.py:367
↓ 2 callers
Method
_complete_feedback
Mark the final reviewed answer as the completed executor state.
lib/crewai/src/crewai/experimental/agent_executor.py:3249
↓ 2 callers
Function
_completed_event
(mock_emit)
lib/crewai/tests/test_llm_streaming_finish_reason.py:25
↓ 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:3158
↓ 2 callers
Function
_condition_tree
( condition_type: FlowConditionType, triggers: Sequence[FlowTrigger], )
lib/crewai/src/crewai/flow/dsl/_conditions.py:65
← previous
next →
1,301–1,400 of 13,938, ranked by callers