BamlClientFinishReasonError
The BamlClientFinishReasonError
class represents an error that occurs when an LLM terminates with a disallowed finish reason.
Type Definition
Type Definition
Properties
type
Literal type identifier for the error class.
message
Error message describing the specific finish reason that caused the termination.
prompt
The original prompt sent to the LLM.
raw_output
The partial output received from the LLM before termination.
Type Guards
The error can be identified using TypeScript’s instanceof
operator:
Type Check