Skip to contents

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.