agent.run gains views: the agent may return an OpenUI Lang view of its answer through an optional view tool, read as steps.<id>.view. human.approve stores it as the task's plan_view, and the approval card renders it with the dashboard's own components, falling back to the plan text when there is no view or it does not parse. The feasibility prd step uses it.
13 lines
403 B
Go
13 lines
403 B
Go
// Package genui holds the agent prompt for the dashboard's generated views.
|
|
// prompt.md is generated from the renderer's component schemas by
|
|
// ui/scripts/genui-prompt.ts (task ui:prompt); never edit it by hand.
|
|
package genui
|
|
|
|
import _ "embed"
|
|
|
|
//go:embed prompt.md
|
|
var prompt string
|
|
|
|
// Prompt teaches an agent the view language and the components it may use.
|
|
func Prompt() string { return prompt }
|