@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
26 lines (25 loc) • 586 B
TypeScript
import type { task_id } from '../../types/typeAliases';
import type { ALL_ERRORS } from '../0-index';
/**
* Represents a serialized error or custom Promptbook error
*
* Note: [🚉] This is fully serializable as JSON
*/
export type ErrorJson = {
/**
* The unique identifier of the error
*/
readonly id?: task_id;
/**
* The type of the error
*/
readonly name: keyof typeof ALL_ERRORS;
/**
* The message of the error
*/
readonly message: string;
/**
* The stack trace of the error
*/
readonly stack?: string;
};