MCPcopy Create free account

hub / github.com/crewAIInc/crewAI / functions

Functions20,483 in github.com/crewAIInc/crewAI

↓ 8 callersMethod_rejects_reasoning_effort_with_tools
Whether a 400 is OpenAI refusing `reasoning_effort` alongside tools. GPT-5.6 applies a server-side `reasoning_effort` default and then reject
lib/crewai/src/crewai/llms/providers/openai/completion.py:2035
↓ 8 callersFunction_reregister_listener
Re-subscribe the global listener to the event bus. The repo-wide ``cleanup_event_handlers`` fixture clears every handler after each test, so
lib/crewai/tests/telemetry/test_flow_telemetry.py:31
↓ 8 callersMethod_resolve_route
Decide which class ``LLM(model, **kwargs)`` constructs, without building it. The routing ``__new__`` applies, in its priority order: ``custom
lib/crewai/src/crewai/llm.py:479
↓ 8 callersFunction_run_crew
( llm: ScriptedLLM, mode: str, tools: list[BaseTool] | None = None, max_rpm: int | None = None
lib/crewai/tests/agents/test_executor_structured_output_with_tools.py:152
↓ 8 callersMethod_save_to_memory
Save task result to unified memory (memory or crew._memory).
lib/crewai/src/crewai/agents/agent_builder/base_agent_executor.py:31
↓ 8 callersFunction_success
(message: str, *, bold: bool = False, dim: bool = False)
lib/cli/src/crewai_cli/create_json_crew.py:357
↓ 8 callersFunction_task_for
(agent: Agent)
lib/crewai/tests/events/test_skill_usage_events.py:45
↓ 8 callersMethod_to_responses_input
Translate a chat-format message into Responses ``input`` items. Tool calling is expressed differently by the two APIs. Chat Completions
lib/crewai/src/crewai/llms/providers/openai/completion.py:1021
↓ 8 callersMethod_track_token_usage_internal
Track token usage internally in the LLM instance. Args: usage_data: Token usage data from the API response
lib/crewai/src/crewai/llms/base_llm.py:1212
↓ 8 callersMethod_validate_query
Validate the search query to ensure it's safe to execute. Only SELECT and SHOW statements are allowed for security reasons. Args:
lib/crewai-tools/src/crewai_tools/tools/singlestore_search_tool/singlestore_search_tool.py:356
↓ 8 callersMethodacall
Async call to Anthropic messages API. Args: messages: Input messages for the chat completion tools: List of tool/func
lib/crewai/src/crewai/llms/providers/anthropic/completion.py:555
↓ 8 callersMethodadd
Add content to the knowledge base.
lib/crewai-tools/src/crewai_tools/tools/rag/rag_tool.py:99
↓ 8 callersMethodappend_agent_result
Record an agent result, optionally making it visible to the user.
lib/crewai/src/crewai/flow/conversational_mixin.py:891
↓ 8 callersFunctionassert_counted_every_row
(text: str)
lib/crewai/tests/agents/test_agent_spreadsheets.py:184
↓ 8 callersFunctionassert_uploaded_anonymously
The upload from before temporary accounts: its grant (the last one) carries no credential and no organization, and the spans went out.
lib/crewai/tests/telemetry/test_placeholder_traces.py:230
↓ 8 callersFunctionbuild_env_with_all_tool_credentials
Return ``os.environ`` augmented with UV_INDEX_* credentials for every private index referenced under ``[tool.uv.sources]`` in ``pyproject.toml``.
lib/crewai-core/src/crewai_core/tool_credentials.py:35
↓ 8 callersFunctioncheck_repeated_tool_call
Track a streak of identical tool calls and warn the agent before it is stopped. A call extends the streak only when its tool, arguments and resul
lib/crewai/src/crewai/utilities/agent_utils.py:2000
↓ 8 callersFunctioncleanup_temp_file
(path)
lib/crewai-tools/tests/rag/test_text_loaders.py:22
↓ 8 callersFunctionclear_execution_uuid
Restore the execution uuid that was active before ``token`` was issued. ``token`` is required so this cannot wipe an outer kickoff's uuid.
lib/crewai/src/crewai/execution.py:81
↓ 8 callersFunctioncollect_live_decisions
Ask Jev for each record that has no recorded decision or error. Opt-in: the caller supplies a client built with their own credentials, and re
scripts/jev_evaluation_runner.py:357
↓ 8 callersMethodcount
(self, *filters)
lib/crewai-files/tests/spreadsheets/test_answers.py:289
↓ 8 callersMethodcreate_crew_deployment_span
Records creating a new crew deployment (``crewai deploy create``). Also emits ``deploy:created`` so that deployments are countable from the
lib/crewai-core/src/crewai_core/telemetry.py:452
↓ 8 callersFunctioncreate_llm_like
Build ``model`` configured like ``base``. The instance is built through :class:`LLM`, so provider routing and every setting derived from the
lib/crewai/src/crewai/utilities/llm_utils.py:189
↓ 8 callersMethodcreate_test_tool
( self, client: IntegrationsClient | None = None )
lib/crewai-tools/tests/tools/crewai_platform_tools/test_crewai_platform_action_tool.py:38
↓ 8 callersFunctioncreate_validated_connection
Open a TCP socket to *host* after validating and pinning the peer IP.
lib/crewai-tools/src/crewai_tools/security/ssrf_adapter.py:76
↓ 8 callersFunctioncreated
(token: str)
lib/crewai/tests/telemetry/test_placeholder_traces.py:42
↓ 8 callersFunctioncrewai_extras_for_model
Return the crewai extras, besides ``tools``, a project needs to run ``model``. That is the provider's extra from ``PROVIDER_EXTRAS``, plus ``lite
lib/cli/src/crewai_cli/constants.py:266
↓ 8 callersMethodcursor
(self)
lib/crewai/tests/rag/embeddings/test_oracle_provider.py:70
↓ 8 callersFunctiondetect_content_type
Detect MIME type from file content. Uses python-magic if available for accurate content-based detection, falls back to mimetypes module using
lib/crewai-files/src/crewai_files/core/sources.py:126
↓ 8 callersFunctionenforce_rpm_limit
Enforce the requests per minute (RPM) limit if applicable. Args: request_within_rpm_limit: Function to enforce RPM limit.
lib/crewai/src/crewai/utilities/agent_utils.py:463
↓ 8 callersFunctionerror_for_status
Build the exception matching an HTTP status. Args: status_code: HTTP status the server responded with. detail: Optional underlyin
lib/crewai/src/crewai/mcp/exceptions.py:103
↓ 8 callersMethodevaluate
(self, agent, task, execution_trace, final_output)
lib/crewai/tests/experimental/evaluation/test_agent_evaluator.py:239
↓ 8 callersMethodexec_module
(self, module: ModuleType)
lib/crewai/src/crewai/cli/__init__.py:39
↓ 8 callersFunctionexecute
Execute an A2A task using a CrewAI agent. Args: agent: The CrewAI agent to execute the task. context: The A2A request context con
lib/crewai/src/crewai/a2a/utils/task.py:290
↓ 8 callersMethodexport
(self, spans: Any)
lib/crewai/tests/telemetry/test_tracer_isolation.py:28
↓ 8 callersMethodfirst
(self, event_type: type[BaseEvent])
lib/crewai/tests/events/test_event_ordering.py:44
↓ 8 callersFunctionforce_additional_properties_false
Force additionalProperties=false on all object-type dicts recursively. OpenAI strict mode requires all objects to have additionalProperties=false
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:184
↓ 8 callersFunctionformat_skill_context
Format skill information for agent prompt injection. At METADATA level: returns name and description only. At INSTRUCTIONS level or above: re
lib/crewai/src/crewai/skills/loader.py:293
↓ 8 callersFunctiongenerate_filename
Generate a UUID-based filename with extension from content type. Args: content_type: MIME type to derive extension from. Returns:
lib/crewai-files/src/crewai_files/core/sources.py:111
↓ 8 callersFunctionget_artifact_store
Return the process-wide artifact store.
lib/crewai/src/crewai/artifacts.py:272
↓ 8 callersMethodget_context_window_size
(self)
lib/crewai/tests/llms/test_context_window.py:367
↓ 8 callersFunctionget_crew_context
Get the current crew context from OpenTelemetry baggage. Returns: CrewContext instance containing crew context information, or None if no
lib/crewai/src/crewai/utilities/crew/crew_context.py:10
↓ 8 callersFunctionget_current_parent_id
Get the current parent event ID from the stack.
lib/crewai/src/crewai/events/event_context.py:62
↓ 8 callersFunctionget_image_dimensions
Get the dimensions of an image file. Args: file: The image file to measure. Returns: Tuple of (width, height) in pixels, or
lib/crewai-files/src/crewai_files/processing/transformers.py:312
↓ 8 callersFunctionget_project_id
Return ``[tool.crewai].project_id`` if the project has one. Read-only and safe to call from library code: it never creates or modifies anythi
lib/crewai-core/src/crewai_core/project.py:302
↓ 8 callersMethodget_scope_info
Get information about a scope. Args: scope: The scope path. Returns: ScopeInfo with record count, categories
lib/crewai/src/crewai/memory/storage/backend.py:135
↓ 8 callersFunctionget_tool_call_events
Extract tool call streaming events from mock emit calls.
lib/crewai/tests/llms/test_tool_call_streaming.py:55
↓ 8 callersFunctionget_tool_names
Get the sanitized names of the tools. Args: tools: List of tools to get names from. Returns: Comma-separated string of sanit
lib/crewai/src/crewai/utilities/agent_utils.py:210
↓ 8 callersFunctionget_triggering_event_id
Get the ID of the event that triggered the current execution. Returns: The event_id of the triggering event, or None if not in a triggere
lib/crewai/src/crewai/events/event_context.py:100
↓ 8 callersMethodhandle_llm_stream_chunk
Handle LLM stream chunk event - display streaming text in a panel. Args: accumulated_text: All text accumulated so far.
lib/crewai/src/crewai/events/utils/console_formatter.py:583
↓ 8 callersMethodinterrupt
Fence exactly this reply; never cancel a job or abort a provider. Repeated valid requests are idempotent. Completed generated text is
lib/crewai/src/crewai/experimental/flow_turns.py:173
↓ 8 callersMethodis_expired
Check if this cached upload has expired.
lib/crewai-files/src/crewai_files/cache/upload_cache.py:48
↓ 8 callersFunctionload_skill
Load one skill input into Skill objects. Accepts a pre-loaded Skill object, skill search path, inline SKILL.md string, or '@org/name' registr
lib/crewai/src/crewai/skills/loader.py:154
↓ 8 callersMethodlogin
(self)
lib/cli/src/crewai_cli/tools/main.py:230
↓ 8 callersFunctionnormalize_scope_path
Normalize a scope path by removing double slashes and ensuring proper format. Args: path: The raw scope path (e.g. '/crew/MyCrewName//age
lib/crewai/src/crewai/memory/utils.py:39
↓ 8 callersFunctionopen_image
Open image bytes with Pillow, refusing any format outside the allowlist. Args: content: Raw image bytes. filename: Name of the fi
lib/crewai-files/src/crewai_files/processing/images.py:24
↓ 8 callersFunctionoutcome_of
(record, **thresholds)
lib/crewai/tests/test_jev_evaluation_runner.py:134
↓ 8 callersFunctionparse_registry_ref
Parse '@org/skill-name' into (org, name), ignoring any version pin. Retained for backwards compatibility. Use :func:`parse_skill_ref` to read
lib/crewai/src/crewai/skills/registry.py:95
↓ 8 callersMethodprepare
(self)
lib/crewai/tests/telemetry/test_conversation_spans.py:158
↓ 8 callersFunctionproject_config
(root: Path, definition: str | None = None)
lib/crewai-core/tests/test_agent_project_entrypoint.py:8
↓ 8 callersMethodpublish_tool
( self, handle: str, is_public: bool, version: str, description: str |
lib/crewai-core/src/crewai_core/plus_api.py:380
↓ 8 callersFunctionread_toml
(*args: Any, **kwargs: Any)
lib/cli/src/crewai_cli/run_crew.py:154
↓ 8 callersMethodrequest_human_input
Request human input during LLM hook execution. This method pauses live console updates, displays a prompt to the user, waits for thei
lib/crewai/src/crewai/hooks/llm_hooks.py:116
↓ 8 callersFunctionresolve_refs
Recursively resolve all local $refs in the given JSON Schema using $defs as the source. This is needed because Pydantic generates $ref-based sche
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:102
↓ 8 callersFunctionrestore_tool
(data: dict[str, object])
lib/crewai/tests/tools/test_deserialization_guard.py:29
↓ 8 callersMethodrun_agent
(self)
lib/crewai/tests/agents/test_lite_agent.py:763
↓ 8 callersFunctionsafe_tool_conversion
Safely extract and validate tool information. Combines extraction, validation, and logging for robust tool conversion. Args: tool: T
lib/crewai/src/crewai/llms/providers/utils/common.py:130
↓ 8 callersMethodsave
Save the data to the specified file using pickle. Args: data: The data to be saved to the file.
lib/crewai/src/crewai/utilities/file_handler.py:144
↓ 8 callersFunctionsave_placeholder
(token: str)
lib/crewai/tests/telemetry/test_placeholder_traces.py:194
↓ 8 callersMethodsearch
( self, query_embedding: list[float], scope_prefix: str | None = None, categor
lib/crewai/src/crewai/memory/storage/lancedb_storage.py:395
↓ 8 callersMethodset
Set a CLI configuration parameter.
lib/cli/src/crewai_cli/settings/main.py:77
↓ 8 callersFunctionset_execution_uuid
Bind an execution uuid for the current context. Use this from enterprise / hosts that already own the run id (e.g. Celery ``kickoff_id``). Ov
lib/crewai/src/crewai/execution.py:70
↓ 8 callersFunctionset_platform_integration_token
Set the platform integration token in the current context. Args: integration_token: The integration token to set.
lib/crewai/src/crewai/context.py:30
↓ 8 callersMethodset_tracer
(self)
lib/crewai/tests/cli/test_eval_consent.py:125
↓ 8 callersMethodsettle
Settle the active delivery once; adapters must validate feedback identity. completed is a whole-message adapter observation, not a speaker/wo
lib/crewai/src/crewai/experimental/flow_replies.py:368
↓ 8 callersFunctionshould_enable_tracing
Determine if tracing should be enabled. This is the single source of truth for tracing enablement. Priority order: 1. Explicit override (
lib/crewai/src/crewai/events/listeners/tracing/utils.py:145
↓ 8 callersMethodshutdown
(self)
lib/crewai-core/tests/test_runtime_env.py:38
↓ 8 callersMethodsleep
(self, seconds: float)
lib/cli/tests/authentication/test_login_usage.py:119
↓ 8 callersFunctionstrip_jsonc_comments
Strip JSONC comments and trailing commas while preserving string values.
lib/crewai/src/crewai/project/json_loader.py:193
↓ 8 callersFunctionstrip_unsupported_formats
Remove format annotations that OpenAI strict mode doesn't support. OpenAI only supports: date-time, date, time, duration. Other formats like
lib/crewai/src/crewai/utilities/pydantic_schema_utils.py:233
↓ 8 callersMethodsupports_function_calling
Check if the model supports function calling. Note: This method is only used by the litellm fallback path. Native providers override
lib/crewai/src/crewai/llm.py:2577
↓ 8 callersMethodto_config_dict
(self)
lib/crewai/tests/utilities/test_create_llm_like.py:40
↓ 8 callersMethodtools
Get all available agent tools
lib/crewai/src/crewai/tools/agent_tools/agent_tools.py:22
↓ 8 callersFunctionvalidate_crew_project
Validate JSON crew structure without kicking off the crew.
lib/crewai/src/crewai/project/json_loader.py:332
↓ 8 callersFunctionwrite_agent_data
(root, filename, **extra)
lib/crewai/tests/project/test_agent_project.py:122
↓ 8 callersFunctionwrite_temp_file
(content, suffix=".txt", encoding="utf-8")
lib/crewai-tools/tests/rag/test_text_loaders.py:14
↓ 7 callersMethod__get__
Support instance methods by implementing the descriptor protocol. Args: obj: The instance that the method is accessed through.
lib/crewai/src/crewai/project/wrappers.py:297
↓ 7 callersFunction_a_project_recorded
A crew project whose files predate its last traced run, recorded MINUTES_AGO.
lib/cli/tests/experimental/test_eval_crew.py:3565
↓ 7 callersFunction_agent
(llm: BaseLLM, **kwargs: Any)
lib/crewai/tests/agents/test_agent_inject_date.py:60
↓ 7 callersMethod_atomic_write_secure_file
Write content to a secure file via tempfile + os.replace.
lib/crewai-core/src/crewai_core/token_manager.py:263
↓ 7 callersMethod_build_route_catalog
( self, router_config: RouterConfig | None, )
lib/crewai/src/crewai/flow/conversational_mixin.py:1510
↓ 7 callersMethod_build_scope_filter
Build a Qdrant Filter for scope prefix matching.
lib/crewai/src/crewai/memory/storage/qdrant_edge_storage.py:245
↓ 7 callersFunction_cache
(tmp_path: Path)
lib/crewai/tests/skills/test_registry.py:59
↓ 7 callersMethod_call
(self, counts: dict[int, int], text: str, result: str = "x", **kw: Any)
lib/crewai/tests/tools/test_tool_failure.py:1945
↓ 7 callersFunction_cell
(value: object, limit: int)
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:64
↓ 7 callersMethod_check_pyproject
(self)
lib/cli/src/crewai_cli/deploy/validate.py:498
↓ 7 callersFunction_convert
( use_async: bool, result: str, output_pydantic: type[BaseModel] | None, output_json: type[Bas
lib/crewai/tests/utilities/test_converter.py:1074
↓ 7 callersFunction_counted
(n: int, noun: str)
lib/crewai-files/src/crewai_files/spreadsheets/answers.py:81
↓ 7 callersMethod_create_file
(self, directory, filename, content="test content")
lib/crewai-tools/tests/rag/test_directory_loader.py:17
↓ 7 callersFunction_create_skill_dir
Create a skill directory containing a minimal SKILL.md.
lib/crewai/tests/events/test_skill_usage_events.py:23
← previousnext →701–800 of 20,483, ranked by callers