Learn R Programming

gooseR (version 0.1.2)

goose_map: Map Async Function Over Data

Description

Apply an AI query to each element of a dataset

Usage

goose_map(data, query_template, max_workers = 4)

Value

List of AI responses

Arguments

data

Vector or list of data elements

query_template

Query template with {x} placeholder

max_workers

Maximum parallel workers

Examples

Run this code
if (FALSE) {
# Analyze multiple code snippets
code_snippets <- c("function(x) x^2", "for(i in 1:10) print(i)")
reviews <- goose_map(code_snippets, "Review this R code: {x}")
}

Run the code above in your browser using DataLab