Record Class PromptBuildInput
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.engine.PromptBuildInput
public record PromptBuildInput(String locale, List<SkillPromptBlock> skills, List<LlmHistoryMessage> history, List<LlmToolDefinition> tools, String userQuestion, boolean enableWebSearch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPromptBuildInput(String locale, List<SkillPromptBlock> skills, List<LlmHistoryMessage> history, List<LlmToolDefinition> tools, String userQuestion, boolean enableWebSearch) Creates an instance of aPromptBuildInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.skills()Returns the value of theskillsrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserQuestionrecord component.
-
Constructor Details
-
PromptBuildInput
public PromptBuildInput(String locale, List<SkillPromptBlock> skills, List<LlmHistoryMessage> history, List<LlmToolDefinition> tools, String userQuestion, boolean enableWebSearch) Creates an instance of aPromptBuildInputrecord class.- Parameters:
locale- the value for thelocalerecord componentskills- the value for theskillsrecord componenthistory- the value for thehistoryrecord componenttools- the value for thetoolsrecord componentuserQuestion- the value for theuserQuestionrecord componentenableWebSearch- the value for theenableWebSearchrecord 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. -
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
skills
Returns the value of theskillsrecord component.- Returns:
- the value of the
skillsrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
userQuestion
Returns the value of theuserQuestionrecord component.- Returns:
- the value of the
userQuestionrecord component
-
enableWebSearch
public boolean enableWebSearch()Returns the value of theenableWebSearchrecord component.- Returns:
- the value of the
enableWebSearchrecord component
-