Class ToolResultSerializationException

All Implemented Interfaces:
Serializable

public class ToolResultSerializationException extends ToolException
Tool produced a result that the framework could not marshal back to the caller — JSON encoding failed, return-type adapter missing, recursive object graph. Non-retryable: the same return value will keep failing.
Since:
0.5.0 (issue #88)
See Also:
  • Constructor Details

    • ToolResultSerializationException

      public ToolResultSerializationException(String toolName, String returnType, Throwable cause)
  • Method Details

    • getReturnType

      public String getReturnType()
    • getErrorCode

      public String getErrorCode()
      Description copied from class: TnsAIException
      Gets the error code for this exception type. Format: TNSAI-XXX where XXX is derived from class name.
      Overrides:
      getErrorCode in class TnsAIException