You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add prompt and app_id fields to coder_ai_task (#445)
Closescoder/internal#977
Adds one required field `app_id`, one read-only computed field `prompt`,
as well as deprecates the `sidebar_app` field, updates the `id` field to
inherit the value from `CODER_TASK_ID` env variable.
Copy file name to clipboardExpand all lines: docs/resources/ai_task.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,15 @@ Use this resource to define Coder tasks.
15
15
<!-- schema generated by tfplugindocs -->
16
16
## Schema
17
17
18
-
### Required
18
+
### Optional
19
19
20
-
-`sidebar_app` (Block Set, Min: 1, Max: 1) The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi. (see [below for nested schema](#nestedblock--sidebar_app))
20
+
-`app_id` (String) The ID of the `coder_app` resource that provides the AI interface for this task.
21
+
-`sidebar_app` (Block Set, Max: 1, Deprecated) The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi. (see [below for nested schema](#nestedblock--sidebar_app))
21
22
22
23
### Read-Only
23
24
24
25
-`id` (String) A unique identifier for this resource.
26
+
-`prompt` (String) The prompt text provided to the task by Coder.
Description: "The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.",
44
-
ForceNew: true,
45
-
Required: true,
46
-
MaxItems: 1,
72
+
Type: schema.TypeSet,
73
+
Description: "The coder_app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.",
74
+
Deprecated: "This field has been deprecated in favor of the `app_id` field.",
0 commit comments