print.llm_config: Print an LLM configuration with the API key masked

View source: R/LLMR.R

print.llm_configR Documentation

Print an LLM configuration with the API key masked

Description

Configurations never print their key: a literal key shows as ⁠<llmr_secret: literal>⁠ and an environment reference as ⁠<llmr_secret: env:VARNAME>⁠, so configs are safe to print in scripts, logs, and rendered documents.

Usage

## S3 method for class 'llm_config'
print(x, ...)

## S3 method for class 'llm_config'
format(x, ...)

Arguments

x

An llm_config object.

...

Ignored.

Value

x invisibly (for print); a character vector (for format).


LLMR documentation built on July 11, 2026, 1:06 a.m.