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

    Constructors
    Constructor
    Description
    Blocking(dev.langchain4j.model.chat.ChatModel flex, dev.langchain4j.model.chat.ChatModel standard)
    Creates an instance of a Blocking record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.langchain4j.model.chat.response.ChatResponse
    chat(dev.langchain4j.model.chat.request.ChatRequest request, dev.langchain4j.model.chat.ChatRequestOptions options)
     
    dev.langchain4j.model.chat.request.ChatRequestParameters
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    dev.langchain4j.model.chat.ChatModel
    Returns the value of the flex record component.
    final int
    Returns a hash code value for this object.
    dev.langchain4j.model.ModelProvider
     
    dev.langchain4j.model.chat.ChatModel
    Returns the value of the standard record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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 a Blocking record class.
      Parameters:
      flex - the value for the flex record component
      standard - the value for the standard record 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:
      chat in interface dev.langchain4j.model.chat.ChatModel
    • defaultRequestParameters

      public dev.langchain4j.model.chat.request.ChatRequestParameters defaultRequestParameters()
      Specified by:
      defaultRequestParameters in interface dev.langchain4j.model.chat.ChatModel
    • provider

      public dev.langchain4j.model.ModelProvider provider()
      Specified by:
      provider in interface dev.langchain4j.model.chat.ChatModel
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • flex

      public dev.langchain4j.model.chat.ChatModel flex()
      Returns the value of the flex record component.
      Returns:
      the value of the flex record component
    • standard

      public dev.langchain4j.model.chat.ChatModel standard()
      Returns the value of the standard record component.
      Returns:
      the value of the standard record component