Skip to content

Commit fa7dfa2

Browse files
committed
fix: Don't throw if the tool result can't be turned into a string
It's not our job, ellmer will do the throwing, this path shouldn't fail
1 parent f54635e commit fa7dfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg-r/R/contents_shinychat.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ tool_string <- function(x) {
347347
} else if (is.character(x@value)) {
348348
paste(x@value, collapse = "\n")
349349
} else {
350-
jsonlite::toJSON(x@value, auto_unbox = TRUE, pretty = 2)
350+
jsonlite::toJSON(x@value, auto_unbox = TRUE, pretty = 2, force = TRUE)
351351
}
352352
}
353353

0 commit comments

Comments
 (0)