Skip to content

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Sep 2, 2025

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

pip install -U chatlas

Also note that the manual testing apps added in #52 (under pkg-r/tests/testthat/apps) have been ported over (under pkg-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

@cpsievert cpsievert requested a review from Copilot September 2, 2025 21:34

This comment was marked as resolved.

@cpsievert cpsievert force-pushed the feat/python-tool-displays-v2 branch from 39c3369 to 174ff3f Compare September 2, 2025 21:57
@cpsievert cpsievert marked this pull request as ready for review September 2, 2025 22:11
@cpsievert cpsievert requested a review from gadenbuie September 2, 2025 22:11
@cpsievert cpsievert force-pushed the feat/python-tool-displays-v2 branch from d87e3a0 to d5fdb96 Compare September 3, 2025 16:27
Copy link
Collaborator

@gadenbuie gadenbuie left a 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.

@cpsievert cpsievert merged commit 1b0e18a into main Sep 4, 2025
5 checks passed
@cpsievert cpsievert deleted the feat/python-tool-displays-v2 branch September 4, 2025 15:21
cpsievert added a commit that referenced this pull request Sep 8, 2025
cpsievert added a commit that referenced this pull request Sep 8, 2025
gadenbuie added a commit that referenced this pull request Sep 9, 2025
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants