ProviderRegistryReport

org.llm4s.llmconnect.spi.ProviderRegistryReport
See theProviderRegistryReport companion object
final case class ProviderRegistryReport(discovered: Boolean, modules: Seq[ProviderModuleReport], failures: Seq[ProviderDiscoveryFailure])

How a ProviderRegistry came to hold what it holds.

This is the debuggability half of classpath discovery. "Provider openai is not registered" is unusable on its own; the same message with "discovery scanned 0 modules" says the services files did not survive shading, and with "1 failed: ..." says which jar is broken.

Value parameters

discovered

whether ServiceLoader discovery ran at all. A registry built by ProviderRegistry.of reports false, which is different from discovery running and finding nothing.

failures

the service entries it could not use.

modules

the modules discovery loaded, in the order it saw them.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def describe: String

A multi-line description of every module and failure, for logs and diagnostics.

A multi-line description of every module and failure, for logs and diagnostics.

Attributes

def hasFailures: Boolean

True when any service entry failed to load.

True when any service entry failed to load.

Attributes

def summary: String

One line describing the scan, suitable for appending to an error message.

One line describing the scan, suitable for appending to an error message.

Empty for a registry that was built explicitly, which has no scan to describe.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product