llm_add_request_hash: Append the audit-log request hash to a parallel-results frame

View source: R/LLM_parallel_utils.R

llm_add_request_hashR Documentation

Append the audit-log request hash to a parallel-results frame

Description

Adds a request_hash column to a data frame that still carries the config and messages list-columns (such as the result of call_llm_par()). The hash is the same key llm_request_hash() produces, so the parallel path can be joined to the audit log written by llm_log_enable(). Equivalent to calling call_llm_par(..., .request_hash = TRUE) after the fact.

Usage

llm_add_request_hash(df)

Arguments

df

A data frame with config and messages columns.

Value

df with an added request_hash character column.

See Also

call_llm_par(), llm_request_hash().


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