mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
8609afbd10
Classes and functions defined in __init__.py are not parsed into the API Reference. For example: - libs/core/langchain_core/messages/__init__.py : AnyMessage, MessageLikeRepresentation, get_buffer_string(), messages_from_dict(), ... Opinionated: __init__.py is not a typical place to define artifacts. Moved artifacts from __init__ into utils.py. Added `MessageLikeRepresentation` to __all__ since it is used outside of `messages`, for example, in `libs/core/langchain_core/language_models/base.py` Added `_message_from_dict` to __all__ since it is used outside of `messages`(???) I would add `message_from_dict` (without underscore) as an alias. Please, advise. |
||
---|---|---|
.. | ||
__init__.py | ||
ai.py | ||
base.py | ||
chat.py | ||
function.py | ||
human.py | ||
system.py | ||
tool.py | ||
utils.py |