langchain
Version:
Typescript bindings for langchain
13 lines (11 loc) • 499 B
JavaScript
//#region src/agents/model.ts
function isBaseChatModel(model) {
return "invoke" in model && typeof model.invoke === "function" && "_streamResponseChunks" in model;
}
function isConfigurableModel(model) {
return typeof model === "object" && model != null && "_queuedMethodOperations" in model && "_model" in model && typeof model._model === "function";
}
//#endregion
exports.isBaseChatModel = isBaseChatModel;
exports.isConfigurableModel = isConfigurableModel;
//# sourceMappingURL=model.cjs.map