mytypes
Entity
¶
Bases: str
, Enum
Enum for the different types of entities that can respond to the current message.
DocMetaData
¶
Bases: BaseModel
Metadata for a document.
dict_bool_int(*args, **kwargs)
¶
Special dict method to convert bool fields to int, to appease some downstream libraries, e.g. Chroma which complains about bool fields in metadata.
Source code in langroid/mytypes.py
Document
¶
Bases: BaseModel
Interface for interacting with a document.