Public declaration syntax from forge-go/embed/document.go Original source SHA-256: 7f9733627461629062d7952cfa871afefb507da3168fdc36e3784dff15a9d83f Function bodies and constant values are omitted. This is not the complete implementation. Source line 15 type Document struct Source line 28 func NewDocument(content string, metadata json.RawMessage) Document Source line 41 type DocumentLoader interface Source line 52 type TextLoader struct Source line 61 func NewTextLoader(text string, metadata json.RawMessage) *TextLoader Source line 71 func (l *TextLoader) Load(_ context.Context) ([]Document, error) Source line 84 type JsonLoader struct Source line 98 func NewJsonLoader(data, contentField string) *JsonLoader Source line 111 func (l *JsonLoader) Load(_ context.Context) ([]Document, error)