Package com.axelor.ai.chat.provider
Record Class FlexFallback.Blocking
java.lang.Object
java.lang.Record
com.axelor.ai.chat.provider.FlexFallback.Blocking
- All Implemented Interfaces:
dev.langchain4j.model.chat.ChatModel
- Enclosing class:
FlexFallback
public static record FlexFallback.Blocking(dev.langchain4j.model.chat.ChatModel flex, dev.langchain4j.model.chat.ChatModel standard)
extends Record
implements dev.langchain4j.model.chat.ChatModel
A blocking model, for the background tasks that call the utility model.
-
Constructor Summary
ConstructorsConstructorDescriptionBlocking(dev.langchain4j.model.chat.ChatModel flex, dev.langchain4j.model.chat.ChatModel standard) Creates an instance of aBlockingrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondev.langchain4j.model.chat.response.ChatResponsechat(dev.langchain4j.model.chat.request.ChatRequest request, dev.langchain4j.model.chat.ChatRequestOptions options) dev.langchain4j.model.chat.request.ChatRequestParametersfinal booleanIndicates whether some other object is "equal to" this one.dev.langchain4j.model.chat.ChatModelflex()Returns the value of theflexrecord component.final inthashCode()Returns a hash code value for this object.dev.langchain4j.model.ModelProviderprovider()dev.langchain4j.model.chat.ChatModelstandard()Returns the value of thestandardrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.langchain4j.model.chat.ChatModel
chat, chat, chat, chat, chatAsync, chatAsync, chatAsync, chatAsync, chatAsync, doChat, doChatAsync, listeners, supportedCapabilities
-
Constructor Details
-
Blocking
public Blocking(dev.langchain4j.model.chat.ChatModel flex, dev.langchain4j.model.chat.ChatModel standard) Creates an instance of aBlockingrecord class.- Parameters:
flex- the value for theflexrecord componentstandard- the value for thestandardrecord component
-
-
Method Details
-
chat
public dev.langchain4j.model.chat.response.ChatResponse chat(dev.langchain4j.model.chat.request.ChatRequest request, dev.langchain4j.model.chat.ChatRequestOptions options) - Specified by:
chatin interfacedev.langchain4j.model.chat.ChatModel
-
defaultRequestParameters
public dev.langchain4j.model.chat.request.ChatRequestParameters defaultRequestParameters()- Specified by:
defaultRequestParametersin interfacedev.langchain4j.model.chat.ChatModel
-
provider
public dev.langchain4j.model.ModelProvider provider()- Specified by:
providerin interfacedev.langchain4j.model.chat.ChatModel
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
flex
public dev.langchain4j.model.chat.ChatModel flex()Returns the value of theflexrecord component.- Returns:
- the value of the
flexrecord component
-
standard
public dev.langchain4j.model.chat.ChatModel standard()Returns the value of thestandardrecord component.- Returns:
- the value of the
standardrecord component
-