Record Class AiEngineRequest

java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.engine.AiEngineRequest

public record AiEngineRequest(Long connectionId, String username, Locale locale, List<LlmHistoryMessage> history, String message, String skillSlug, List<String> skillSlugs, boolean toolsEnabled, List<String> toolIdAllowlist, boolean enableWebSearch, LlmRequestOverrides overrides, boolean uiContextPresent, ToolChannel channel) extends Record
  • Constructor Details

    • AiEngineRequest

      public AiEngineRequest(Long connectionId, String username, Locale locale, List<LlmHistoryMessage> history, String message, String skillSlug, List<String> skillSlugs, boolean toolsEnabled, List<String> toolIdAllowlist, boolean enableWebSearch, LlmRequestOverrides overrides, boolean uiContextPresent, ToolChannel channel)
      Creates an instance of a AiEngineRequest record class.
      Parameters:
      connectionId - the value for the connectionId record component
      username - the value for the username record component
      locale - the value for the locale record component
      history - the value for the history record component
      message - the value for the message record component
      skillSlug - the value for the skillSlug record component
      skillSlugs - the value for the skillSlugs record component
      toolsEnabled - the value for the toolsEnabled record component
      toolIdAllowlist - the value for the toolIdAllowlist record component
      enableWebSearch - the value for the enableWebSearch record component
      overrides - the value for the overrides record component
      uiContextPresent - the value for the uiContextPresent record component
      channel - the value for the channel record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • connectionId

      public Long connectionId()
      Returns the value of the connectionId record component.
      Returns:
      the value of the connectionId record component
    • username

      public String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • locale

      public Locale locale()
      Returns the value of the locale record component.
      Returns:
      the value of the locale record component
    • history

      public List<LlmHistoryMessage> history()
      Returns the value of the history record component.
      Returns:
      the value of the history record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • skillSlug

      public String skillSlug()
      Returns the value of the skillSlug record component.
      Returns:
      the value of the skillSlug record component
    • skillSlugs

      public List<String> skillSlugs()
      Returns the value of the skillSlugs record component.
      Returns:
      the value of the skillSlugs record component
    • toolsEnabled

      public boolean toolsEnabled()
      Returns the value of the toolsEnabled record component.
      Returns:
      the value of the toolsEnabled record component
    • toolIdAllowlist

      public List<String> toolIdAllowlist()
      Returns the value of the toolIdAllowlist record component.
      Returns:
      the value of the toolIdAllowlist record component
    • enableWebSearch

      public boolean enableWebSearch()
      Returns the value of the enableWebSearch record component.
      Returns:
      the value of the enableWebSearch record component
    • overrides

      public LlmRequestOverrides overrides()
      Returns the value of the overrides record component.
      Returns:
      the value of the overrides record component
    • uiContextPresent

      public boolean uiContextPresent()
      Returns the value of the uiContextPresent record component.
      Returns:
      the value of the uiContextPresent record component
    • channel

      public ToolChannel channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component