@langchain/langgraph-sdk
Version:
Client library for interacting with the LangGraph API
14 lines (13 loc) • 370 B
JavaScript
//#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
exports.StreamError = StreamError;
//# sourceMappingURL=errors.cjs.map