LLMR0.6.3 package

Interface for Large Language Model APIs in R

bind_tools

Bind tools to a config (provider-agnostic)

build_factorial_experiments

Build Factorial Experiment Design

cache_llm_call

Cache LLM API Calls

call_llm_broadcast

Parallel API calls: Fixed Config, Multiple Messages

call_llm_compare

Parallel API calls: Multiple Configs, Fixed Message

call_llm_par_structured

Parallel experiments with structured parsing

call_llm_par

Parallel LLM Processing with Tibble-Based Experiments (Core Engine)

call_llm_robust

Robustly Call LLM API (Simple Retry)

call_llm_sweep

Parallel API calls: Parameter Sweep - Vary One Parameter, Fixed Messag...

call_llm

Call an LLM (chat/completions or embeddings) with optional multimodal ...

disable_structured_output

Disable Structured Output (clean provider toggles)

enable_structured_output

Enable Structured Output (Provider-Agnostic)

get_batched_embeddings

Generate Embeddings in Batches

llm_chat_session

Chat Session Object and Methods

llm_config

Create an LLM configuration (provider-agnostic)

llm_fn_structured

Vectorized structured-output LLM

llm_fn

Apply an LLM prompt over vectors/data frames

llm_mutate_structured

Data-frame mutate with structured output

llm_mutate

Mutate a data frame with LLM output

llm_parse_structured_col

Parse structured fields from a column into typed vectors

llm_parse_structured

Parse structured output emitted by an LLM

llm_validate_structured_col

Validate structured JSON objects against a JSON Schema (locally)

llmr_response

LLMR Response Object

log_llm_error

Log LLMR Errors

parse_embeddings

Parse Embedding Response into a Numeric Matrix

reset_llm_parallel

Reset Parallel Environment

setup_llm_parallel

Setup Parallel Environment for LLM Processing

Provides a unified interface to large language models across multiple providers. Supports text generation, structured output with optional JSON Schema validation, and embeddings. Includes tidyverse-friendly helpers, chat session, consistent error handling, and parallel batch tools.

  • Maintainer: Ali Sanaei
  • License: MIT + file LICENSE
  • Last published: 2025-10-11