Skip to content

Tasks: Run recipes #19261

@BrunoQuaresma

Description

@BrunoQuaresma

Depends on coder/internal#887

User Story

As an organization member, I want to run recipes to execute repetitive tasks, so that I can focus on what is important and avoid having to create the prompt myself or copy it from another place.

Acceptance Criteria

  • The user can run a recipe and view its execution
    • The user can run a recipe directly from the info dialog
    • When running a recipe without parameters, it should be created directly
    • When a recipe has parameters, the parameters dialog should be displayed, allowing the user to customize them before running even when these parameters have default values.
    • An error should be displayed in case of error
    • The form should display validation errors

Designs

Parameters Dialog

Image

API details

POST /ai/tasks/recipes//run

It creates a task based in a given recipe. When success, it should return the created recipe.

Body fields

  • Parameter values

Recipe fields

  • Name
  • Prompt
  • Parameters
  • Template display name or name, and version

Metadata

Metadata

Assignees

Labels

tasksCoder tasks

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions