llmNodeResolverFor function

LlmNodeResolver llmNodeResolverFor({
  1. String? nodePath,
  2. LlmNodeHost host = const LlmProcessNodeHost(),
  3. int floor = llmRequiredNodeMajorVersion,
})

The resolver a desktop root hands its standalone transport: a search of this machine, or the one executable ai.nodePath names.

A resolver rather than a resolution because the settings are read after the transports are built, and because a search that found nothing has to be able to run again after the user installs Node and presses Retry.

Implementation

LlmNodeResolver llmNodeResolverFor({
  String? nodePath,
  LlmNodeHost host = const LlmProcessNodeHost(),
  int floor = llmRequiredNodeMajorVersion,
}) =>
    () => llmDiscoverNode(host: host, nodePath: nodePath, floor: floor);