Package com.tnsai.reasoning
Class ReasoningRouter.Builder
java.lang.Object
com.tnsai.reasoning.ReasoningRouter.Builder
- Enclosing class:
ReasoningRouter
Builder for ReasoningRouter.
-
Method Summary
Modifier and TypeMethodDescriptionalwaysReason(boolean always) Always use the reasoning model regardless of score.build()Builds the ReasoningRouter.reasoningModel(com.tnsai.llm.LLMClient model) Sets the reasoning-specialized model (e.g., o1, DeepSeek-R1).standardModel(com.tnsai.llm.LLMClient model) Sets the standard model for simple queries.threshold(double threshold) Sets the threshold for routing to reasoning model (default: 0.5).
-
Method Details
-
reasoningModel
Sets the reasoning-specialized model (e.g., o1, DeepSeek-R1). -
standardModel
Sets the standard model for simple queries. -
threshold
Sets the threshold for routing to reasoning model (default: 0.5). -
alwaysReason
Always use the reasoning model regardless of score. -
build
Builds the ReasoningRouter.
-