Skip to content

feat(ContentToolResult): error can be a string or an error condition - #421

Merged
gadenbuie merged 5 commits into
tidyverse:mainfrom
gadenbuie:feat/366-include-error-tool-result
Apr 3, 2025
Merged

gadenbuie merged 5 commits into
tidyverse:mainfrom
gadenbuie:feat/366-include-error-tool-result

Conversation

@gadenbuie

Copy link
Copy Markdown
Collaborator

First half of #366

This PR updates ContentToolResult@error to take an error condition or a string. invoke_tool() (and the async version) now include the full error condition from the failing tool call.

@gadenbuie
gadenbuie marked this pull request as ready for review April 3, 2025 15:12
@gadenbuie
gadenbuie requested a review from hadley April 3, 2025 15:12
Comment thread R/content.R Outdated
@gadenbuie
gadenbuie merged commit 2958122 into tidyverse:main Apr 3, 2025
@gadenbuie
gadenbuie deleted the feat/366-include-error-tool-result branch April 3, 2025 18:01
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