Record Class LlmRequest
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.engine.LlmRequest
public record LlmRequest(String instructions, String input, List<LlmToolDefinition> tools, boolean enableWebSearch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLlmRequest(String instructions, String input, List<LlmToolDefinition> tools, boolean enableWebSearch) Creates an instance of aLlmRequestrecord 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.input()Returns the value of theinputrecord component.Returns the value of theinstructionsrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LlmRequest
public LlmRequest(String instructions, String input, List<LlmToolDefinition> tools, boolean enableWebSearch) Creates an instance of aLlmRequestrecord class.- Parameters:
instructions- the value for theinstructionsrecord componentinput- the value for theinputrecord componenttools- the value for thetoolsrecord 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. -
instructions
Returns the value of theinstructionsrecord component.- Returns:
- the value of the
instructionsrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
enableWebSearch
public boolean enableWebSearch()Returns the value of theenableWebSearchrecord component.- Returns:
- the value of the
enableWebSearchrecord component
-