Package com.pnfsoftware.jeb.util.llm
Class LlmSettings
java.lang.Object
com.pnfsoftware.jeb.util.llm.LlmSettings
Settings used to create an LLM conversation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionAPI key or environment-variable reference.Provider base URL.intAuto-compress the conversation after the output reaches the provided token threshold.Additional HTTP headers added to provider requests.Optional end-point path used to chat with the model (e.g.Optional end-point path used to list models (e.g.Model name or identifier.Optional provider/model-specific reasoning effort hint.Optional system prompt.Tool definitions exposed to the model. -
Constructor Summary
ConstructorsConstructorDescriptionLlmSettings(String apikey, String baseUrl, String modelName) Create LLM settings. -
Method Summary
-
Field Details
-
baseUrl
Provider base URL. -
modelName
Model name or identifier. -
apikey
API key or environment-variable reference. If the value starts with$, the remaining characters are resolved as an environment variable name. -
systemPrompt
Optional system prompt. -
tooldefs
Tool definitions exposed to the model. -
reasoningEffort
Optional provider/model-specific reasoning effort hint. -
customHeaders
Additional HTTP headers added to provider requests. -
endpointListModels
Optional end-point path used to list models (e.g./list). If null, the suffix will be inferred from the selectedAPI type. -
endpointChat
Optional end-point path used to chat with the model (e.g./chat/completions). If null, the suffix will be inferred from the selectedAPI type. -
compactionThreshold
public int compactionThresholdAuto-compress the conversation after the output reaches the provided token threshold. This optional setting is currently limited to OpenAI's Responses API and Anthropic's Messages API.
-
-
Constructor Details
-
LlmSettings
Create LLM settings.- Parameters:
apikey- API key or environment-variable referencebaseUrl- provider base URLmodelName- model name or identifier
-