Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crewAIInc/crewAI
/ functions
Functions
19,484 in github.com/crewAIInc/crewAI
⨍
Functions
19,484
◇
Types & classes
3,433
↳
Endpoints
991
↓ 2 callers
Method
get_jwks_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/workos.py:17
↓ 2 callers
Function
get_knowledge_config
Get knowledge configuration from agent. Args: agent: The agent instance. Returns: Dictionary of knowledge configuration.
lib/crewai/src/crewai/agent/utils.py:113
↓ 2 callers
Function
get_project_description
Return the project description from ``pyproject.toml``.
lib/crewai-core/src/crewai_core/project.py:290
↓ 2 callers
Function
get_rag_config
Get current RAG configuration. Returns: The current RAG configuration object.
lib/crewai/src/crewai/rag/config/utils.py:87
↓ 2 callers
Method
get_record
Return a single record by ID, or None if not found.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:385
↓ 2 callers
Function
get_scoped_hooks
Return the hooks registered in the current execution scope for a point. Used by seams that carry a pre-snapshotted hook list (e.g. the agent
lib/crewai/src/crewai/hooks/dispatch.py:187
↓ 2 callers
Function
get_task_files
Retrieve files for a task execution. Args: task_id: Unique identifier for the task. Returns: Dictionary of files or None if
lib/crewai/src/crewai/utilities/file_store.py:229
↓ 2 callers
Method
get_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/entra_id.py:16
↓ 2 callers
Method
get_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/auth0.py:14
↓ 2 callers
Method
get_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/keycloak.py:14
↓ 2 callers
Method
get_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/workos.py:14
↓ 2 callers
Method
get_trace
Retrieve a trace by agent and task ID. Args: agent_id: The agent's identifier. task_id: The task's identifier.
lib/crewai/src/crewai/experimental/evaluation/evaluation_listener.py:331
↓ 2 callers
Function
get_upload_cache
Get or create the default upload cache. Args: ttl: Default TTL in seconds. namespace: Cache namespace. cache_type: Backen
lib/crewai-files/src/crewai_files/cache/upload_cache.py:503
↓ 2 callers
Function
get_user_id
Stable, anonymized user identifier with caching.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:413
↓ 2 callers
Method
groupByIdenticalAction
(triggerIds)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:1510
↓ 2 callers
Function
handle_agent_action_core
Core logic for handling agent actions and tool results. Args: formatted_answer: The agent's action tool_result: The result of exe
lib/crewai/src/crewai/utilities/agent_utils.py:888
↓ 2 callers
Method
handle_async_request
Handle async request with interception. Args: request: The HTTP request to handle. Returns: The HTTP respons
lib/crewai/src/crewai/llms/hooks/transport.py:112
↓ 2 callers
Method
handle_crew_status
Handle crew completion/failure with panel display.
lib/crewai/src/crewai/events/utils/console_formatter.py:228
↓ 2 callers
Function
handle_empty_pop
Handle a pop attempt on an empty stack.
lib/crewai/src/crewai/events/event_context.py:194
↓ 2 callers
Function
handle_knowledge_retrieval
Handle knowledge retrieval for task execution. This function handles both agent-specific and crew-specific knowledge queries. Args:
lib/crewai/src/crewai/agent/utils.py:125
↓ 2 callers
Function
handle_mismatch
Handle a mismatched event pair.
lib/crewai/src/crewai/events/event_context.py:208
↓ 2 callers
Function
handle_output_parser_exception
Handle OutputParserError by updating messages and formatted_answer. Args: e: The OutputParserError that occurred messages: List o
lib/crewai/src/crewai/utilities/agent_utils.py:959
↓ 2 callers
Method
handle_request
Handle request with interception. Args: request: The HTTP request to handle. Returns: The HTTP response.
lib/crewai/src/crewai/llms/hooks/transport.py:76
↓ 2 callers
Method
handle_step_observed_low
Low reasoning effort: mark step complete and continue linearly. Skips the refine/goal-achieved pipeline but still gates on hard failu
lib/crewai/src/crewai/agents/agent_executor.py:938
↓ 2 callers
Method
handle_task_status
Show task completion/failure panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:305
↓ 2 callers
Method
handle_tool_failure_detected
Render a tool that ran but reported it did not succeed. The case that used to print as a green "Completed" panel.
lib/crewai/src/crewai/events/utils/console_formatter.py:512
↓ 2 callers
Method
handler
(signum: int, frame: Any)
lib/crewai/src/crewai/telemetry/telemetry.py:199
↓ 2 callers
Function
has_reached_max_iterations
Check if the maximum number of iterations has been reached. Args: iterations: Current number of iterations. max_iterations: Maxim
lib/crewai/src/crewai/utilities/agent_utils.py:374
↓ 2 callers
Method
has_reached_max_usage_count
Check if the tool has reached its maximum usage count.
lib/crewai/src/crewai/tools/structured_tool.py:449
↓ 2 callers
Method
has_reasoning
Check if there are reasoning summaries.
lib/crewai/src/crewai/llms/providers/openai/completion.py:337
↓ 2 callers
Method
has_uncommitted_changes
Check if the repository has uncommitted changes.
lib/cli/src/crewai_cli/git.py:106
↓ 2 callers
Method
heuristic_observation
Build an observation without an LLM call. Used when ``PlanningConfig.observe_steps`` is False or when ``reasoning_effort`` is ``"low"
lib/crewai/src/crewai/agents/planner_observer.py:88
↓ 2 callers
Method
human_feedback_span
Records human feedback feature usage. Args: event_type: Type of event - "requested" or "received". has_routing: Wheth
lib/crewai/src/crewai/telemetry/telemetry.py:1255
↓ 2 callers
Method
init
(self)
lib/crewai/tests/test_flow.py:992
↓ 2 callers
Method
initialize
Initialize a Git repository and create an initial commit if needed.
lib/cli/src/crewai_cli/git.py:74
↓ 2 callers
Method
initialize_file
Initialize the file with an empty dictionary and overwrite any existing data.
lib/crewai/src/crewai/utilities/file_handler.py:140
↓ 2 callers
Method
inject_all_tools
Inject tools from all registered extensions. Args: agent: The agent instance to inject tools into.
lib/crewai/src/crewai/a2a/extensions/base.py:186
↓ 2 callers
Method
invalidate
Remove a cached skill. Returns: True if the cache entry existed and was removed, False otherwise.
lib/crewai/src/crewai/skills/cache.py:152
↓ 2 callers
Function
invoke
(llm: BaseLLM, mode: str)
lib/crewai/tests/llms/test_missing_api_key.py:130
↓ 2 callers
Method
invoke
Main method for tool execution.
lib/crewai/src/crewai/tools/structured_tool.py:423
↓ 2 callers
Method
is_ahead_or_behind
Check if the repository is ahead or behind the remote.
lib/cli/src/crewai_cli/git.py:110
↓ 2 callers
Function
is_first_execution
True if this is the first execution for this user.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:428
↓ 2 callers
Function
is_native_tool_calling_unsupported_error
Return whether an error means native tool calling is unavailable.
lib/crewai/src/crewai/utilities/agent_utils.py:1400
↓ 2 callers
Function
is_tracing_enabled
Return True if tracing should currently be active. Mirrors the runtime gate (``crewai.events.listeners.tracing.utils. should_enable_tracing``
lib/crewai-core/src/crewai_core/user_data.py:77
↓ 2 callers
Method
iter_bytes
(self)
lib/crewai-files/tests/spreadsheets/test_loading.py:183
↓ 2 callers
Method
iter_content
( chunk_size: int = 1, decode_unicode: bool = False )
lib/crewai-tools/tests/utilities/test_safe_requests.py:687
↓ 2 callers
Method
iter_error_chain
Yield an exception and its explicit or implicit causes once each.
lib/crewai/src/crewai/llms/retry.py:70
↓ 2 callers
Method
kickoff
(self, *args: Any, **kwargs: Any)
lib/crewai/src/crewai/flow/conversational_mixin.py:300
↓ 2 callers
Method
kickoff
Start the flow execution in a synchronous context. This method wraps kickoff_async so that all state initialization and event emissio
lib/crewai/src/crewai/flow/runtime/__init__.py:2130
↓ 2 callers
Function
last_run_path
(directory: Path | None = None)
lib/crewai/src/crewai/telemetry/tracing/last_run.py:56
↓ 2 callers
Method
list_files
List all uploaded files. Returns: List of dictionaries with file information.
lib/crewai-files/src/crewai_files/uploaders/base.py:112
↓ 2 callers
Method
list_records
List records in a scope, newest first. Args: scope_prefix: Optional scope path prefix to filter by. limit: Maximum nu
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:530
↓ 2 callers
Function
load_agent_from_repository
Load an agent from the repository. Args: from_repository: The name of the agent to load. Returns: A dictionary of attributes
lib/crewai/src/crewai/utilities/agent_utils.py:1147
↓ 2 callers
Function
load_declarative_flow
Load a declarative Flow instance from a definition path.
lib/cli/src/crewai_cli/run_declarative_flow.py:518
↓ 2 callers
Function
load_json_crew_project
Load and structurally validate a JSON crew project from files. When ``collect_errors`` is true, all discoverable structural errors are return
lib/crewai/src/crewai/project/json_loader.py:338
↓ 2 callers
Method
load_pending_feedback
(self, flow_uuid)
lib/crewai/tests/telemetry/test_deferred_trace_transitions.py:404
↓ 2 callers
Function
load_resources
Promote a skill to RESOURCES disclosure level. Args: skill: Skill to promote. Returns: Skill at RESOURCES level.
lib/crewai/src/crewai/skills/loader.py:281
↓ 2 callers
Function
load_spreadsheet
Read ``file`` as a workbook, reusing the result for the same content. A URL is streamed and stopped at ``max_bytes``, so a large file is never he
lib/crewai-files/src/crewai_files/spreadsheets/__init__.py:97
↓ 2 callers
Method
log
Log data with structured fields. Keyword Args: task_name: Name of the task. task: Description of the task.
lib/crewai/src/crewai/utilities/file_handler.py:65
↓ 2 callers
Function
log_flow_definition_issues
(definition: FlowDefinition)
lib/crewai/src/crewai/flow/flow_definition.py:1007
↓ 2 callers
Function
log_in_again
AMP refused the saved login: start `crewai login` once, as the run app's Deploy does (`run_crew._chain_deploy`), so the evaluation can be tried ag
lib/cli/src/crewai_cli/experimental/eval_crew.py:867
↓ 2 callers
Method
mark_events_collected
Mark that events have been collected during execution.
lib/crewai/src/crewai/events/listeners/tracing/first_time_trace_handler.py:43
↓ 2 callers
Function
mark_first_execution_done
Mark that the first execution has been completed. Args: user_consented: Whether the user consented to trace collection.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:434
↓ 2 callers
Function
mark_mapped
Record ``llm`` as built by the overlay, so no model key maps it again. ``declared`` is what the caller declared before the overlay mapped it —
lib/crewai/src/crewai/llm_overlay.py:282
↓ 2 callers
Function
markdown_heading_anchor
(text: str)
lib/crewai/src/crewai/flow/skill.py:563
↓ 2 callers
Function
max_attr_bytes
The byte bound :func:`truncate_attr` applies when given none. See :data:`DEFAULT_MAX_ATTR_BYTES`. The SDK's limit counts characters and a cha
lib/crewai/src/crewai/telemetry/tracing/gen_ai_shapes.py:450
↓ 2 callers
Function
measure_operation
Context manager to measure and log operation performance. Args: operation: Name of the operation. filename: Optional filename bei
lib/crewai-files/src/crewai_files/cache/metrics.py:71
↓ 2 callers
Function
message_to_llm_dict
Coerce a stored ``ConversationMessage`` (or dict) into an ``LLMMessage``.
lib/crewai/src/crewai/flow/conversational.py:183
↓ 2 callers
Function
model_call_hooks_already_dispatched
Whether an enclosing caller already dispatched hooks for the current call.
lib/crewai/src/crewai/hooks/llm_hooks.py:202
↓ 2 callers
Method
model_is_skipped
(self, model_name: str)
lib/crewai/src/crewai/flow/skill.py:417
↓ 2 callers
Function
native_call
(backend, tool, cache, args)
lib/crewai/tests/agents/test_native_tool_hook_contract.py:105
↓ 2 callers
Method
on_inbound
Track inbound calls. Args: message: The inbound response. Returns: The response unchanged.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:29
↓ 2 callers
Method
on_outbound
Track outbound calls. Args: message: The outbound request. Returns: The request unchanged.
lib/crewai/tests/llms/hooks/test_base_interceptor.py:17
↓ 2 callers
Method
on_outbound
Add custom header to outbound request. Args: message: The outbound request. Returns: Modified request with c
lib/crewai/tests/llms/hooks/test_base_interceptor.py:45
↓ 2 callers
Method
on_tool_error
( self, tool: Any, tool_calling: ToolCalling | InstructorToolCalling, e: Excep
lib/crewai/src/crewai/tools/tool_usage.py:1005
↓ 2 callers
Method
on_tool_use
Run when tool ends running. Args: calling: The tool calling instance. output: The raw output from the tool execution.
lib/crewai/src/crewai/agents/tools_handler.py:26
↓ 2 callers
Function
outputs_by_name
( method_outputs: list[_MethodOutput], *, local_outputs: Mapping[str, Any] | None = None, seri
lib/crewai/src/crewai/flow/runtime/_outputs.py:19
↓ 2 callers
Function
overlay_llm_for
The llm an agent with ``role`` and ``declared`` llm runs on under ``llm_overlay``. A role key wins, and its model is built from the caller's decl
lib/crewai/src/crewai/utilities/llm_utils.py:239
↓ 2 callers
Function
overlay_model_for_model
The model the active overlay's model keys assign to an LLM on ``model``. ``model`` is compared as written and, when a native provider strips its
lib/crewai/src/crewai/llm_overlay.py:172
↓ 2 callers
Function
overview
Each sheet's size, header row and leading columns with their types, fill and common values or ranges, within ``max_chars``.
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:200
↓ 2 callers
Method
parallel_find_similar
Search storage for similar records, concurrently for all active items.
lib/crewai/src/crewai/memory/encoding_flow.py:155
↓ 2 callers
Function
parse
Parse agent output text into AgentAction or AgentFinish. Expects output to be in one of two formats. If the output signals that an action sh
lib/crewai/src/crewai/agents/parser.py:62
↓ 2 callers
Method
parse_tool_calling
Parse the tool string and return the tool calling.
lib/crewai/src/crewai/tools/tool_usage.py:137
↓ 2 callers
Function
plot_declarative_flow_in_project_env
Plot a declarative flow inside the project's Python environment.
lib/cli/src/crewai_cli/run_declarative_flow.py:47
↓ 2 callers
Method
post_process_result
Post-process the result to ensure proper string format. Extracts valid JSON from text that may contain markdown or other formatting.
lib/crewai/src/crewai/agents/agent_adapters/base_converter_adapter.py:70
↓ 2 callers
Method
prepare_all_metadata
Collect metadata from all registered extensions for outbound messages. Args: extension_states: Mapping of extension types to conv
lib/crewai/src/crewai/a2a/extensions/base.py:253
↓ 2 callers
Function
prepare_task_execution
Prepare a task for execution, handling replay skip logic and agent/tool setup. Args: crew: The crew instance. task: The task to p
lib/crewai/src/crewai/crews/utils.py:118
↓ 2 callers
Function
presigned
An AMP upload URL as S3 presigns it: a random key in the path, and the file named only in the query, next to its signature.
lib/crewai/tests/agents/test_agent_spreadsheets.py:37
↓ 2 callers
Function
process_status_update
Process a status update event and extract text parts. Args: update: The status update event. result_parts: List to append text pa
lib/crewai/src/crewai/a2a/updates/streaming/params.py:8
↓ 2 callers
Function
project_eval_config
What this project says good means, if it has said. Read from the project's own directory, beside `pyproject.toml`, because that is where the
lib/cli/src/crewai_cli/experimental/eval_crew.py:527
↓ 2 callers
Function
projects_own_error
( module: str = f"{SECRET}.main", qualname: str = "AcmeSecretProjectError" )
lib/cli/tests/test_run_usage.py:614
↓ 2 callers
Function
proposal
(state, job, seq, kind, **details)
lib/crewai/tests/test_flow_jobs.py:91
↓ 2 callers
Method
prune
Remove oldest checkpoint rows beyond *max_keep* on a branch.
lib/crewai/src/crewai/state/provider/sqlite_provider.py:115
↓ 2 callers
Method
query
(self, question: str, where: dict[str, Any] | None = None)
lib/crewai-tools/src/crewai_tools/rag/core.py:178
↓ 2 callers
Function
raised_from
ERROR as `raise ERROR from CAUSE` leaves it.
lib/cli/tests/test_run_usage.py:571
↓ 2 callers
Method
read
Read the file content from disk.
lib/crewai-files/src/crewai_files/core/sources.py:260
↓ 2 callers
Method
read
Read the stream content. Content is cached after first read.
lib/crewai-files/src/crewai_files/core/sources.py:379
↓ 2 callers
Function
read_last_run
The record crewAI wrote for the project's last traced run (execution_id, tier, started_at, finished_at, amp_base_url), or None.
lib/cli/src/crewai_cli/experimental/eval_crew.py:809
↓ 2 callers
Function
read_last_run
The record, or None when there is none or it cannot be read.
lib/crewai/src/crewai/telemetry/tracing/last_run.py:185
↓ 2 callers
Method
recall
Recall within this scope (root path and below).
lib/crewai/src/crewai/memory/memory_scope.py:150
← previous
next →
2,901–3,000 of 19,484, ranked by callers