-
Notifications
You must be signed in to change notification settings - Fork 19
feat(pkg-py): Python tool displays v2 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
39c3369 to
174ff3f
Compare
d87e3a0 to
d5fdb96
Compare
gadenbuie
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I didn't read it in great detail, but I read through the changes and everything is very nicely organized and clean. I really like the way that ToolResultComponent and ToolResultDisplay are set up, it composes nicely.
I'm okay with merging this; I'll try to update Python querychat soon to use these features, which will give me a chance to try them out. We can follow up then with any feedback.
…tml display (#127) * Follow up to #107: pick up tool annotation icon and never escape icon or html display * chore: make py-format --------- Co-authored-by: Garrick Aden-Buie <[email protected]>
This PR ports the new, more customizable, tool calling displays (already added to R in #52) over to Python.
In order to make use of it, you'll need the latest chatlas (if you don't have the latest, you'll get the legacy displays):
Also note that the manual testing apps added in #52 (under
pkg-r/tests/testthat/apps) have been ported over (underpkg-py/tests/playwright/tools) and used for testing. It'd be great to automate some tests here, but @gadenbuie has requested that we wait post-conf (and focus instead on shipping other needed features)TODO
Review, merge, and release a fix for bookmarking custom displays fix: makeContentToolResult'sextraaware of shinychat'sdisplayfeature (for bookmarking) chatlas#167