langchain
Version:
Typescript bindings for langchain
10 lines (9 loc) • 454 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";
}
export { isBaseChatModel, isConfigurableModel };
//# sourceMappingURL=model.js.map