mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 06:04:43 +00:00
fix: add ServerStatus and ServerStatusInfo to OpenAPI schemas
This commit is contained in:
parent
2a922ef562
commit
d5e2a27a5f
3 changed files with 1012 additions and 185 deletions
|
|
@ -665,7 +665,8 @@
|
|||
"commandExecution",
|
||||
"fileChanges",
|
||||
"mcpTools",
|
||||
"streamingDeltas"
|
||||
"streamingDeltas",
|
||||
"sharedProcess"
|
||||
],
|
||||
"properties": {
|
||||
"commandExecution": {
|
||||
|
|
@ -701,6 +702,10 @@
|
|||
"sessionLifecycle": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sharedProcess": {
|
||||
"type": "boolean",
|
||||
"description": "Whether this agent uses a shared long-running server process (vs per-turn subprocess)"
|
||||
},
|
||||
"streamingDeltas": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
@ -762,6 +767,14 @@
|
|||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"serverStatus": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ServerStatusInfo"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
|
|
@ -1388,6 +1401,46 @@
|
|||
"private"
|
||||
]
|
||||
},
|
||||
"ServerStatus": {
|
||||
"type": "string",
|
||||
"description": "Status of a shared server process for an agent",
|
||||
"enum": [
|
||||
"running",
|
||||
"stopped",
|
||||
"error"
|
||||
]
|
||||
},
|
||||
"ServerStatusInfo": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"status",
|
||||
"restartCount"
|
||||
],
|
||||
"properties": {
|
||||
"baseUrl": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"lastError": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"restartCount": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"minimum": 0
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/components/schemas/ServerStatus"
|
||||
},
|
||||
"uptimeMs": {
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"nullable": true,
|
||||
"minimum": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
"SessionEndReason": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue