Class EnvSystemPropertyLlmSecretResolver

java.lang.Object
com.agentforge4j.bootstrap.EnvSystemPropertyLlmSecretResolver
All Implemented Interfaces:
LlmSecretResolver

public final class EnvSystemPropertyLlmSecretResolver extends Object implements LlmSecretResolver
Default LlmSecretResolver for the embeddable bootstrap path. A literal reference passes its value through; an indirect reference is resolved against the process environment (env:KEYSystem.getenv(String)) or system properties (sysprop:KEYSystem.getProperty(String)).

An explicit reference names the exact variable, so it is unaffected by the AGENTFORGE4J_* auto-discovery key normalization. Resolution is fail-fast and secret-safe: an unknown scheme or unresolved reference throws LlmProviderConfigurationException naming only the scheme:key, never a value.

Public so framework layers (for example the Spring starter) can reuse it as the default resolver: an already-resolved property value is wrapped as a literal reference and passed through.

  • Constructor Details

    • EnvSystemPropertyLlmSecretResolver

      public EnvSystemPropertyLlmSecretResolver()
      Creates the default environment / system-property resolver.
  • Method Details