UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

26 lines (25 loc) 587 B
import type { task_id } from '../../types/string_token'; 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; };