Retrieve and Format R Function Documentation for LLM Consumption
retrieve_docs(
chat_obj,
prompt,
schema = package_function_schema(),
schema_strict = TRUE,
skip_undocumented = TRUE,
use_llm_fallback = FALSE,
example_count = 2,
warn_skipped = TRUE
)Formatted documentation string
LLM chat client object
Task description
JSON schema (default: package_function_schema())
Strict schema validation
Skip functions without docs
Use LLM to generate examples
Number of examples per function
Show warning for skipped functions