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 Summary
ConstructorsConstructorDescriptionAiEngineRequest(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 aAiEngineRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchannel()Returns the value of thechannelrecord component.Returns the value of theconnectionIdrecord component.booleanReturns the value of theenableWebSearchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.history()Returns the value of thehistoryrecord component.locale()Returns the value of thelocalerecord component.message()Returns the value of themessagerecord component.Returns the value of theoverridesrecord component.Returns the value of theskillSlugrecord component.Returns the value of theskillSlugsrecord component.Returns the value of thetoolIdAllowlistrecord component.booleanReturns the value of thetoolsEnabledrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuiContextPresentrecord component.username()Returns the value of theusernamerecord component.
-
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 aAiEngineRequestrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentusername- the value for theusernamerecord componentlocale- the value for thelocalerecord componenthistory- the value for thehistoryrecord componentmessage- the value for themessagerecord componentskillSlug- the value for theskillSlugrecord componentskillSlugs- the value for theskillSlugsrecord componenttoolsEnabled- the value for thetoolsEnabledrecord componenttoolIdAllowlist- the value for thetoolIdAllowlistrecord componentenableWebSearch- the value for theenableWebSearchrecord componentoverrides- the value for theoverridesrecord componentuiContextPresent- the value for theuiContextPresentrecord componentchannel- the value for thechannelrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
skillSlug
Returns the value of theskillSlugrecord component.- Returns:
- the value of the
skillSlugrecord component
-
skillSlugs
-
toolsEnabled
public boolean toolsEnabled()Returns the value of thetoolsEnabledrecord component.- Returns:
- the value of the
toolsEnabledrecord component
-
toolIdAllowlist
-
enableWebSearch
public boolean enableWebSearch()Returns the value of theenableWebSearchrecord component.- Returns:
- the value of the
enableWebSearchrecord component
-
overrides
Returns the value of theoverridesrecord component.- Returns:
- the value of the
overridesrecord component
-
uiContextPresent
public boolean uiContextPresent()Returns the value of theuiContextPresentrecord component.- Returns:
- the value of the
uiContextPresentrecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-