java.lang.Object
com.agentforge4j.llm.LlmSecret
A resolved LLM provider credential. Holds the live secret value behind an accessor and renders a redacted
toString() so the value never leaks into logs, events, exception messages, or other diagnostics.
Deliberately a final class rather than a record: a record's generated toString() would
print every component, exposing the credential. Providers hold credentials as LlmSecret, so a record-typed
provider configuration remains toString-safe.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LlmSecret
Creates a resolved secret.- Parameters:
value- the live secret value; must not be blank- Throws:
IllegalArgumentException- ifvalueis blank
-
-
Method Details