java.lang.Object
eu.svjatoslav.alyverkko_cli.commands.task_processor.Task

public class Task extends Object
Represents the data needed to perform a single task based AI query, containing prompts and the specific AI model to use.
  • Field Details

    • systemPrompt

      public String 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

      public String 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

      public SkillConfig skill
    • userPrompt

      public String userPrompt
      The user's prompt text (the main request or query).
    • model

      public Model model
      The AI model to be used for processing this query.
    • startTimeMillis

      public long startTimeMillis
      The start time of the query (milliseconds since epoch).
    • endTimeMillis

      public long endTimeMillis
      The end time of the query (milliseconds since epoch).
    • priority

      public int priority
      Task priority. Bigger integer has higher priority.
  • Constructor Details

    • Task

      public Task()
  • Method Details

    • toString

      public String toString()
      Returns a string containing a summary of the Task object.
      Overrides:
      toString in class Object
      Returns:
      a string with the system prompt, user prompt, and model info.
    • 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()