langchain/libs
Vadym Barda e8d77002ea
core: add RemoveMessage (#23636)
This change adds a new message type `RemoveMessage`. This will enable
`langgraph` users to manually modify graph state (or have the graph
nodes modify the state) to remove messages by `id`

Examples:

* allow users to delete messages from state by calling

```python
graph.update_state(config, values=[RemoveMessage(id=state.values[-1].id)])
```

* allow nodes to delete messages

```python
graph.add_node("delete_messages", lambda state: [RemoveMessage(id=state[-1].id)])
```
2024-06-28 14:40:02 -07:00
..
cli Add a conversation memory that combines a (optionally persistent) vectorstore history with a token buffer (#22155) 2024-06-25 20:17:10 -07:00
community core: add RemoveMessage (#23636) 2024-06-28 14:40:02 -07:00
core core: add RemoveMessage (#23636) 2024-06-28 14:40:02 -07:00
experimental experimental: release 0.0.62 (#23507) 2024-06-25 22:01:35 +00:00
langchain langchain[patch]: deprecate ConversationChain (#23504) 2024-06-27 16:32:44 -04:00
partners openai[patch]: release 0.1.12 (#23641) 2024-06-28 19:51:16 +00:00
standard-tests standard-tests: add test for structured output (#23631) 2024-06-28 15:01:40 -04:00
text-splitters text-splitters: release 0.2.2 (#23508) 2024-06-25 18:26:05 -04:00