# Create a simple task file
tmp_task_file <- tempfile(fileext = ".md")
cat(file = tmp_task_file, '---
client: anthropic/claude-sonnet-4-6
tools: [docs, files]
---
Analyze the {{ package_name }} package and create a summary.
')
# Task with template interpolation
btw_task(tmp_task_file, package_name = "dplyr", mode = "tool")
# Include additional context
btw_task(
tmp_task_file,
package_name = "ggplot2",
mtcars, # Additional context
mode = "tool"
)
Run the code above in your browser using DataLab