Uses of Class
dev.langchain4j.model.chat.router.RoutingChatModel.Builder
Packages that use RoutingChatModel.Builder
-
Uses of RoutingChatModel.Builder in dev.langchain4j.model.chat.router
Methods in dev.langchain4j.model.chat.router that return RoutingChatModel.BuilderModifier and TypeMethodDescriptionstatic RoutingChatModel.BuilderRoutingChatModel.builder()RoutingChatModel.Builder.defaultRoute(String defaultRoute) Sets the route used when the router selects the default route (ChatModelRoutingResult.defaultRoute()), for example when a router that calls a model is unsure or fails.Adds a route without a description, for routers that do not decide based on descriptions.Adds a route.Adds a route with several descriptions, for a route meant for requests about different topics, for exampleroute("complex", List.of("Writing or debugging code", "Legal contract analysis"), largeModel).RoutingChatModel.Builder.router(ChatModelRouter router) Sets the router that selects the route of each request.Constructors in dev.langchain4j.model.chat.router with parameters of type RoutingChatModel.Builder