if (FALSE) {
schema <- list(
type = "ARRAY",
items = list(
type = "OBJECT",
properties = list(
recipeName = list(type = "STRING"),
ingredients = list(
type = "ARRAY",
items = list(type = "STRING")
)
),
propertyOrdering = c("recipeName", "ingredients")
)
)
gemini_structured(
"List a few popular cookie recipes, and include the amounts of ingredients.",
schema
)
}
Run the code above in your browser using DataLab