Package rocks.imsofa.ai.puppychatter
Class PromptParameters
java.lang.Object
rocks.imsofa.ai.puppychatter.PromptParameters
- Direct Known Subclasses:
GeminiAqaPromptParameters,OpenAICompatiblePromptParameters
Parameters for configuring a prompt
- Author:
- USER
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResponseVerifierThe default verification function returnsVerificationResult.GOODif the response is not an error, otherwise it returnsVerificationResult.GIVE_UP.protected Stringthe role of this prompt defaults to 'user' -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRole()voidsetResponseVerifier(ResponseVerifier responseVerifier) void
-
Field Details
-
responseVerifier
The default verification function returnsVerificationResult.GOODif the response is not an error, otherwise it returnsVerificationResult.GIVE_UP. -
role
the role of this prompt defaults to 'user'
-
-
Constructor Details
-
PromptParameters
-
-
Method Details
-
getRole
-
setRole
-
getResponseVerifier
-
setResponseVerifier
-