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
↓ 6 callers
Function
scoped_hooks
Enter an execution-scoped hook registry. Hooks registered inside this context (via :func:`register_scoped`) run after global hooks and are di
lib/crewai/src/crewai/hooks/dispatch.py:160
↓ 6 callers
Function
set_artifact_store
Replace the process-wide artifact store.
lib/crewai/src/crewai/artifacts.py:266
↓ 6 callers
Method
set_cache_handler
Set the cache handler for the agent. Args: cache_handler: An instance of the CacheHandler class.
lib/crewai/src/crewai/agents/agent_builder/base_agent.py:800
↓ 6 callers
Function
set_last_event_id
Set the ID of the last emitted event. Args: event_id: The event_id to set as the last emitted event.
lib/crewai/src/crewai/events/event_context.py:91
↓ 6 callers
Method
set_tracer
Mark telemetry live (idempotent). Deliberately does not install a global TracerProvider. Doing so made every OTel-instrumented librar
lib/crewai-core/src/crewai_core/telemetry.py:377
↓ 6 callers
Function
should_suppress_console_output
Return True if console output should currently be suppressed.
lib/crewai-core/src/crewai_core/printer.py:27
↓ 6 callers
Method
shutdown
Gracefully shutdown the event loop and wait for all tasks to finish. Args: wait: If True, wait for all pending tasks to complete
lib/crewai/src/crewai/events/event_bus.py:897
↓ 6 callers
Function
sleep
(seconds: float)
lib/cli/tests/experimental/test_eval_crew.py:682
↓ 6 callers
Method
start
(self)
lib/crewai/tests/tools/test_structured_tool.py:397
↓ 6 callers
Method
start
(self)
lib/crewai/tests/agents/test_lite_agent.py:323
↓ 6 callers
Method
start_deployment_span
Records redeploying an existing crew (``crewai deploy push``). Also emits ``deploy:pushed`` so that deployments are countable from the
lib/crewai-core/src/crewai_core/telemetry.py:425
↓ 6 callers
Method
stream_events
Run the LLM call and stream scoped public ``StreamFrame`` events.
lib/crewai/src/crewai/llms/base_llm.py:578
↓ 6 callers
Method
subscribe
Iterate over frames, optionally filtered by channel.
lib/crewai/src/crewai/types/streaming.py:240
↓ 6 callers
Function
summarize_messages
Compact ``messages`` in place using ``llm``'s context-window contract.
lib/crewai/src/crewai/llms/context_window.py:299
↓ 6 callers
Function
tool_messages
(llm: ScriptedLLM, call: int = -1)
lib/crewai/tests/agents/test_tool_approval.py:148
↓ 6 callers
Method
update
Update a record by upserting with the same point ID.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:499
↓ 6 callers
Method
user_blocks
Content blocks of every ``user`` turn in a recorded request.
lib/crewai/tests/llms/bedrock/test_bedrock_content_usage_contract.py:145
↓ 6 callers
Method
validate
Validate a file against provider constraints. Args: file: The file to validate. Returns: List of validation
lib/crewai-files/src/crewai_files/processing/processor.py:73
↓ 6 callers
Function
validate_image
Validate an image file against constraints. Args: file: The image file to validate. constraints: Image constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:231
↓ 5 callers
Method
__del__
Ensure cleanup on deletion.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:252
↓ 5 callers
Method
_agent
()
lib/crewai/tests/hooks/test_interception_conformance.py:283
↓ 5 callers
Function
_amp_cannot_resolve
(monkeypatch, *missing)
lib/crewai/tests/agents/test_agent.py:2772
↓ 5 callers
Function
_amp_client
The AMP to ask, and whether the saved login goes with it. A project's `.env` may point `crewai eval` at another AMP — that is how a self-host
lib/cli/src/crewai_cli/experimental/eval_crew.py:770
↓ 5 callers
Method
_append_message_to_state
Add message to state conversation history. Args: text: Message content. role: Message role (default: assistant).
lib/crewai/src/crewai/agents/agent_executor.py:3393
↓ 5 callers
Method
_atomic_create_secure_file
Create a file only if it doesn't already exist.
lib/crewai-core/src/crewai_core/token_manager.py:248
↓ 5 callers
Function
_bomb
A zip of ``members`` deflated copies of ``payload``; with ``declared``, every header claims that uncompressed size instead of the real one.
lib/crewai-files/tests/spreadsheets/test_reading.py:153
↓ 5 callers
Function
_boto_modules
Build minimal boto modules for exercising the lazy imports.
lib/crewai-tools/tests/tools/test_s3_reader_tool.py:12
↓ 5 callers
Method
_build
( self, location: Path, second_callback: Any, **agent_kwargs: Any )
lib/crewai/tests/test_checkpoint.py:942
↓ 5 callers
Function
_build_conversation_messages
Build a realistic multi-turn conversation for summarization tests.
lib/crewai/tests/utilities/test_summarize_integration.py:18
↓ 5 callers
Method
_build_mcp_config_from_dict
Convert a config dict from crewai-oauth into an MCPServerConfig.
lib/crewai/src/crewai/mcp/tool_resolver.py:506
↓ 5 callers
Function
_byte_len
(s: str)
lib/crewai/src/crewai/telemetry/tracing/gen_ai_shapes.py:506
↓ 5 callers
Method
_call_with_function
Calls the LLM with function calling to get a plan. Args: prompt: The prompt to send to the LLM. plan_type: The type o
lib/crewai/src/crewai/utilities/reasoning_handler.py:351
↓ 5 callers
Method
_change
(self, record: DeliveryRecord, status: Any, reason: str = "")
lib/crewai/src/crewai/experimental/flow_replies.py:132
↓ 5 callers
Function
_chunk_messages
Greedily pack rendered summary requests, splitting only oversized messages.
lib/crewai/src/crewai/llms/context_window.py:362
↓ 5 callers
Method
_clear_streams
Clear the read and write streams.
lib/crewai/src/crewai/mcp/transports/base.py:111
↓ 5 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:54
↓ 5 callers
Function
_common_attributes
Build the process-wide span attributes with a stubbed project id.
lib/crewai/tests/telemetry/test_coding_agent_detection.py:522
↓ 5 callers
Function
_completed_event
(mock_emit)
lib/crewai/tests/test_llm_litellm_usage_events.py:54
↓ 5 callers
Function
_configuration_of
(llm: Any)
lib/crewai/tests/test_llm_overlay.py:61
↓ 5 callers
Method
_connect
(self)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:184
↓ 5 callers
Method
_conversation_flow_definition
Return the definition that describes this flow's methods. Prefers the instance definition, which is the loaded declaration for a flow
lib/crewai/src/crewai/flow/conversational_mixin.py:1146
↓ 5 callers
Method
_copy_and_serialize_state
(self)
lib/crewai/src/crewai/flow/runtime/__init__.py:3188
↓ 5 callers
Function
_count_usage
(feature: str, attributes: dict[str, str] | None = None)
lib/cli/src/crewai_cli/run_crew.py:674
↓ 5 callers
Function
_create_sqlite_checkpoint
( db_path: str, checkpoint_id: str | None = None, data: str | None = None, tasks_completed: in
lib/crewai/tests/test_checkpoint_cli.py:94
↓ 5 callers
Method
_create_temp_json_file
Helper to write JSON data to a temporary file and return its path.
lib/crewai-tools/tests/rag/test_json_loader.py:13
↓ 5 callers
Method
_crew
()
lib/crewai/tests/hooks/test_interception_conformance.py:437
↓ 5 callers
Method
_declaration
(router: dict[str, Any])
lib/crewai/tests/test_flow_conversation.py:2578
↓ 5 callers
Method
_declaration
(**overrides: Any)
lib/crewai/tests/test_flow_conversation.py:3347
↓ 5 callers
Method
_delete_secure_file
Delete a secure file (no-op if absent).
lib/crewai-core/src/crewai_core/token_manager.py:294
↓ 5 callers
Function
_deploy_doubles
(monkeypatch, *, creates, login)
lib/cli/tests/test_crew_run_tui.py:2760
↓ 5 callers
Method
_disconnect
(self)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:190
↓ 5 callers
Method
_do_write
Execute a single table write with retry on commit conflicts. Caller must already hold ``store_lock(self._lock_name)``.
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:153
↓ 5 callers
Method
_embed_texts
(self, texts: list[str])
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:580
↓ 5 callers
Function
_encode
(fmt: str, size: tuple[int, int] = (16, 16))
lib/crewai-files/tests/processing/test_images.py:36
↓ 5 callers
Function
_entry
Build a rankable catalog entry. ``sort`` is a comparable tuple ``(created, date_int, version_tuple)`` so a real vendor timestamp wins, then a
lib/cli/src/crewai_cli/model_catalog.py:440
↓ 5 callers
Method
_export_output
( self, result: str | BaseModel )
lib/crewai/src/crewai/task.py:1324
↓ 5 callers
Method
_extract_server_name
Extract clean server name from URL for tool prefixing.
lib/crewai/src/crewai/mcp/tool_resolver.py:527
↓ 5 callers
Function
_fallback_warnings
(caplog: pytest.LogCaptureFixture)
lib/crewai/tests/llms/test_context_window.py:461
↓ 5 callers
Method
_fetch_templates
Fetch all template repos from the GitHub org.
lib/cli/src/crewai_cli/remote_template/main.py:154
↓ 5 callers
Function
_field_errors
( data: dict[str, Any], allowed_fields: set[str], runtime_fields: set[str], source: str | Path
lib/crewai/src/crewai/project/json_loader.py:1196
↓ 5 callers
Function
_finding
(validator: DeployValidator, code: str)
lib/cli/tests/deploy/test_validate.py:342
↓ 5 callers
Method
_flow
(reply: str = "Declared reply.")
lib/crewai/tests/test_flow_conversation.py:3506
↓ 5 callers
Method
_format_messages_for_provider
Format messages according to provider requirements. Args: messages: List of message dictionaries with 'role' and 'content' keys.
lib/crewai/src/crewai/llm.py:2471
↓ 5 callers
Method
_generate_embedding
(self, text: str)
lib/crewai-tools/src/crewai_tools/tools/db2_search_tool/db2_search_tool.py:232
↓ 5 callers
Method
_get_async_client
(self)
lib/crewai/src/crewai/llms/providers/openai/completion.py:484
↓ 5 callers
Method
_get_custom_llm_provider
Derives the custom_llm_provider from the model string. - For example, if the model is "openrouter/deepseek/deepseek-chat", returns "o
lib/crewai/src/crewai/llm.py:2539
↓ 5 callers
Method
_get_domain
(self)
lib/crewai-core/src/crewai_core/auth/providers/auth0.py:37
↓ 5 callers
Method
_get_or_create_event
Get or create a threading.Event for the given event_id (must hold _span_lock).
lib/crewai/src/crewai/telemetry/tracing/context.py:64
↓ 5 callers
Method
_get_or_create_key
Get or create the encryption key.
lib/crewai-core/src/crewai_core/token_manager.py:63
↓ 5 callers
Method
_get_responses_delegate
(self)
lib/crewai/src/crewai/llms/providers/azure/completion.py:269
↓ 5 callers
Method
_get_sync_client
(self)
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:342
↓ 5 callers
Method
_handle_emit_call_events
Handle the events for the LLM call. Args: response (str): The response from the LLM call. call_type (str): The type o
lib/crewai/src/crewai/llm.py:2308
↓ 5 callers
Function
_http_get_json
GET ``url`` and return parsed JSON, with a short timeout and TLS verify.
lib/cli/src/crewai_cli/model_catalog.py:543
↓ 5 callers
Function
_humanize
Derive a readable label from a raw model id. Best-effort only — vendor display names and the curated label map take precedence. Drops embedde
lib/cli/src/crewai_cli/model_catalog.py:505
↓ 5 callers
Function
_infer_result_schema_from_callable
( func: Callable[..., Any], )
lib/crewai/src/crewai/tools/structured_tool.py:45
↓ 5 callers
Method
_interpolate_inputs
Interpolates the inputs in the tasks and agents.
lib/crewai/src/crewai/crew.py:2320
↓ 5 callers
Method
_invoke_step_callback
Invoke step callback if configured. Args: formatted_answer: Current agent response.
lib/crewai/src/crewai/agents/agent_executor.py:3363
↓ 5 callers
Function
_is_pydantic_model_class
Check if an object is a Pydantic model class. This distinguishes between Pydantic model classes that support structured outputs (have model_j
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:133
↓ 5 callers
Function
_leftovers
Anything in .crewai that is neither the record nor its lock file.
lib/crewai/tests/telemetry/test_last_run.py:14
↓ 5 callers
Function
_linear_record
Build a simple chain: e0 → e1 → e2 → ... with previous_event_id.
lib/crewai/tests/test_event_record.py:19
↓ 5 callers
Function
_llm_response
(llm: BaseLLM, *, use_async: bool)
lib/crewai/tests/agents/test_empty_llm_response_retry.py:87
↓ 5 callers
Method
_load_tokens
Decrypt the token file, or return None if absent.
lib/crewai-core/src/crewai_core/token_manager.py:211
↓ 5 callers
Method
_make_batch_manager
Create a TraceBatchManager with a pre-set trace_batch_id.
lib/crewai/tests/tracing/test_tracing.py:976
↓ 5 callers
Function
_make_checkpoint_data
( tasks_completed: int = 2, tasks_total: int = 4, trigger: str = "task_completed", branch: str
lib/crewai/tests/test_checkpoint_cli.py:32
↓ 5 callers
Function
_make_dict_flow
()
lib/crewai/tests/test_flow.py:2291
↓ 5 callers
Method
_mark_batch_as_failed
Mark a trace batch as failed, routing to the correct endpoint.
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:242
↓ 5 callers
Method
_mark_todo_failed
( self, step_number: int, result: str | None = None, error: str | None = None,
lib/crewai/src/crewai/agents/agent_executor.py:701
↓ 5 callers
Function
_no_file
(file: str)
lib/crewai/tests/skills/test_skill_files.py:47
↓ 5 callers
Function
_normalize_snowflake_base_url
Return a Snowflake Cortex REST OpenAI-compatible base URL.
lib/crewai/src/crewai/llms/providers/snowflake/completion.py:21
↓ 5 callers
Function
_normalize_source
Convert raw input to appropriate source type.
lib/crewai-files/src/crewai_files/core/sources.py:576
↓ 5 callers
Function
_object_ref
Format a class or instance as the canonical ``module:qualname`` ref.
lib/crewai/src/crewai/flow/flow_definition.py:73
↓ 5 callers
Function
_only_span
The single exported span with ``name``, failing loudly if not unique.
lib/crewai/tests/telemetry/test_span_task_agent_tool_attributes.py:86
↓ 5 callers
Function
_oracle_env_config
()
lib/crewai-tools/tests/tools/test_oracle_vector_search_tool_integration.py:14
↓ 5 callers
Function
_parse_agent_response
Parse LLM output as AgentResponse or return raw agent response.
lib/crewai/src/crewai/a2a/wrapper.py:784
↓ 5 callers
Method
_process_field_value
(self, response: str, field_type: type | None)
lib/crewai/src/crewai/utilities/training_converter.py:90
↓ 5 callers
Function
_prompt_can_be_shown
Could a question about traces be put to somebody at all? Three cases where it cannot: a suite under test, a host that asked for tracing messa
lib/crewai/src/crewai/events/listeners/tracing/utils.py:579
↓ 5 callers
Method
_reasoning_effort_none_params
Params with an explicit `reasoning_effort="none"`, or None if already set. Removing the key is not enough: absence means "use the server defa
lib/crewai/src/crewai/llms/providers/openai/completion.py:2225
↓ 5 callers
Method
_record
(cls)
lib/crewai/tests/hooks/test_interception_conformance.py:292
↓ 5 callers
Method
_rejects_reasoning_effort_none
Whether a 400 is the model refusing the `reasoning_effort="none"` retry. GPT-6 Astra and GPT-6.1 Sol offer "none" in the tools 400 and then
lib/crewai/src/crewai/llms/providers/openai/completion.py:2076
↓ 5 callers
Method
_resolve_external
Resolve an HTTPS MCP server URL into tools.
lib/crewai/src/crewai/mcp/tool_resolver.py:237
← previous
next →
1,101–1,200 of 20,757, ranked by callers