You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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.
6 months ago
..
__init__.py core[patch]: Update `messages` namespace to fix API reference docs (#19161) 6 months ago
ai.py core[minor]: generation info on msg (#18592) 6 months ago
base.py core[minor]: generation info on msg (#18592) 6 months ago
chat.py core[minor]: generation info on msg (#18592) 6 months ago
function.py core[minor]: generation info on msg (#18592) 6 months ago
human.py core[patch]: docstring update (#16813) 8 months ago
system.py core[patch]: docstring update (#16813) 8 months ago
tool.py core[minor]: generation info on msg (#18592) 6 months ago
utils.py core[patch]: Update `messages` namespace to fix API reference docs (#19161) 6 months ago