fix: document raw JSON as objects and byte fields as base64 strings (#30123)
Swagger renders `json.RawMessage` and `[]byte` fields as integer arrays, so the API reference showed chat tool calls as `"args": [0]` even though tool arguments and results are JSON values. Render every `json.RawMessage` as an object with one `.swaggo` replace rule, and tag `[]byte` fields, which JSON-encode as base64, `swaggertype:"string" format:"byte"`. This covers `ChatMessagePart.args`, `.result`, `.data`, `ToolResult.output`, `DynamicTool.input_schema`, both workspace build `state` fields, `TemplateBuilderModuleVariable.default`, and `CreateTestAuditLogRequest.additional_fields`. `ChatMessagePart.provider_metadata` is internal only, so it is hidden with `swaggerignore:"true"` like its siblings. `ChatMessagePart.result` and `ToolResult.output` can hold any JSON value, and `TemplateBuilderModuleVariable.default` holds a string, number, or boolean, so `object` is an approximation for all three and the field comments say so. swag rejects an untyped `.swaggo` override for `json.RawMessage`. Part of DOCS-1122, split from #30121. --- 🤖 Built with AI assistance.
This commit is contained in:
1 parent
34a14cb552
commit
585485c8bf
12 files changed
+202
-474
No files matched your search
@@ -8,3 +8,7 @@ replace github.com/coder/coder/v2/codersdk.ProvisionerType string
|
||||
replace netip.Addr string
|
||||
// Replace all NullUUID with string
|
||||
replace github.com/google/uuid.NullUUID string
|
||||
// swag cannot emit an untyped schema, so render raw JSON as an object instead
|
||||
// of an integer array. Fields that hold non-object JSON must say so in their
|
||||
// doc comment.
|
||||
replace encoding/json.RawMessage object
|
||||
Generated
+18
-43
@@ -22655,10 +22655,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"args": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"args_delta": {
|
||||
"type": "string"
|
||||
@@ -22707,10 +22704,9 @@ const docTemplate = `{
|
||||
"format": "date-time"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Data holds an inline file's bytes, which JSON carries as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"end_line": {
|
||||
"type": "integer"
|
||||
@@ -22760,21 +22756,12 @@ const docTemplate = `{
|
||||
"description": "ProviderExecuted indicates the tool call was executed by\nthe provider (e.g. Anthropic computer use).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"provider_metadata": {
|
||||
"description": "ProviderMetadata holds provider-specific response metadata\n(e.g. Anthropic cache control hints) as raw JSON. Internal\nonly: stripped by db2sdk before API responses.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"reasoning_delta": {
|
||||
"type": "string"
|
||||
},
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Result is the tool output, which can be any JSON value.",
|
||||
"type": "object"
|
||||
},
|
||||
"result_delta": {
|
||||
"type": "string"
|
||||
@@ -25199,10 +25186,7 @@ const docTemplate = `{
|
||||
]
|
||||
},
|
||||
"additional_fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"build_reason": {
|
||||
"enum": [
|
||||
@@ -25554,10 +25538,9 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"state": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "ProvisionerState overrides the provisioner state for this build. JSON\ncarries it as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"template_version_id": {
|
||||
"type": "string",
|
||||
@@ -26286,10 +26269,7 @@ const docTemplate = `{
|
||||
},
|
||||
"input_schema": {
|
||||
"description": "InputSchema's JSON key \"input_schema\" uses snake_case for\nSDK consistency, deviating from the camelCase \"inputSchema\"\nconvention used by MCP.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -32062,10 +32042,8 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Default is the variable's default as a JSON string, number, or boolean,\nmatching the variable's type.",
|
||||
"type": "object"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
@@ -32794,10 +32772,8 @@ const docTemplate = `{
|
||||
"type": "boolean"
|
||||
},
|
||||
"output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Output is the tool output, which can be any JSON value.",
|
||||
"type": "object"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"type": "string"
|
||||
@@ -33755,10 +33731,9 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"state": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "State is the provisioner state, which JSON carries as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Generated
+18
-43
@@ -20472,10 +20472,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"args": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"args_delta": {
|
||||
"type": "string"
|
||||
@@ -20524,10 +20521,9 @@
|
||||
"format": "date-time"
|
||||
},
|
||||
"data": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Data holds an inline file's bytes, which JSON carries as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"end_line": {
|
||||
"type": "integer"
|
||||
@@ -20577,21 +20573,12 @@
|
||||
"description": "ProviderExecuted indicates the tool call was executed by\nthe provider (e.g. Anthropic computer use).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"provider_metadata": {
|
||||
"description": "ProviderMetadata holds provider-specific response metadata\n(e.g. Anthropic cache control hints) as raw JSON. Internal\nonly: stripped by db2sdk before API responses.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"reasoning_delta": {
|
||||
"type": "string"
|
||||
},
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Result is the tool output, which can be any JSON value.",
|
||||
"type": "object"
|
||||
},
|
||||
"result_delta": {
|
||||
"type": "string"
|
||||
@@ -22907,10 +22894,7 @@
|
||||
]
|
||||
},
|
||||
"additional_fields": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"build_reason": {
|
||||
"enum": ["autostart", "autostop", "initiator"],
|
||||
@@ -23248,10 +23232,9 @@
|
||||
}
|
||||
},
|
||||
"state": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "ProvisionerState overrides the provisioner state for this build. JSON\ncarries it as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"template_version_id": {
|
||||
"type": "string",
|
||||
@@ -23969,10 +23952,7 @@
|
||||
},
|
||||
"input_schema": {
|
||||
"description": "InputSchema's JSON key \"input_schema\" uses snake_case for\nSDK consistency, deviating from the camelCase \"inputSchema\"\nconvention used by MCP.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"type": "object"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -29536,10 +29516,8 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"default": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Default is the variable's default as a JSON string, number, or boolean,\nmatching the variable's type.",
|
||||
"type": "object"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
@@ -30206,10 +30184,8 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"output": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "Output is the tool output, which can be any JSON value.",
|
||||
"type": "object"
|
||||
},
|
||||
"tool_call_id": {
|
||||
"type": "string"
|
||||
@@ -31134,10 +31110,9 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"state": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
"description": "State is the provisioner state, which JSON carries as a base64 string.",
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+13
-10
@@ -567,7 +567,8 @@ type ChatMessagePart struct {
|
||||
// positional argument. Program names are normalized to their base
|
||||
// name (e.g. /usr/bin/go becomes go). Only populated when ToolName
|
||||
// is "execute" and the command parses successfully; nil otherwise.
|
||||
ParsedCommands [][]string `json:"parsed_commands,omitempty" variants:"tool-call?"`
|
||||
ParsedCommands [][]string `json:"parsed_commands,omitempty" variants:"tool-call?"`
|
||||
// Result is the tool output, which can be any JSON value.
|
||||
Result json.RawMessage `json:"result,omitempty" variants:"tool-result?"`
|
||||
ResultDelta string `json:"result_delta,omitempty" variants:"tool-result?"`
|
||||
ReasoningDelta string `json:"reasoning_delta,omitempty" variants:"tool-result?"`
|
||||
@@ -579,17 +580,18 @@ type ChatMessagePart struct {
|
||||
Title string `json:"title,omitempty" variants:"source?"`
|
||||
MediaType string `json:"media_type" variants:"file"`
|
||||
Name string `json:"name,omitempty" variants:"file?"`
|
||||
Data []byte `json:"data,omitempty" variants:"file?"`
|
||||
FileID uuid.NullUUID `json:"file_id,omitempty" format:"uuid" variants:"file?"`
|
||||
FileName string `json:"file_name" variants:"file-reference"`
|
||||
StartLine int `json:"start_line" variants:"file-reference"`
|
||||
EndLine int `json:"end_line" variants:"file-reference"`
|
||||
// Data holds an inline file's bytes, which JSON carries as a base64 string.
|
||||
Data []byte `json:"data,omitempty" swaggertype:"string" format:"byte" variants:"file?"`
|
||||
FileID uuid.NullUUID `json:"file_id,omitempty" format:"uuid" variants:"file?"`
|
||||
FileName string `json:"file_name" variants:"file-reference"`
|
||||
StartLine int `json:"start_line" variants:"file-reference"`
|
||||
EndLine int `json:"end_line" variants:"file-reference"`
|
||||
// The code content from the diff that was commented on.
|
||||
Content string `json:"content" variants:"file-reference"`
|
||||
// ProviderMetadata holds provider-specific response metadata
|
||||
// (e.g. Anthropic cache control hints) as raw JSON. Internal
|
||||
// only: stripped by db2sdk before API responses.
|
||||
ProviderMetadata json.RawMessage `json:"provider_metadata,omitempty" typescript:"-"`
|
||||
ProviderMetadata json.RawMessage `json:"provider_metadata,omitempty" typescript:"-" swaggerignore:"true"`
|
||||
// ProviderIdentity records the provider that produced a reasoning
|
||||
// part, because a model config's provider can change after the
|
||||
// message was written. Internal only: stripped before API responses.
|
||||
@@ -876,9 +878,10 @@ type SubmitToolResultsRequest struct {
|
||||
|
||||
// ToolResult is the client's response to a dynamic tool call.
|
||||
type ToolResult struct {
|
||||
ToolCallID string `json:"tool_call_id"`
|
||||
Output json.RawMessage `json:"output"`
|
||||
IsError bool `json:"is_error"`
|
||||
ToolCallID string `json:"tool_call_id"`
|
||||
// Output is the tool output, which can be any JSON value.
|
||||
Output json.RawMessage `json:"output"`
|
||||
IsError bool `json:"is_error"`
|
||||
}
|
||||
|
||||
// MaxChatTitleRunes is the longest title accepted at creation or rename,
|
||||
|
||||
@@ -24,9 +24,11 @@ type TemplateBuilderModuleVariable struct {
|
||||
Name string `json:"name"`
|
||||
Type TemplateBuilderVariableType `json:"type"`
|
||||
Description string `json:"description"`
|
||||
Default json.RawMessage `json:"default,omitempty"`
|
||||
Required bool `json:"required"`
|
||||
Sensitive bool `json:"sensitive"`
|
||||
// Default is the variable's default as a JSON string, number, or boolean,
|
||||
// matching the variable's type.
|
||||
Default json.RawMessage `json:"default,omitempty"`
|
||||
Required bool `json:"required"`
|
||||
Sensitive bool `json:"sensitive"`
|
||||
}
|
||||
|
||||
// TemplateBuilderModule is the API response type returned by
|
||||
|
||||
@@ -215,7 +215,8 @@ func (c *Client) WorkspaceBuildState(ctx context.Context, build uuid.UUID) ([]by
|
||||
// UpdateWorkspaceBuildStateRequest is the request body for updating the
|
||||
// provisioner state of a workspace build.
|
||||
type UpdateWorkspaceBuildStateRequest struct {
|
||||
State []byte `json:"state"`
|
||||
// State is the provisioner state, which JSON carries as a base64 string.
|
||||
State []byte `json:"state" swaggertype:"string" format:"byte"`
|
||||
}
|
||||
|
||||
// UpdateWorkspaceBuildState updates the provisioner state of the build without
|
||||
|
||||
@@ -122,7 +122,9 @@ type CreateWorkspaceBuildRequest struct {
|
||||
TemplateVersionID uuid.UUID `json:"template_version_id,omitempty" format:"uuid"`
|
||||
Transition WorkspaceTransition `json:"transition" validate:"oneof=start stop delete,required"`
|
||||
DryRun bool `json:"dry_run,omitempty"`
|
||||
ProvisionerState []byte `json:"state,omitempty"`
|
||||
// ProvisionerState overrides the provisioner state for this build. JSON
|
||||
// carries it as a base64 string.
|
||||
ProvisionerState []byte `json:"state,omitempty" swaggertype:"string" format:"byte"`
|
||||
// Orphan may be set for the Destroy transition.
|
||||
Orphan bool `json:"orphan,omitempty"`
|
||||
// ParameterValues are optional. It will write params to the 'workspace' scope.
|
||||
|
||||
Generated
+2
-6
@@ -1399,9 +1399,7 @@ curl -X PUT http://coder-server:8080/api/v2/workspacebuilds/{workspacebuild}/sta
|
||||
|
||||
```json
|
||||
{
|
||||
"state": [
|
||||
0
|
||||
]
|
||||
"state": "string"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -2008,9 +2006,7 @@ curl -X POST http://coder-server:8080/api/v2/workspaces/{workspace}/builds \
|
||||
"value": "string"
|
||||
}
|
||||
],
|
||||
"state": [
|
||||
0
|
||||
],
|
||||
"state": "string",
|
||||
"template_version_id": "0ba39c92-1f1b-4c32-aa3e-9925d7713eb1",
|
||||
"template_version_preset_id": "512a53a7-30da-446e-a1fc-713c630baff1",
|
||||
"transition": "start"
|
||||
|
||||
Generated
+35
-130
@@ -439,9 +439,7 @@ curl -X POST http://coder-server:8080/api/v2/chats \
|
||||
"unsafe_dynamic_tools": [
|
||||
{
|
||||
"description": "string",
|
||||
"input_schema": [
|
||||
0
|
||||
],
|
||||
"input_schema": {},
|
||||
"name": "string"
|
||||
}
|
||||
],
|
||||
@@ -3015,9 +3013,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3029,9 +3025,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3048,13 +3042,8 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3098,9 +3087,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3112,9 +3099,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3131,13 +3116,8 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3259,9 +3239,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3273,9 +3251,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3292,13 +3268,8 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3341,9 +3312,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3355,9 +3324,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3374,13 +3341,8 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3424,9 +3386,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3438,9 +3398,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3457,13 +3415,8 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/messages \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3570,9 +3523,7 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3584,9 +3535,7 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3603,13 +3552,8 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3652,9 +3596,7 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3666,9 +3608,7 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3685,13 +3625,8 @@ curl -X PATCH http://coder-server:8080/api/v2/chats/{chat}/messages/{message} \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -4304,9 +4239,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -4318,9 +4251,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -4337,13 +4268,8 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -4385,9 +4311,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"generation_attempt": 0,
|
||||
"history_version": 0,
|
||||
"part": {
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -4399,9 +4323,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -4418,13 +4340,8 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -4453,9 +4370,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -4467,9 +4382,7 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -4486,13 +4399,8 @@ curl -X GET http://coder-server:8080/api/v2/chats/{chat}/stream \
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -4567,7 +4475,7 @@ Status Code **200**
|
||||
| `» message` | [codersdk.ChatMessage](schemas.md#codersdkchatmessage) | false | | |
|
||||
| `»» chat_id` | string(uuid) | false | | |
|
||||
| `»» content` | array | false | | |
|
||||
| `»»» args` | array | false | | |
|
||||
| `»»» args` | object | false | | |
|
||||
| `»»» args_delta` | string | false | | |
|
||||
| `»»» completed_at` | string(date-time) | false | | Completed at is the time a reasoning part finished streaming, so reasoning duration can be computed as completed_at minus created_at. For interrupted reasoning, this is the interruption time. Absent when reasoning timestamp data was not recorded (e.g. messages persisted before this feature was added). |
|
||||
| `»»» content` | string | false | | The code content from the diff that was commented on. |
|
||||
@@ -4579,7 +4487,7 @@ Status Code **200**
|
||||
| `»»» context_file_skill_meta_file` | string | false | | Context file skill meta file is the basename of the skill meta file (e.g. "SKILL.md") at the time of persistence. Internal only: restored on subsequent turns so the read_skill tool uses the correct filename even when the agent configured a non-default value. |
|
||||
| `»»» context_file_truncated` | boolean | false | | Context file truncated indicates the file exceeded the 64KiB instruction file limit and was truncated. |
|
||||
| `»»» created_at` | string(date-time) | false | | Created at is the timestamp this part carries. The semantics depend on the part type: for tool-call and tool-result parts it is the time the call was emitted or the result was produced (tool duration is the result's created_at minus the call's created_at); for reasoning parts it is the time reasoning started streaming. |
|
||||
| `»»» data` | array | false | | |
|
||||
| `»»» data` | string(byte) | false | | Data holds an inline file's bytes, which JSON carries as a base64 string. |
|
||||
| `»»» end_line` | integer | false | | |
|
||||
| `»»» file_id` | string(uuid) | false | | |
|
||||
| `»»» file_name` | string | false | | |
|
||||
@@ -4592,9 +4500,8 @@ Status Code **200**
|
||||
| `»»» narration` | boolean | false | | Narration marks assistant text that the model labeled as commentary on its work rather than its answer. Only providers that label their output set it. |
|
||||
| `»»» parsed_commands` | array | false | | Parsed commands holds parsed programs from an execute tool call's shell command, one entry per simple command in source order. Each entry is [program] or [program, arg] where arg is the first non-flag positional argument. Program names are normalized to their base name (e.g. /usr/bin/go becomes go). Only populated when ToolName is "execute" and the command parses successfully; nil otherwise. |
|
||||
| `»»» provider_executed` | boolean | false | | Provider executed indicates the tool call was executed by the provider (e.g. Anthropic computer use). |
|
||||
| `»»» provider_metadata` | array | false | | Provider metadata holds provider-specific response metadata (e.g. Anthropic cache control hints) as raw JSON. Internal only: stripped by db2sdk before API responses. |
|
||||
| `»»» reasoning_delta` | string | false | | |
|
||||
| `»»» result` | array | false | | |
|
||||
| `»»» result` | object | false | | Result is the tool output, which can be any JSON value. |
|
||||
| `»»» result_delta` | string | false | | |
|
||||
| `»»» result_reset` | boolean | false | | |
|
||||
| `»»» skill_description` | string | false | | Skill description is the short description from the skill's SKILL.md frontmatter. |
|
||||
@@ -4771,9 +4678,7 @@ curl -X POST http://coder-server:8080/api/v2/chats/{chat}/tool-results \
|
||||
"results": [
|
||||
{
|
||||
"is_error": true,
|
||||
"output": [
|
||||
0
|
||||
],
|
||||
"output": {},
|
||||
"tool_call_id": "string"
|
||||
}
|
||||
]
|
||||
|
||||
Generated
+80
-231
@@ -3412,9 +3412,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3426,9 +3424,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3445,13 +3441,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3509,9 +3500,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
|
||||
```json
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3523,9 +3512,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3542,13 +3529,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3575,7 +3557,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|--------------------------------|--------------------------------------------------------------|----------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `args` | array of integer | false | | |
|
||||
| `args` | object | false | | |
|
||||
| `args_delta` | string | false | | |
|
||||
| `completed_at` | string | false | | Completed at is the time a reasoning part finished streaming, so reasoning duration can be computed as completed_at minus created_at. For interrupted reasoning, this is the interruption time. Absent when reasoning timestamp data was not recorded (e.g. messages persisted before this feature was added). |
|
||||
| `content` | string | false | | The code content from the diff that was commented on. |
|
||||
@@ -3587,7 +3569,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `context_file_skill_meta_file` | string | false | | Context file skill meta file is the basename of the skill meta file (e.g. "SKILL.md") at the time of persistence. Internal only: restored on subsequent turns so the read_skill tool uses the correct filename even when the agent configured a non-default value. |
|
||||
| `context_file_truncated` | boolean | false | | Context file truncated indicates the file exceeded the 64KiB instruction file limit and was truncated. |
|
||||
| `created_at` | string | false | | Created at is the timestamp this part carries. The semantics depend on the part type: for tool-call and tool-result parts it is the time the call was emitted or the result was produced (tool duration is the result's created_at minus the call's created_at); for reasoning parts it is the time reasoning started streaming. |
|
||||
| `data` | array of integer | false | | |
|
||||
| `data` | string | false | | Data holds an inline file's bytes, which JSON carries as a base64 string. |
|
||||
| `end_line` | integer | false | | |
|
||||
| `file_id` | string | false | | |
|
||||
| `file_name` | string | false | | |
|
||||
@@ -3600,9 +3582,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `narration` | boolean | false | | Narration marks assistant text that the model labeled as commentary on its work rather than its answer. Only providers that label their output set it. |
|
||||
| `parsed_commands` | array of array | false | | Parsed commands holds parsed programs from an execute tool call's shell command, one entry per simple command in source order. Each entry is [program] or [program, arg] where arg is the first non-flag positional argument. Program names are normalized to their base name (e.g. /usr/bin/go becomes go). Only populated when ToolName is "execute" and the command parses successfully; nil otherwise. |
|
||||
| `provider_executed` | boolean | false | | Provider executed indicates the tool call was executed by the provider (e.g. Anthropic computer use). |
|
||||
| `provider_metadata` | array of integer | false | | Provider metadata holds provider-specific response metadata (e.g. Anthropic cache control hints) as raw JSON. Internal only: stripped by db2sdk before API responses. |
|
||||
| `reasoning_delta` | string | false | | |
|
||||
| `result` | array of integer | false | | |
|
||||
| `result` | object | false | | Result is the tool output, which can be any JSON value. |
|
||||
| `result_delta` | string | false | | |
|
||||
| `result_reset` | boolean | false | | |
|
||||
| `skill_description` | string | false | | Skill description is the short description from the skill's SKILL.md frontmatter. |
|
||||
@@ -3687,9 +3668,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3701,9 +3680,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3720,13 +3697,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -3770,9 +3742,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -3784,9 +3754,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -3803,13 +3771,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -5364,9 +5327,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -5378,9 +5339,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -5397,13 +5356,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -5547,9 +5501,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -5561,9 +5513,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -5580,13 +5530,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -5628,9 +5573,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"generation_attempt": 0,
|
||||
"history_version": 0,
|
||||
"part": {
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -5642,9 +5585,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -5661,13 +5602,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -5696,9 +5632,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -5710,9 +5644,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -5729,13 +5661,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -5815,9 +5742,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"generation_attempt": 0,
|
||||
"history_version": 0,
|
||||
"part": {
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -5829,9 +5754,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -5848,13 +5771,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -6682,9 +6600,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -6696,9 +6612,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -6715,13 +6629,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -6764,9 +6673,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -6778,9 +6685,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -6797,13 +6702,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -6847,9 +6747,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -6861,9 +6759,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -6880,13 +6776,8 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -7207,9 +7098,7 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
"unsafe_dynamic_tools": [
|
||||
{
|
||||
"description": "string",
|
||||
"input_schema": [
|
||||
0
|
||||
],
|
||||
"input_schema": {},
|
||||
"name": "string"
|
||||
}
|
||||
],
|
||||
@@ -7633,9 +7522,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
```json
|
||||
{
|
||||
"action": "create",
|
||||
"additional_fields": [
|
||||
0
|
||||
],
|
||||
"additional_fields": {},
|
||||
"build_reason": "autostart",
|
||||
"organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",
|
||||
"request_id": "266ea41d-adf5-480b-af50-15b940c2b846",
|
||||
@@ -7650,7 +7537,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|---------------------|------------------------------------------------|----------|--------------|-------------|
|
||||
| `action` | [codersdk.AuditAction](#codersdkauditaction) | false | | |
|
||||
| `additional_fields` | array of integer | false | | |
|
||||
| `additional_fields` | object | false | | |
|
||||
| `build_reason` | [codersdk.BuildReason](#codersdkbuildreason) | false | | |
|
||||
| `organization_id` | string | false | | |
|
||||
| `request_id` | string | false | | |
|
||||
@@ -7878,9 +7765,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
"value": "string"
|
||||
}
|
||||
],
|
||||
"state": [
|
||||
0
|
||||
],
|
||||
"state": "string",
|
||||
"template_version_id": "0ba39c92-1f1b-4c32-aa3e-9925d7713eb1",
|
||||
"template_version_preset_id": "512a53a7-30da-446e-a1fc-713c630baff1",
|
||||
"transition": "start"
|
||||
@@ -7898,7 +7783,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
| `reason` | [codersdk.CreateWorkspaceBuildReason](#codersdkcreateworkspacebuildreason) | false | | Reason sets the reason for the workspace build. |
|
||||
| `rich_parameter_values` | array of [codersdk.WorkspaceBuildParameter](#codersdkworkspacebuildparameter) | false | | Rich parameter values are optional. It will write params to the 'workspace' scope. This will overwrite any existing parameters with the same name. This will not delete old params not included in this list. |
|
||||
| `secrets` | array of [codersdk.WorkspaceSecretInput](#codersdkworkspacesecretinput) | false | | Secrets sets or removes workspace secrets for this build. Previous secrets that are not listed carry forward unless they were ephemeral or a listed secret uses their env_name or file_path. |
|
||||
| `state` | array of integer | false | | |
|
||||
| `state` | string | false | | State overrides the provisioner state for this build. JSON carries it as a base64 string. |
|
||||
| `template_version_id` | string | false | | |
|
||||
| `template_version_preset_id` | string | false | | Template version preset ID is the ID of the template version preset to use for the build. |
|
||||
| `transition` | [codersdk.WorkspaceTransition](#codersdkworkspacetransition) | true | | |
|
||||
@@ -9744,20 +9629,18 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
```json
|
||||
{
|
||||
"description": "string",
|
||||
"input_schema": [
|
||||
0
|
||||
],
|
||||
"input_schema": {},
|
||||
"name": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------|------------------|----------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `description` | string | false | | |
|
||||
| `input_schema` | array of integer | false | | Input schema JSON key "input_schema" uses snake_case for SDK consistency, deviating from the camelCase "inputSchema" convention used by MCP. |
|
||||
| `name` | string | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------|--------|----------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `description` | string | false | | |
|
||||
| `input_schema` | object | false | | Input schema JSON key "input_schema" uses snake_case for SDK consistency, deviating from the camelCase "inputSchema" convention used by MCP. |
|
||||
| `name` | string | false | | |
|
||||
|
||||
## codersdk.EditChatMessageRequest
|
||||
|
||||
@@ -9809,9 +9692,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -9823,9 +9704,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -9842,13 +9721,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -9891,9 +9765,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"chat_id": "efc9fe20-a1e5-4a8c-9c48-f1b30c1e4f86",
|
||||
"content": [
|
||||
{
|
||||
"args": [
|
||||
0
|
||||
],
|
||||
"args": {},
|
||||
"args_delta": "string",
|
||||
"completed_at": "2019-08-24T14:15:22Z",
|
||||
"content": "string",
|
||||
@@ -9905,9 +9777,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"context_file_skill_meta_file": "string",
|
||||
"context_file_truncated": true,
|
||||
"created_at": "2019-08-24T14:15:22Z",
|
||||
"data": [
|
||||
0
|
||||
],
|
||||
"data": "string",
|
||||
"end_line": 0,
|
||||
"file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",
|
||||
"file_name": "string",
|
||||
@@ -9924,13 +9794,8 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
]
|
||||
],
|
||||
"provider_executed": true,
|
||||
"provider_metadata": [
|
||||
0
|
||||
],
|
||||
"reasoning_delta": "string",
|
||||
"result": [
|
||||
0
|
||||
],
|
||||
"result": {},
|
||||
"result_delta": "string",
|
||||
"result_reset": true,
|
||||
"skill_description": "string",
|
||||
@@ -15337,9 +15202,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
|
||||
"results": [
|
||||
{
|
||||
"is_error": true,
|
||||
"output": [
|
||||
0
|
||||
],
|
||||
"output": {},
|
||||
"tool_call_id": "string"
|
||||
}
|
||||
]
|
||||
@@ -15756,9 +15619,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
"prerequisites": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -15821,9 +15682,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
"prerequisites": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -16049,9 +15908,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
"id": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -16081,9 +15938,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
|
||||
```json
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -16094,14 +15949,14 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|---------------|------------------------------------------------------------------------------|----------|--------------|-------------|
|
||||
| `default` | array of integer | false | | |
|
||||
| `description` | string | false | | |
|
||||
| `name` | string | false | | |
|
||||
| `required` | boolean | false | | |
|
||||
| `sensitive` | boolean | false | | |
|
||||
| `type` | [codersdk.TemplateBuilderVariableType](#codersdktemplatebuildervariabletype) | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|---------------|------------------------------------------------------------------------------|----------|--------------|-------------------------------------------------------------------------------------------------------|
|
||||
| `default` | object | false | | Default is the variable's default as a JSON string, number, or boolean, matching the variable's type. |
|
||||
| `description` | string | false | | |
|
||||
| `name` | string | false | | |
|
||||
| `required` | boolean | false | | |
|
||||
| `sensitive` | boolean | false | | |
|
||||
| `type` | [codersdk.TemplateBuilderVariableType](#codersdktemplatebuildervariabletype) | false | | |
|
||||
|
||||
## codersdk.TemplateBuilderModulesResponse
|
||||
|
||||
@@ -16122,9 +15977,7 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
"id": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -16899,20 +16752,18 @@ Restarts will only happen on weekdays in this list on weeks which line up with W
|
||||
```json
|
||||
{
|
||||
"is_error": true,
|
||||
"output": [
|
||||
0
|
||||
],
|
||||
"output": {},
|
||||
"tool_call_id": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------|------------------|----------|--------------|-------------|
|
||||
| `is_error` | boolean | false | | |
|
||||
| `output` | array of integer | false | | |
|
||||
| `tool_call_id` | string | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|----------------|---------|----------|--------------|---------------------------------------------------------|
|
||||
| `is_error` | boolean | false | | |
|
||||
| `output` | object | false | | Output is the tool output, which can be any JSON value. |
|
||||
| `tool_call_id` | string | false | | |
|
||||
|
||||
## codersdk.TraceConfig
|
||||
|
||||
@@ -18102,17 +17953,15 @@ If the schedule is empty, the user will be updated to use the default schedule.|
|
||||
|
||||
```json
|
||||
{
|
||||
"state": [
|
||||
0
|
||||
]
|
||||
"state": "string"
|
||||
}
|
||||
```
|
||||
|
||||
### Properties
|
||||
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|---------|------------------|----------|--------------|-------------|
|
||||
| `state` | array of integer | false | | |
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|---------|--------|----------|--------------|------------------------------------------------------------------------|
|
||||
| `state` | string | false | | State is the provisioner state, which JSON carries as a base64 string. |
|
||||
|
||||
## codersdk.UpdateWorkspaceDormancy
|
||||
|
||||
|
||||
Generated
+2
-6
@@ -41,9 +41,7 @@ curl -X GET http://coder-server:8080/api/v2/templatebuilder/bases \
|
||||
"prerequisites": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
@@ -285,9 +283,7 @@ curl -X GET http://coder-server:8080/api/v2/templatebuilder/modules \
|
||||
"id": "string",
|
||||
"variables": [
|
||||
{
|
||||
"default": [
|
||||
0
|
||||
],
|
||||
"default": {},
|
||||
"description": "string",
|
||||
"name": "string",
|
||||
"required": true,
|
||||
|
||||
Generated
+20
@@ -2812,6 +2812,9 @@ export interface ChatFilePart {
|
||||
readonly type: "file";
|
||||
readonly media_type: string;
|
||||
readonly name?: string;
|
||||
/**
|
||||
* Data holds an inline file's bytes, which JSON carries as a base64 string.
|
||||
*/
|
||||
readonly data?: string;
|
||||
readonly file_id?: string;
|
||||
}
|
||||
@@ -4016,6 +4019,9 @@ export interface ChatToolResultPart {
|
||||
readonly tool_call_id?: string;
|
||||
readonly tool_name?: string;
|
||||
readonly mcp_server_config_id?: string;
|
||||
/**
|
||||
* Result is the tool output, which can be any JSON value.
|
||||
*/
|
||||
readonly result?: unknown;
|
||||
readonly result_delta?: string;
|
||||
readonly reasoning_delta?: string;
|
||||
@@ -4980,6 +4986,10 @@ export interface CreateWorkspaceBuildRequest {
|
||||
readonly template_version_id?: string;
|
||||
readonly transition: WorkspaceTransition;
|
||||
readonly dry_run?: boolean;
|
||||
/**
|
||||
* ProvisionerState overrides the provisioner state for this build. JSON
|
||||
* carries it as a base64 string.
|
||||
*/
|
||||
readonly state?: string;
|
||||
/**
|
||||
* Orphan may be set for the Destroy transition.
|
||||
@@ -10489,6 +10499,10 @@ export interface TemplateBuilderModuleVariable {
|
||||
readonly name: string;
|
||||
readonly type: TemplateBuilderVariableType;
|
||||
readonly description: string;
|
||||
/**
|
||||
* Default is the variable's default as a JSON string, number, or boolean,
|
||||
* matching the variable's type.
|
||||
*/
|
||||
readonly default?: Record<string, string>;
|
||||
readonly required: boolean;
|
||||
readonly sensitive: boolean;
|
||||
@@ -10832,6 +10846,9 @@ export interface TokensFilter {
|
||||
*/
|
||||
export interface ToolResult {
|
||||
readonly tool_call_id: string;
|
||||
/**
|
||||
* Output is the tool output, which can be any JSON value.
|
||||
*/
|
||||
readonly output: Record<string, string>;
|
||||
readonly is_error: boolean;
|
||||
}
|
||||
@@ -11588,6 +11605,9 @@ export interface UpdateWorkspaceAutostartRequest {
|
||||
* provisioner state of a workspace build.
|
||||
*/
|
||||
export interface UpdateWorkspaceBuildStateRequest {
|
||||
/**
|
||||
* State is the provisioner state, which JSON carries as a base64 string.
|
||||
*/
|
||||
readonly state: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user