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
Copy file name to clipboardExpand all lines: lib/httpapi/models.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package httpapi
3
3
import (
4
4
"time"
5
5
6
+
mf "github.com/coder/agentapi/lib/msgfmt"
6
7
st "github.com/coder/agentapi/lib/screentracker"
7
8
"github.com/coder/agentapi/lib/util"
8
9
"github.com/danielgtaylor/huma/v2"
@@ -35,7 +36,8 @@ type Message struct {
35
36
// StatusResponse represents the server status
36
37
typeStatusResponsestruct {
37
38
Bodystruct {
38
-
StatusAgentStatus`json:"status" doc:"Current agent status. 'running' means that the agent is processing a message, 'stable' means that the agent is idle and waiting for input."`
39
+
StatusAgentStatus`json:"status" doc:"Current agent status. 'running' means that the agent is processing a message, 'stable' means that the agent is idle and waiting for input."`
40
+
AgentType mf.AgentType`json:"agent_type" doc:"Type of the agent being used by the server."`
Copy file name to clipboardExpand all lines: openapi.json
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -270,13 +270,18 @@
270
270
"StatusChangeBody": {
271
271
"additionalProperties": false,
272
272
"properties": {
273
+
"agent_type": {
274
+
"description": "Type of the agent being used by the server.",
275
+
"type": "string"
276
+
},
273
277
"status": {
274
278
"$ref": "#/components/schemas/AgentStatus",
275
279
"description": "Agent status"
276
280
}
277
281
},
278
282
"required": [
279
-
"status"
283
+
"status",
284
+
"agent_type"
280
285
],
281
286
"type": "object"
282
287
},
@@ -292,13 +297,18 @@
292
297
"readOnly": true,
293
298
"type": "string"
294
299
},
300
+
"agent_type": {
301
+
"description": "Type of the agent being used by the server.",
302
+
"type": "string"
303
+
},
295
304
"status": {
296
305
"$ref": "#/components/schemas/AgentStatus",
297
306
"description": "Current agent status. 'running' means that the agent is processing a message, 'stable' means that the agent is idle and waiting for input."
0 commit comments