Uses of Class
dev.langchain4j.model.chat.router.RoutingStreamingChatModel.Builder
Packages that use RoutingStreamingChatModel.Builder
-
Uses of RoutingStreamingChatModel.Builder in dev.langchain4j.model.chat.router
Methods in dev.langchain4j.model.chat.router that return RoutingStreamingChatModel.BuilderModifier and TypeMethodDescriptionRoutingStreamingChatModel.builder()RoutingStreamingChatModel.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.RoutingStreamingChatModel.Builder.route(String name, StreamingChatModel model) Adds a route without a description, for routers that do not decide based on descriptions.RoutingStreamingChatModel.Builder.route(String name, String description, StreamingChatModel model) Adds a route.RoutingStreamingChatModel.Builder.route(String name, List<String> descriptions, StreamingChatModel model) 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).RoutingStreamingChatModel.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 RoutingStreamingChatModel.BuilderModifierConstructorDescriptionprotected