add some UI for prompt improval [sic] (#3974)

This commit is contained in:
Jonathan Dobson
2025-11-11 21:10:02 -05:00
committed by GitHub
parent 6f5d721c37
commit 2765382bef
5 changed files with 277 additions and 35 deletions

View File

@@ -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 });

View File

@@ -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;
};