@langchain/core
Version:
Core LangChain.js abstractions and schemas
17 lines (16 loc) • 438 B
JavaScript
import { Runnable } from "../../runnables/base.js";
// src/utils/testing/runnables.ts
var FakeRunnable = class extends Runnable {
lc_namespace = ["tests", "fake"];
returnOptions;
constructor(fields) {
super(fields);
this.returnOptions = fields.returnOptions;
}
async invoke(input, options) {
if (this.returnOptions) return options ?? {};
return { input };
}
};
export { FakeRunnable };
//# sourceMappingURL=runnables.js.map