Converts a structured R list into a readable, bullet-point representation suitable for LLM prompts.

.format_list_for_ai(x, indent = 0, bullet = "- ")

Arguments

x

A named list.

indent

Indentation level (used internally for recursion).

bullet

Prefix for top-level entries.

Value

A single character string.