Skip to content

fix(match_tools): Match tools in tool results as well - #693

Merged
gadenbuie merged 6 commits into
mainfrom
fix/match-tool-results
Aug 1, 2025
Merged

gadenbuie merged 6 commits into
mainfrom
fix/match-tool-results

Conversation

@gadenbuie

Copy link
Copy Markdown
Collaborator

Now that contents_replay() relies on match_tools() to resolve tool definitions, we also need to resolve tools in the @request@tool property of results.

Without this, the tool request is properly restored through contents_replay(), but the result will be missing the tool defintion. This affects shinychat because it only looks at the tool result when restoring a chat from bookmarked state (because the tool call is resolved we don't need to show the request).

I have a fix in shinychat, but it'd be best for match_tools(), at least when called through contents_replay() to return the full tool result.

@gadenbuie
gadenbuie requested a review from hadley July 31, 2025 20:39
Comment thread R/chat-tools.R Outdated
Comment thread tests/testthat/test-content-replay.R Outdated
@gadenbuie
gadenbuie merged commit 407eb64 into main Aug 1, 2025
@gadenbuie
gadenbuie deleted the fix/match-tool-results branch August 1, 2025 15:59
atheriel pushed a commit to robert-norberg/ellmer that referenced this pull request Aug 20, 2025
This commit updates default_snowflake_credentials() to handle Privatelink
account identifiers.

It also fixes tidyverse#693.

Signed-off-by: Aaron Jacobs <aaron.jacobs@posit.co>
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.

2 participants