Skip to content

Commit 7db7135

Browse files
authored
feat(Chat): Add .message_stream_context() (posit-dev#1906)
1 parent 9d56dd8 commit 7db7135

File tree

5 files changed

+447
-64
lines changed

5 files changed

+447
-64
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
* Both `ui.Chat()` and `ui.MarkdownStream()` now support arbirary Shiny UI elements inside of messages. This allows for gathering input from the user (e.g., `ui.input_select()`), displaying of rich output (e.g., `render.DataGrid()`), and more. (#1868)
1313

14+
* Added a new `.message_stream_context()` method to `ui.Chat()`. This context manager is a useful alternative to `.append_message_stream()` when you want to: (1) Nest a stream within another and/or
15+
(2) Overwrite/replace streaming content. (#1906)
16+
1417
### Changes
1518

1619
* Express mode's `app_opts()` requires all arguments to be keyword-only. If you are using positional arguments, you will need to update your code. (#1895)

0 commit comments

Comments
 (0)