Class ChatModelRoutingRequest
java.lang.Object
dev.langchain4j.model.chat.router.ChatModelRoutingRequest
The input of a
ChatModelRouter: the chat request to route, the routes that can handle it and the options of
the call.- Since:
- 1.21.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The chat request to route.booleaninthashCode()options()The options of the call, for example listener attributes identifying the user or the tenant.routes()The routes that can handle the request, in the order in which they were configured: all routes or, if the request needs a capability (such as a JSON schema response format), the routes whose model supports it.toString()
-
Method Details
-
chatRequest
The chat request to route. -
routes
The routes that can handle the request, in the order in which they were configured: all routes or, if the request needs a capability (such as a JSON schema response format), the routes whose model supports it. -
options
The options of the call, for example listener attributes identifying the user or the tenant.ChatRequestOptions.EMPTYif the call has none. -
equals
-
hashCode
-
toString
-
builder
-