Another batch of renaming Record to Data

This commit is contained in:
ogabrielluiz 2024-06-12 18:18:03 -03:00
commit 16089ea5b2
61 changed files with 283 additions and 441 deletions

View file

@ -1,8 +1,9 @@
from langchain_core.documents import Document
from langflow.schema import Data
def test_record_initialization():
def test_data_initialization():
record = Data(text_key="msg", data={"msg": "Hello, World!", "extra": "value"})
assert record.msg == "Hello, World!"
assert record.extra == "value"