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 task_id, prompt and app_id fields to coder_ai_task
Closescoder/internal#977
Adds one required field `app_id`, two read-only computed fields
`task_id` and `prompt`, as well as deprecates the `sidebar_app` field.
Copy file name to clipboardExpand all lines: docs/resources/ai_task.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,16 @@ 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.
27
+
-`task_id` (String) A unique identifier for the Coder Task resource.
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,
62
+
Type: schema.TypeSet,
63
+
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.",
64
+
Deprecated: "This field has been deprecated in favor of the `app_id` field.",
0 commit comments