Class Task
java.lang.Object
eu.svjatoslav.alyverkko_cli.commands.task_processor.Task
Represents the data needed to perform a single task based AI query,
containing prompts and the specific AI model to use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe end time of the query (milliseconds since epoch).The AI model to be used for processing this query.intTask priority.The name of the specific skill or capability that the AI should utilize when processing the query.longThe start time of the query (milliseconds since epoch).The system prompt text that sets the context or role for the AI.The user's prompt text (the main request or query). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatCalculates effective repeat penalty using hierarchy: skill-specific → model-specific → global defaultfloatCalculate effective temperature based on override hierarchy.floatfloatCalculates effective top-p value using hierarchy: skill-specific → model-specific → global defaulttoString()Returns a string containing a summary of theTaskobject.
-
Field Details
-
systemPrompt
The system prompt text that sets the context or role for the AI. This is often used to establish rules or background instructions for how the assistant should behave. -
skillName
The name of the specific skill or capability that the AI should utilize when processing the query. This can help determine the focus or purpose of the response generated by the AI. -
skill
-
userPrompt
The user's prompt text (the main request or query). -
model
The AI model to be used for processing this query. -
startTimeMillis
public long startTimeMillisThe start time of the query (milliseconds since epoch). -
endTimeMillis
public long endTimeMillisThe end time of the query (milliseconds since epoch). -
priority
public int priorityTask priority. Bigger integer has higher priority.
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
toString
Returns a string containing a summary of theTaskobject. -
getEffectiveTemperature
public float getEffectiveTemperature()Calculate effective temperature based on override hierarchy. -
getEffectiveTopP
public float getEffectiveTopP()Calculates effective top-p value using hierarchy: skill-specific → model-specific → global default- Returns:
- the applicable top-p value for this query
-
getEffectiveRepeatPenalty
public float getEffectiveRepeatPenalty()Calculates effective repeat penalty using hierarchy: skill-specific → model-specific → global default- Returns:
- the applicable repeat penalty for this query
-
getEffectiveTopK
public float getEffectiveTopK() -
getEffectiveMinP
public float getEffectiveMinP()
-