MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions20,757 in github.com/crewAIInc/crewAI

↓ 10 callersMethodstatus
Get the git status in porcelain format.
lib/cli/src/crewai_cli/git.py:84
↓ 10 callersMethodto_pydantic
Generate structured output using the specified Pydantic model. Returns: Instance of the specified Pydantic model with structured
lib/crewai/src/crewai/utilities/internal_instructor.py:139
↓ 10 callersFunctiontool_for
Build a tool around a real SDK client wired to a FakeApi.
lib/crewai-tools/tests/tools/test_jev_decision_tool.py:56
↓ 10 callersFunctionupdate_pyproject_dependencies
Update workspace dependency versions in pyproject.toml. Args: file_path: Path to pyproject.toml file. new_version: New version st
lib/devtools/src/crewai_devtools/cli.py:344
↓ 10 callersFunctionupdate_user_data
Atomically read-modify-write the user data file under a file lock. Args: updates: Key-value pairs to merge into the existing user data.
lib/crewai-core/src/crewai_core/user_data.py:54
↓ 9 callersFunction_a_tracing_project
(directory: Path)
lib/cli/tests/experimental/test_eval_crew.py:4724
↓ 9 callersMethod_acall_completions
Async call to OpenAI Chat Completions API. Falls back to the Responses API for models not served by chat completions, mirroring :meth
lib/crewai/src/crewai/llms/providers/openai/completion.py:872
↓ 9 callersMethod_api_response
(status_code: int, body: object)
lib/cli/tests/deploy/test_deploy_main.py:1171
↓ 9 callersMethod_asave_documents
Save the documents to the storage asynchronously. This method should be called after the chunks and embeddings are generated. Raises
lib/crewai/src/crewai/knowledge/source/base_knowledge_source.py:77
↓ 9 callersFunction_at_a_terminal
Run `crewai create flow` as a person at a terminal: stdin and stdout are terminals and CREWAI_DMN is unset. Call it in the test body: pytest gives
lib/cli/tests/test_create_flow.py:127
↓ 9 callersFunction_build_docs_root
Build a minimal docs/ tree with one previous snapshot + Edge + docs.json. The shape mirrors the real repo: an Edge directory with per-locale fold
lib/devtools/tests/test_docs_versioning.py:16
↓ 9 callersFunction_close_storage
Flush and release a backend; a no-op for backends without ``close``.
lib/crewai/tests/memory/test_storage_backend_async_parity.py:61
↓ 9 callersFunction_completion_body
(content: str)
lib/crewai/tests/llms/openai/test_gateway_error_envelope.py:44
↓ 9 callersFunction_create_skill_dir
Helper to create a skill directory with SKILL.md.
lib/crewai/tests/skills/test_loader.py:20
↓ 9 callersFunction_dict_tool_use_response
()
lib/crewai/tests/llms/anthropic/test_anthropic.py:1607
↓ 9 callersFunction_emit
Run one telemetry span method against a mocked tracer. The singleton is reset first: it caches the provider built on the very first construct
lib/crewai/tests/telemetry/test_telemetry.py:331
↓ 9 callersFunction_ensure_litellm
Lazy-load litellm on first use. Returns True if available.
lib/crewai/src/crewai/llm.py:138
↓ 9 callersMethod_extract_anthropic_token_usage
Extract token usage and response metadata from Anthropic response.
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:2128
↓ 9 callersFunction_format_json_in_text
Find JSON objects/arrays in text and pretty-print them.
lib/cli/src/crewai_cli/crew_run_tui.py:120
↓ 9 callersMethod_format_messages
Format messages for OpenAI API.
lib/crewai/src/crewai/llms/providers/openai/completion.py:3226
↓ 9 callersMethod_format_messages_for_converse
Format messages for Converse API following AWS documentation. Note: Returns dict[str, Any] instead of LLMMessage because Bedrock uses
lib/crewai/src/crewai/llms/providers/bedrock/completion.py:1951
↓ 9 callersMethod_get_or_create_interpreter
Get or create a code interpreter for the specified thread. Args: thread_id: Thread ID for the code interpreter session R
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:520
↓ 9 callersFunction_image_file
(data: bytes, filename: str = "photo.png")
lib/crewai-files/tests/processing/test_images.py:42
↓ 9 callersFunction_open_storage
Open a backend of kind ``backend`` rooted at ``path``.
lib/crewai/tests/memory/test_storage_backend_async_parity.py:49
↓ 9 callersFunction_pause
Persist a pending review for ``flow_cls.draft`` and restore it, as AMP does.
lib/crewai/tests/test_async_human_feedback.py:1473
↓ 9 callersFunction_prepare_documents_for_chromadb
Prepare documents for ChromaDB by extracting IDs, texts, and metadata. Args: documents: List of BaseRecord documents to prepare. Ret
lib/crewai/src/crewai/rag/chromadb/utils.py:56
↓ 9 callersFunction_psd
A minimal 8-bit grayscale PSD header that Pillow's PSD parser accepts.
lib/crewai-files/tests/processing/test_images.py:30
↓ 9 callersFunction_python_ref_errors
(value: Any, source: str | Path)
lib/crewai/src/crewai/project/json_loader.py:668
↓ 9 callersFunction_quote_identifier
(name: str)
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:109
↓ 9 callersMethod_rejects_reasoning_effort_as_unsupported
Whether a 400 is the server refusing `reasoning_effort` for this model. Non-reasoning models reject the parameter itself, in one of two shape
lib/crewai/src/crewai/llms/providers/openai/completion.py:2176
↓ 9 callersMethod_run_sync
Run an async coroutine from sync context without blocking event loop.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:404
↓ 9 callersMethod_scope_path
(self, scope: str | None)
lib/crewai/src/crewai/memory/memory_scope.py:93
↓ 9 callersMethod_set_agent_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:107
↓ 9 callersMethod_set_plan_step_status
Set status for an explicit plan step reported by the planner.
lib/cli/src/crewai_cli/crew_run_tui.py:2556
↓ 9 callersMethod_set_task_params
(self, data: dict[str, Any])
lib/crewai/src/crewai/events/base_events.py:101
↓ 9 callersFunction_tar_from_members
Build an in-memory tar archive via `build(tf)` and return it for reading.
lib/cli/tests/skills/test_safe_extract.py:19
↓ 9 callersMethod_zip_create
A repository mock, and AMP accepting a ZIP create.
lib/cli/tests/deploy/test_deploy_main.py:1568
↓ 9 callersMethodaemit
Asynchronously emit an event to registered async handlers. Only processes async handlers. Use in async contexts. Args: s
lib/crewai/src/crewai/events/event_bus.py:771
↓ 9 callersMethodasearch
(self, query, limit=5, metadata_filter=None, score_threshold=0.6)
lib/crewai/tests/agents/test_agent.py:1887
↓ 9 callersFunctionbuild_xlsx
Return the bytes of a single-sheet XLSX holding *rows*.
lib/crewai-tools/tests/url_read_tool_test.py:79
↓ 9 callersMethodcheckpoint
Write a checkpoint. Args: location: Storage destination. For JsonProvider this is a directory path; for SqlitePro
lib/crewai/src/crewai/state/runtime.py:292
↓ 9 callersMethodcheckpoint
(self)
lib/crewai/tests/test_flow_definition.py:1016
↓ 9 callersFunctionchunk_text
Split a text file into chunks of maximum character count. Yields chunks one at a time to minimize memory usage. Args: file: The text
lib/crewai-files/src/crewai_files/processing/transformers.py:243
↓ 9 callersMethodclear
Sync wrapper for aclear.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:476
↓ 9 callersMethodclient
(self, service_name: str, **kwargs: Any)
lib/crewai-files/tests/test_bedrock_async_client.py:49
↓ 9 callersMethodclose
Clean up Stagehand resources.
lib/crewai-tools/src/crewai_tools/tools/stagehand_tool/stagehand_tool.py:681
↓ 9 callersMethodclose
(self)
lib/crewai/tests/test_jev_evaluation_runner.py:476
↓ 9 callersFunctionconfigured_project_declarative_flow
Return the configured declarative flow source for flow projects.
lib/cli/src/crewai_cli/run_declarative_flow.py:556
↓ 9 callersMethodcount
(self, *filters)
lib/crewai-files/tests/spreadsheets/test_answers.py:289
↓ 9 callersMethoddelete_collection
Delete a collection and all its data. Keyword Args: collection_name: Name of the collection to delete. Raises:
lib/crewai/src/crewai/rag/qdrant/client.py:507
↓ 9 callersFunctionevaluate
Classify every record and compute routing and guardrail metrics. Both thresholds are inclusive: a Choice confidence equal to ``min_confidence
scripts/jev_evaluation_runner.py:269
↓ 9 callersFunctionextract_output_from_stream
Extract output from code interpreter response stream. Args: response: Response from code interpreter execution Returns: Extr
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:19
↓ 9 callersMethodfinalize_batch
Finalize batch and return it for sending
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:329
↓ 9 callersFunctionget_after_tool_call_hooks
Get all registered global after_tool_call hooks. Returns: List of registered after hooks
lib/crewai/src/crewai/hooks/tool_hooks.py:287
↓ 9 callersMethodget_token_url
(self)
lib/crewai-core/src/crewai_core/auth/providers/okta.py:14
↓ 9 callersFunctionhas_user_declined_tracing
Return True if a person was asked about sharing traces and said no. Only a record with ``trace_consent_asked`` counts. Versions before it also
lib/crewai-core/src/crewai_core/user_data.py:69
↓ 9 callersMethodincrement_tools_errors
Increment the tools errors counter.
lib/crewai/src/crewai/task.py:1262
↓ 9 callersMethodinitialize_batch
Initialize a new trace batch (thread-safe)
lib/crewai/src/crewai/events/listeners/tracing/trace_batch_manager.py:93
↓ 9 callersMethodinstall
(self, handle: str)
lib/cli/src/crewai_cli/tools/main.py:210
↓ 9 callersFunctionis_current_version_yanked
Return ``(yanked, reason)`` for the currently installed version.
lib/crewai-core/src/crewai_core/version.py:149
↓ 9 callersFunctionis_dmn_mode_enabled
Return True when the enterprise non-interactive mode is enabled.
lib/cli/src/crewai_cli/utils.py:100
↓ 9 callersFunctionis_replaying
Return True if the current context is dispatching a replayed event. Listeners with side effects (checkpoint writes, external API calls that s
lib/crewai/src/crewai/events/event_bus.py:73
↓ 9 callersFunctionis_tool_call_list
Check if a response from the LLM is a list of tool calls. Supports OpenAI, Anthropic, Bedrock, and Gemini formats. Args: response: T
lib/crewai/src/crewai/utilities/agent_utils.py:1374
↓ 9 callersFunctionis_tui_mode
()
lib/crewai/src/crewai/events/listeners/tracing/utils.py:86
↓ 9 callersMethodis_url
(self)
lib/crewai-tools/src/crewai_tools/rag/source_content.py:20
↓ 9 callersMethodmain
()
lib/crewai/tests/agents/test_agent.py:3162
↓ 9 callersMethodmark_completed
Mark a todo as completed by step number.
lib/crewai/src/crewai/utilities/planning_types.py:96
↓ 9 callersFunctionparse_inputs_json
Parse a ``--inputs`` JSON object, exiting with a pointed error if invalid.
lib/cli/src/crewai_cli/input_prompt.py:25
↓ 9 callersFunctionprocess_guardrail
Process the guardrail for the agent output. Args: output: The output to validate with the guardrail guardrail: The guardrail to v
lib/crewai/src/crewai/utilities/guardrail.py:118
↓ 9 callersFunctionpush_event_scope
Push an event ID and type onto the scope stack.
lib/crewai/src/crewai/events/event_context.py:171
↓ 9 callersMethodread
()
lib/crewai-files/tests/processing/test_transformers.py:341
↓ 9 callersFunctionregister
Register a global hook for an interception point.
lib/crewai/src/crewai/hooks/dispatch.py:119
↓ 9 callersFunctionresize_image
Resize an image to fit within the specified dimensions. Args: file: The image file to resize. max_width: Maximum width in pixels.
lib/crewai-files/src/crewai_files/processing/transformers.py:19
↓ 9 callersMethodrun
(self)
lib/crewai/tests/telemetry/test_trace_lifecycle.py:247
↓ 9 callersFunctionset_suppress_tracing_messages
Set whether to suppress tracing-related console messages. Args: suppress: True to suppress messages, False to show them. Returns:
lib/crewai/src/crewai/events/listeners/tracing/utils.py:90
↓ 9 callersFunctionshould_suppress_tracing_messages
Check if tracing messages should be suppressed. Returns: True if messages should be suppressed, False otherwise.
lib/crewai/src/crewai/events/listeners/tracing/utils.py:102
↓ 9 callersMethodskill
Return a portable Markdown skill for authoring Flow declarations.
lib/crewai/src/crewai/flow/flow_definition.py:872
↓ 9 callersFunctionstops_run_as
Count the run as stopped for REASON when the block raises, then re-raise.
lib/cli/src/crewai_cli/run_crew.py:887
↓ 9 callersMethodsummarize_messages
Compact a mutable conversation history to fit this model's context window.
lib/crewai/src/crewai/llms/base_llm.py:529
↓ 9 callersMethodsupports_stop_words
Check if the model supports stop words. Note: This method is only used by the litellm fallback path. Native providers override this m
lib/crewai/src/crewai/llm.py:2597
↓ 9 callersFunctiontool_results
(llm)
lib/crewai/tests/agents/test_agent_state.py:80
↓ 9 callersMethodupdate
(self, **changes: Any)
lib/crewai/src/crewai/agent/conversation.py:285
↓ 9 callersFunctionvalidate_audio
Validate an audio file against constraints. Args: file: The audio file to validate. constraints: Audio constraints to validate ag
lib/crewai-files/src/crewai_files/processing/validators.py:343
↓ 9 callersMethodvector_index_exists
Check an explicit index or the default name for the requested index type.
lib/crewai-tools/src/crewai_tools/tools/oracle_vector_search_tool/vector_search.py:675
↓ 8 callersMethod__init__
(self, toolkit: CodeInterpreterToolkit, **kwargs: Any)
lib/crewai-tools/src/crewai_tools/aws/bedrock/code_interpreter/code_interpreter_toolkit.py:388
↓ 8 callersMethod__new__
(cls, *args: Any, **kwargs: Any)
lib/crewai/tests/tools/test_tool_failure.py:53
↓ 8 callersFunction_agent
( llm: BaseLLM, tools: list[BaseTool] | None = None, max_rpm: int | None = None )
lib/crewai/tests/agents/test_empty_llm_response_retry.py:383
↓ 8 callersMethod_coerce_llm
Resolve a declared or live LLM the way a crew agent's ``llm`` resolves. ``create_llm`` is the shared helper the crew/agent declaration layer
lib/crewai/src/crewai/flow/conversational_mixin.py:1785
↓ 8 callersMethod_common_payload_refinement
Common payload refinement for all tools.
lib/crewai-tools/src/crewai_tools/tools/brave_search_tool/base.py:284
↓ 8 callersMethod_create_mock_tool
(self, name, description)
lib/crewai-tools/tests/tools/tool_collection_test.py:20
↓ 8 callersFunction_crewai_dependency
(project_root: Path)
lib/cli/tests/test_create_crew.py:2237
↓ 8 callersFunction_crewai_dependency
(project_root: Path)
lib/cli/tests/test_create_flow.py:171
↓ 8 callersMethod_effective_routes
(self, router_config: RouterConfig | None = None)
lib/crewai/src/crewai/flow/conversational_mixin.py:1661
↓ 8 callersFunction_emit_llm_call
Emit one fake ``LLMCallCompletedEvent`` with ``current_flow_id`` pinned to ``flow_id``. Runs in a freshly-copied context so the value the bus
lib/crewai/tests/test_flow_usage_metrics.py:30
↓ 8 callersMethod_evaluate_if_one_is_waiting
Start the evaluation `crewai eval` opened this run for. The evaluation is the errand; the run was the prerequisite. It begins here, o
lib/cli/src/crewai_cli/crew_run_tui.py:1095
↓ 8 callersFunction_fail
(message: str)
lib/cli/src/crewai_cli/experimental/eval_crew.py:2598
↓ 8 callersMethod_features
(self, bm: TraceBatchManager)
lib/crewai/tests/tracing/test_tracing.py:1639
↓ 8 callersMethod_finalize
(self, bm: TraceBatchManager, *, status_code: int = 200)
lib/crewai/tests/tracing/test_tracing.py:1618
↓ 8 callersMethod_flow
(state: dict[str, Any] | None)
lib/crewai/tests/test_flow_conversation.py:2790
↓ 8 callersMethod_get_client
Get or create the Gemini client.
lib/crewai-files/src/crewai_files/uploaders/gemini.py:116
← previousnext →601–700 of 20,757, ranked by callers