UNPKG

@langchain/langgraph-sdk

Version:

Client library for interacting with the LangGraph API

14 lines (13 loc) • 358 B
//#region src/ui/errors.ts var StreamError = class extends Error { constructor(data) { super(data.message); this.name = data.name ?? data.error ?? "StreamError"; } static isStructuredError(error) { return typeof error === "object" && error != null && "message" in error; } }; //#endregion export { StreamError }; //# sourceMappingURL=errors.js.map