A provider that wraps a user-supplied
function(prompt, schema, ...) -> list | character. This is the
offline end-to-end seam and the escape hatch for backends the built-in HTTP
providers do not cover. It uses NO network and needs neither httr2
nor jsonlite.
The user function is run inside tryCatch: if it errors, the provider
degrades to exactly one warning() plus an `es_provider_response` with
text = NA_character_ – it never crashes the session.
See also
Other eventstudy-advisor:
AnthropicProvider,
OpenAICompatProvider,
ProviderBase,
es_advise(),
es_diagnostics(),
es_kb(),
flag_robustness(),
provider(),
recommend_stat()
Super class
ProviderBase -> CustomProvider
Methods
CustomProvider$complete()
Run the wrapped user function and wrap its result in an `es_provider_response`. A throwing function degrades to one warning + NA.
