123456789101112131415161718192021222324252627 |
- class LLMNodeError(ValueError):
- """Base class for LLM Node errors."""
- class VariableNotFoundError(LLMNodeError):
- """Raised when a required variable is not found."""
- class InvalidContextStructureError(LLMNodeError):
- """Raised when the context structure is invalid."""
- class InvalidVariableTypeError(LLMNodeError):
- """Raised when the variable type is invalid."""
- class ModelNotExistError(LLMNodeError):
- """Raised when the specified model does not exist."""
- class LLMModeRequiredError(LLMNodeError):
- """Raised when LLM mode is required but not provided."""
- class NoPromptFoundError(LLMNodeError):
- """Raised when no prompt is found in the LLM configuration."""
|