PromptQueryStep class
Perform a message request to the model with your customized prompt.
Example:
final promptOutput = PromptOutput();
return [
PromptQueryStep(
prompt: '''You are an X agent. Here is the $userQuery, here is the $codeAttachment $matchingCode and the document references: $matchingDocuments. Answer the user's query.''',
promptOutput: promptOutput,
)
];
Constructors
- PromptQueryStep({required String prompt, PromptOutput? promptOutput, CodeOutput? codeOutput})
Properties
- codeOutput β CodeOutput?
-
codeOutput is experimental and is not adviced for usage. π¨
final
-
dashOutputs
β List<
DashOutput> -
no setteroverride
- hashCode β int
-
The hash code for this object.
no setterinherited
- prompt β String
-
String interpolated prompt with mix of inputs and outputs.
final
- promptOutput β PromptOutput?
-
Response received from the message request.
final
- runtimeType β Type
-
A representation of the runtime type of the object.
no setterinherited
- version β String
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) β dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
) β Future< Map< String, dynamic> > -
override
-
toString(
) β String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) β bool -
The equality operator.
inherited