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
↓ 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:2118
↓ 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:514
↓ 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
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:172
↓ 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
↓ 2 callers
Function
record_evaluation_outcome
What the run app did with the evaluation it was opened for. The app runs in a child process for most projects, so nothing in memory reaches t
lib/cli/src/crewai_cli/experimental/eval_crew.py:586
↓ 2 callers
Function
record_finished
Count an evaluation that reached a verdict, by the gate's word. `cli_usage:eval` counts the evaluations that started and `eval_stopped:*` the
lib/cli/src/crewai_cli/experimental/eval_crew.py:334
↓ 2 callers
Method
register_entity
Add an entity to the RuntimeState, creating it if needed. Agents that belong to an already-registered Crew are tracked but not append
lib/crewai/src/crewai/events/event_bus.py:338
↓ 2 callers
Method
remove_by_file_id
Sync wrapper for aremove_by_file_id.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:465
↓ 2 callers
Function
replace_the_exporter
Keep the real `Telemetry` from exporting; returns the span every count it sends sets its attributes on.
lib/cli/tests/test_run_usage.py:1095
↓ 2 callers
Method
research
(self)
lib/crewai/tests/test_flow_turns.py:250
↓ 2 callers
Method
reset_all_settings
Reset all CLI configuration parameters to default values.
lib/cli/src/crewai_cli/settings/main.py:98
↓ 2 callers
Method
reset_chain
Reset the Responses API auto-chain state.
lib/crewai/src/crewai/llms/providers/azure/completion.py:1408
↓ 2 callers
Method
reset_chain
Reset the auto-chain state to start a new conversation. Clears the stored response ID so the next call starts fresh without linking t
lib/crewai/src/crewai/llms/providers/openai/completion.py:499
↓ 2 callers
Function
reset_current_task_id
Reset the current task ID to its previous value.
lib/crewai/src/crewai/context.py:75
↓ 2 callers
Function
reset_stream_sinks
Restore the stream sink context.
lib/crewai/src/crewai/events/stream_context.py:22
↓ 2 callers
Method
reset_tool_failures
Clear recorded tool failures before a new execution begins.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:674
↓ 2 callers
Method
resolveCSSVariable
(color)
lib/crewai/src/crewai/flow/visualization/assets/interactive.js:263
↓ 2 callers
Function
resolve_class_ref
Return the named class, with an optional base class check.
lib/crewai/src/crewai/utilities/declarative_refs.py:54
↓ 2 callers
Function
resolve_project_definition_path
Resolve a ``[tool.crewai].definition`` path inside ``project_root``.
lib/crewai-core/src/crewai_core/project.py:106
↓ 2 callers
Method
response
A fake Converse response carrying ``text`` and fixed token usage.
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:104
↓ 2 callers
Function
restore_machine_transport
Put the pinned proxy and CA variables back in ``environ``, dropping any set since. For a process that loads a project's .env and then starts anot
lib/crewai-core/src/crewai_core/plus_api.py:179
↓ 2 callers
Function
rewrite_member
(data: bytes, member: str, change)
lib/crewai-files/tests/spreadsheets/test_reading.py:782
↓ 2 callers
Method
roots
Return all root nodes — events with no parent. Returns: List of root event nodes.
lib/crewai/src/crewai/state/event_record.py:193
↓ 2 callers
Method
route_turn
(self, context: dict[str, Any])
lib/crewai/tests/test_flow_conversation.py:1048
↓ 2 callers
Method
run
(self)
lib/crewai/tests/test_flow_usage_metrics.py:85
↓ 2 callers
Function
run_command
(cmd, cwd)
lib/crewai-tools/tests/test_optional_dependencies.py:30
↓ 2 callers
Function
run_crew
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/cli.py:54
↓ 2 callers
Function
run_declarative_flow
Run a declarative flow from a definition path. Inputs come from one place: the flow's own state schema. Any ``--inputs`` JSON is layered on t
lib/cli/src/crewai_cli/run_declarative_flow.py:56
↓ 2 callers
Function
run_flow
()
lib/crewai/tests/test_flow_from_definition.py:1279
↓ 2 callers
Function
run_for_each_async
Execute crew workflow for each input asynchronously. Args: crew: The crew instance to execute. inputs: List of input dictionaries
lib/crewai/src/crewai/crews/utils.py:424
↓ 2 callers
Function
run_turn
(flow: Flow[ConversationState], streaming: bool)
lib/crewai/tests/test_flow_context_compaction.py:75
↓ 2 callers
Function
run_with_rate_limit_retry
Run an operation with retries for transient rate-limit errors only.
lib/crewai/src/crewai/llms/retry.py:124
↓ 2 callers
Method
save_pending_feedback
Save state with a pending feedback marker. This method is called when a flow is paused waiting for async human feedback. The default
lib/crewai/src/crewai/flow/persistence/base.py:70
↓ 2 callers
Method
save_to_json
(self, output_path: str)
lib/crewai-tools/src/crewai_tools/generate_tool_specs.py:189
↓ 2 callers
Method
save_trained_data
Save the trained data for a specific agent. Args: agent_id: The ID of the agent. trained_data: The trained data to be
lib/crewai/src/crewai/utilities/training_handler.py:8
↓ 2 callers
Method
see
(self, payload: dict[str, Any], *, final: bool = False)
lib/cli/src/crewai_cli/experimental/eval_crew.py:2040
↓ 2 callers
Function
select_choice
Presents a list of choices to the user and prompts them to select one. Args: prompt_message: The message to display to the user before pr
lib/cli/src/crewai_cli/provider.py:16
↓ 2 callers
Function
send_message_and_get_task_id
Send message and process initial response. Handles the common pattern of sending a message and either: - Getting an immediate Message respons
lib/crewai/src/crewai/a2a/task_helpers.py:288
↓ 2 callers
Function
sent_for
(feature: str)
lib/crewai-core/tests/test_smoke.py:382
↓ 2 callers
Method
set_attributes
(self, _)
lib/crewai/tests/telemetry/test_coding_agent_detection.py:443
↓ 2 callers
Function
set_current_task_id
Set the current task ID in the context. Returns a token for reset.
lib/crewai/src/crewai/context.py:70
↓ 2 callers
Method
set_fingerprint
Set the agent's security fingerprint.
lib/crewai/src/crewai/agent/core.py:1605
↓ 2 callers
Method
set_iteration
(self, iteration: int)
lib/crewai/src/crewai/experimental/evaluation/agent_evaluator.py:186
↓ 2 callers
Function
set_rag_config
Set global RAG client configuration and instantiate the client. Args: config: The RAG client configuration (ChromaDBConfig).
lib/crewai/src/crewai/rag/config/utils.py:29
↓ 2 callers
Method
set_skills
Load configured skills while preserving explicit disclosure levels. Path strings, Path objects, inline SKILL.md strings, and registry refs
lib/crewai/src/crewai/agent/core.py:623
↓ 2 callers
Function
set_state_field
Set a field on structured or dict flow state when present.
lib/crewai/src/crewai/flow/conversation.py:150
↓ 2 callers
Function
set_tracing_enabled
Set tracing enabled state for current execution context. Args: enabled: Whether tracing should be enabled Returns: A token t
lib/crewai/src/crewai/events/listeners/tracing/utils.py:184
↓ 2 callers
Function
setup_native_tools
Convert tools to OpenAI schema format for native function calling. Args: original_tools: Original BaseTool instances. Returns:
lib/crewai/src/crewai/utilities/agent_utils.py:1422
↓ 2 callers
Method
should_execute
Determines whether the conditional task should be executed based on the provided context. Args: context: The output from the prev
lib/crewai/src/crewai/tasks/conditional_task.py:41
← previous
next →
2,901–3,000 of 19,264, ranked by callers