langchain
Version:
Typescript bindings for langchain
11 lines (10 loc) • 474 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 && "_getModelInstance" in model && typeof model._getModelInstance === "function";
}
//#endregion
export { isBaseChatModel, isConfigurableModel };
//# sourceMappingURL=model.js.map