langchain
Version:
Typescript bindings for langchain
11 lines (10 loc) • 500 B
JavaScript
// 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 && "_getModelInstance" in model && typeof model._getModelInstance === "function";
}
exports.isBaseChatModel = isBaseChatModel;
exports.isConfigurableModel = isConfigurableModel;
//# sourceMappingURL=model.cjs.map