add some UI for prompt improval [sic] (#3974)
This commit is contained in:
@@ -107,6 +107,7 @@ function Taskv2Node({ id, data, type }: NodeProps<Taskv2Node>) {
|
||||
) : null}
|
||||
</div>
|
||||
<WorkflowBlockInputTextarea
|
||||
aiImprove={{ useCase: "task_v2_prompt" }}
|
||||
nodeId={id}
|
||||
onChange={(value) => {
|
||||
update({ prompt: value });
|
||||
|
||||
@@ -584,3 +584,9 @@ export function isOutputParameter(
|
||||
): parameter is OutputParameter {
|
||||
return parameter.parameter_type === "output";
|
||||
}
|
||||
|
||||
export type ImprovePromptForWorkflowResponse = {
|
||||
error: string | null;
|
||||
improved: string;
|
||||
original: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user