diff --git a/libs/arcade-core/arcade_core/errors.py b/libs/arcade-core/arcade_core/errors.py index a9fed151..707bf880 100644 --- a/libs/arcade-core/arcade_core/errors.py +++ b/libs/arcade-core/arcade_core/errors.py @@ -1,5 +1,4 @@ import traceback -import warnings from abc import ABC, abstractmethod from enum import Enum from typing import Any @@ -230,15 +229,10 @@ class ToolOutputError(ToolSerializationError): # 2. ------ tool-body errors ------ class ToolExecutionError(ToolRuntimeError): """ - DEPRECATED: Raised when there is an error executing a tool. + Raised when an error occurs during the execution of a tool's body. - ToolExecutionError is deprecated and will be removed in a future major version. - Use more specific error types instead: - - RetryableToolError for retryable errors - - ContextRequiredToolError for errors requiring user context - - FatalToolError for fatal/unexpected errors - - UpstreamError for upstream service errors - - UpstreamRateLimitError for upstream rate limiting errors + This is the base class for tool execution errors and should be raised when catching + exceptions within a tool to provide meaningful information to the tool caller. """ def __init__( @@ -248,14 +242,6 @@ class ToolExecutionError(ToolRuntimeError): *, extra: dict[str, Any] | None = None, ): - if type(self) is ToolExecutionError: - warnings.warn( - "ToolExecutionError is deprecated and will be removed in a future major version. " - "Use more specific error types instead: RetryableToolError, ContextRequiredToolError, " - "FatalToolError, UpstreamError, or UpstreamRateLimitError.", - DeprecationWarning, - stacklevel=2, - ) super().__init__(message, developer_message=developer_message, extra=extra) diff --git a/libs/arcade-core/pyproject.toml b/libs/arcade-core/pyproject.toml index 867ea6e8..3227bebd 100644 --- a/libs/arcade-core/pyproject.toml +++ b/libs/arcade-core/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "arcade-core" -version = "4.2.2" +version = "4.2.3" description = "Arcade Core - Core library for Arcade platform" readme = "README.md" license = { text = "MIT" }