agents.document_modifiers.base.utilsΒΆ
Utility functions for document processing.
FunctionsΒΆ
|
Convert a list of Documents to a list of strings. |
|
Normalize inputs to strings. |
|
Convert a list of strings to a list of Documents. |
Module ContentsΒΆ
- agents.document_modifiers.base.utils.documents_to_strings(documents)ΒΆ
Convert a list of Documents to a list of strings.
- agents.document_modifiers.base.utils.normalize_contents(contents)ΒΆ
Normalize inputs to strings.
Accepts: - List[str] - List[Document] - Mixed list of strings and documents - Single string or Document