Interface for Large Language Model APIs in R


[Up] [Top]

Documentation for package ‘LLMR’ version 0.6.0

Help Pages

as.character.llmr_response LLMR Response Object
as.data.frame.llm_chat_session Chat Session Object and Methods
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 Call an LLM (chat/completions or embeddings) with optional multimodal input
call_llm_broadcast Parallel API calls: Fixed Config, Multiple Messages
call_llm_compare Parallel API calls: Multiple Configs, Fixed Message
call_llm_par Parallel LLM Processing with Tibble-Based Experiments (Core Engine)
call_llm_par_structured Parallel experiments with structured parsing
call_llm_robust Robustly Call LLM API (Simple Retry)
call_llm_sweep Parallel API calls: Parameter Sweep - Vary One Parameter, Fixed Message
chat_session Chat Session Object and Methods
disable_structured_output Disable Structured Output (clean provider toggles)
enable_structured_output Enable Structured Output (Provider-Agnostic)
finish_reason LLMR Response Object
get_batched_embeddings Generate Embeddings in Batches
head.llm_chat_session Chat Session Object and Methods
is_truncated LLMR Response Object
llmr_response LLMR Response Object
llm_api_key_env Declare an API key sourced from an environment variable
llm_chat_session Chat Session Object and Methods
llm_config Create an LLM configuration (provider-agnostic)
llm_fn Apply an LLM prompt over vectors/data frames
llm_fn_structured Vectorized structured-output LLM
llm_mutate Mutate a data frame with LLM output
llm_mutate_structured Data-frame mutate with structured output
llm_parse_structured Parse structured output emitted by an LLM
llm_parse_structured_col Parse structured fields from a column into typed vectors
llm_validate_structured_col Validate structured JSON objects against a JSON Schema (locally)
log_llm_error Log LLMR Errors
parse_embeddings Parse Embedding Response into a Numeric Matrix
print.llmr_response LLMR Response Object
print.llm_chat_session Chat Session Object and Methods
reset_llm_parallel Reset Parallel Environment
setup_llm_parallel Setup Parallel Environment for LLM Processing
summary.llm_chat_session Chat Session Object and Methods
tail.llm_chat_session Chat Session Object and Methods
tokens LLMR Response Object