agsamantha/node_modules/langchain/dist/schema/query_constructor.js

29 lines
835 B
JavaScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
/**
* A simple data structure that holds information about an attribute. It
* is typically used to provide metadata about attributes in other classes
* or data structures within the LangChain framework.
* @deprecated
*/
export class AttributeInfo {
constructor(name, type, description) {
Object.defineProperty(this, "name", {
enumerable: true,
configurable: true,
writable: true,
value: name
});
Object.defineProperty(this, "type", {
enumerable: true,
configurable: true,
writable: true,
value: type
});
Object.defineProperty(this, "description", {
enumerable: true,
configurable: true,
writable: true,
value: description
});
}
}