powered by
Run multiple queries simultaneously
goose_batch(queries, max_workers = 4, progress = TRUE, cache = TRUE)
List of responses
Vector or list of queries
Maximum number of parallel workers
Show progress bar
Use caching for responses
if (FALSE) { queries <- c( "Explain R functions", "Write a data analysis script", "Create a visualization" ) results <- goose_batch(queries, max_workers = 3) }
Run the code above in your browser using DataLab