Obtain disclosure consent for one generation before any prompt content leaves
the runtime. options.signal aborts when the generation settles while the
prompt is still open.
Optionaloptions: LlmPromptOptionsRevalidate a connection by host id; null when it no longer exists.
Perform the provider request. Throw LlmServiceError for typed failures; anything else becomes provider-error.
Ask the user to choose a connection meeting the requirements. Return null
when the user declines (user-cancelled). Throw
new LlmServiceError('unsupported', …) when no compatible connection exists.
Optionaloptions: LlmPromptOptionsOptionalsubscribeNotify the service when connections, credentials or the account change so every handle expires.
Host adapter behind the NAP-LLM service.
Example