Skip to contents

For packages, creates an additional test file "tests/testthat/test-bot.R" to bring test coverage to 100\

Usage

testbot(client = NULL, retries = 2L)

Arguments

client

the default NULL uses ellmer::chat_anthropic(), but you may pass an alternative such as ellmer::chat_openai().

retries

integer number of times to retry if an error occurs mid-way. This may happen due to timeout or for other stochastic reasons.

Value

An ellmer 'Chat' object.

Details

Call this function from the top working directory of your package.