java.lang.Object
com.agentforge4j.llm.NeutralOptions
Small builder for the canonical dotted provider-option map emitted by
LlmClientConfigurationAdapter
implementations. Null values are skipped (so optional/unset properties become absent options that the provider factory
defaults or rejects), keeping the backing map free of the nulls that LlmProviderOptions.of(String, Map) would
reject.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NeutralOptionscreate()Adds aDurationoption (ISO-8601) whenvalueis non-null.Adds a numeric option whenvalueis non-null.Adds a string option whenvalueis non-null.toMap()
-
Constructor Details
-
NeutralOptions
public NeutralOptions()
-
-
Method Details
-
create
- Returns:
- a new builder
-
string
Adds a string option whenvalueis non-null.- Parameters:
key- the canonical option keyvalue- the value, ornullto skip- Returns:
this
-
duration
Adds aDurationoption (ISO-8601) whenvalueis non-null.- Parameters:
key- the canonical option keyvalue- the value, ornullto skip- Returns:
this
-
number
Adds a numeric option whenvalueis non-null.- Parameters:
key- the canonical option keyvalue- the value, ornullto skip- Returns:
this
-
toMap
- Returns:
- the assembled option map
-