Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
916d2c0
feat(Chat): Add .start_message_stream(), .end_message_stream(), and .…
cpsievert Mar 12, 2025
4c32a0d
Go back to a more minimal change
cpsievert Mar 12, 2025
81a99d2
Cleanup
cpsievert Mar 12, 2025
08c104a
Polish API and clarify behavior
cpsievert Mar 12, 2025
edc30f0
Fix test
cpsievert Mar 12, 2025
28f148f
Merge branch 'main' into chat-inject-stream
cpsievert Mar 12, 2025
648d9cc
wip first pass at properly nested streams
cpsievert Mar 13, 2025
3786b79
Support nested streams and simplify logic
cpsievert Mar 13, 2025
260f902
.append_message() should also queue when a stream is active
cpsievert Mar 14, 2025
bd6d40f
Fix/simplify transform logic
cpsievert Mar 14, 2025
0c2e9ec
Reduce diff
cpsievert Mar 14, 2025
0cb99aa
Merge branch 'main' into chat-inject-stream
cpsievert Mar 14, 2025
a05b447
Update test
cpsievert Mar 14, 2025
bb171f7
Yield a MessageStream() instance with a .append() and .restore() method
cpsievert Mar 14, 2025
5e822fc
Cut public .append_message_chunk() method; rename context manager method
cpsievert Mar 17, 2025
24f05e5
Improve docstring
cpsievert Mar 17, 2025
4995ade
More complete playwright test
cpsievert Mar 17, 2025
3c0ca35
Merge branch 'main' into chat-inject-stream
cpsievert Mar 17, 2025
7ac2ba1
Rename append_message_context() -> message_stream_context()
cpsievert Mar 18, 2025
f8ff425
Rename .restore() -> .clear()
cpsievert Mar 19, 2025
f46aaf8
Merge branch 'main' into chat-inject-stream
cpsievert Mar 19, 2025
0ffdf21
Update changelog
cpsievert Mar 19, 2025
35837bc
Merge branch 'main' into chat-inject-stream
cpsievert Mar 19, 2025
c9fad38
Drop .clear() method in favor of replace
cpsievert Mar 20, 2025
bd5e610
Rename test files
cpsievert Mar 20, 2025
2a6d934
Include the operation when queueing message chunks
cpsievert Mar 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* 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)

* 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
(2) Overwrite/replace streaming content. (#1906)

### Changes

* 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)
Expand Down
Loading
Loading