Class: PromptEngineError
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:619
Custom error class for all errors originating from the PromptEngine. This allows for specific catching and handling of prompt construction failures.
Extends
Error
Constructors
Constructor
new PromptEngineError(
message,code,component?,details?):PromptEngineError
Defined in: packages/agentos/src/core/llm/IPromptEngine.ts:653
Creates an instance of PromptEngineError.
Parameters
message
string
A human-readable description of the error.
code
string
A specific error code (e.g., 'TEMPLATE_NOT_FOUND').
component?
string
The engine component where the error originated.
details?
unknown
Additional context or the underlying error.