langchain/libs/core/langchain_core/messages
Leonid Ganeline 8609afbd10
core[patch]: Update messages namespace to fix API reference docs (#19161)
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.
2024-03-20 09:25:09 -04:00
..
__init__.py core[patch]: Update messages namespace to fix API reference docs (#19161) 2024-03-20 09:25:09 -04:00
ai.py core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
base.py core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
chat.py core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
function.py core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
human.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
system.py core[patch]: docstring update (#16813) 2024-02-09 12:47:41 -08:00
tool.py core[minor]: generation info on msg (#18592) 2024-03-12 04:43:17 +00:00
utils.py core[patch]: Update messages namespace to fix API reference docs (#19161) 2024-03-20 09:25:09 -04:00