Uses of Enum Class
com.tnsai.llm.routing.TaskType
Packages that use TaskType
-
Uses of TaskType in com.tnsai.llm.routing
Methods in com.tnsai.llm.routing that return TaskTypeModifier and TypeMethodDescriptionClassifies the given message into a task type.Classifies the message with context from conversation history.static TaskTypeFinds TaskType by id.TaskClassifier.ClassificationResult.taskType()Returns the value of thetaskTyperecord component.static TaskTypeReturns the enum constant of this class with the specified name.static TaskType[]TaskType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.tnsai.llm.routing that return types with arguments of type TaskTypeModifier and TypeMethodDescriptionTaskBasedRouter.TaskRoutingStats.mostCommonTask()Returns the most common task type.TaskBasedRouter.TaskRoutingStats.requestsPerTask()Returns the value of therequestsPerTaskrecord component.TaskBasedRouter.TaskRoutingStats.taskDistribution()Returns the task distribution as percentages.TaskBasedRouter.TaskRoutingStats.tokensPerTask()Returns the value of thetokensPerTaskrecord component.Methods in com.tnsai.llm.routing with parameters of type TaskTypeModifier and TypeMethodDescriptionTaskClassifier.Builder.addKeywords(TaskType type, Set<String> keywords) Adds custom keywords for a task type.TaskClassifier.Builder.addPattern(TaskType type, Pattern pattern) Adds a custom pattern for a task type.com.tnsai.llm.ChatResponseChat with explicit task type override.com.tnsai.llm.ChatResponseTaskBasedRouter.chatAs(TaskType taskType, String message, Optional<String> systemPrompt, Optional<List<Map<String, Object>>> history, Optional<List<Map<String, Object>>> tools) Chat with explicit task type override and full parameters.Assigns a client for a specific task type.com.tnsai.llm.LLMClientTaskBasedRouter.getClientForTask(TaskType taskType) Returns the client assigned to a specific task type.TaskClassifier.Builder.setDefaultType(TaskType defaultType) Sets the default task type when classification confidence is too low.Constructors in com.tnsai.llm.routing with parameters of type TaskTypeModifierConstructorDescriptionClassificationResult(TaskType taskType, double confidence, String reason) Creates an instance of aClassificationResultrecord class.Constructor parameters in com.tnsai.llm.routing with type arguments of type TaskTypeModifierConstructorDescriptionTaskRoutingStats(Map<TaskType, Long> requestsPerTask, Map<TaskType, Long> tokensPerTask, double estimatedSavings, LLMRouter.RoutingStats routingStats) Creates an instance of aTaskRoutingStatsrecord class.