Infers a category from the domain name with a Claude model through llm_cat().
No page content is fetched. The answer reflects the provider's knowledge and the
domain name, not a verified observation of the current website.
claude_cat(
domains,
api_key = NULL,
categories = NULL,
model = "claude-haiku-5-5",
mode = c("batch", "parallel", "sequential"),
state_file = NULL,
max_active = 10,
rpm = 500,
wait = TRUE,
base_url = NULL
)character vector of domain names or URLs
Anthropic API key. If not provided, looks for the
ANTHROPIC_API_KEY or CLAUDE_API_KEY environment variable
vector of categories to classify into. If NULL, uses
web_categories()
Claude model to use (default: "claude-haiku-5-5" for cost efficiency)
one of "batch" (default), "parallel" or "sequential"
batch mode only: path of a .json file that records the job.
NULL derives one from the provider, model and prompts under the user cache
directory. Not allowed in the other modes.
maximum simultaneous requests in parallel mode
requests per minute allowed in parallel mode
batch mode only: wait for the job to complete (TRUE) or return at once.
Rows whose results are not yet available carry error_code = "batch_pending" and
are retryable; call again with the same state_file to collect them.
API endpoint; NULL uses Anthropic's.
A tibble following classification_results, including provider failures and model identity.
llm_cat() for any ellmer provider and the parallel and batch modes.