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": [
|
||||
|
|
|
|||
|
|
@ -65,6 +65,8 @@ export interface components {
|
|||
questions: boolean;
|
||||
reasoning: boolean;
|
||||
sessionLifecycle: boolean;
|
||||
/** @description Whether this agent uses a shared long-running server process (vs per-turn subprocess) */
|
||||
sharedProcess: boolean;
|
||||
streamingDeltas: boolean;
|
||||
textMessages: boolean;
|
||||
toolCalls: boolean;
|
||||
|
|
@ -82,6 +84,7 @@ export interface components {
|
|||
id: string;
|
||||
installed: boolean;
|
||||
path?: string | null;
|
||||
serverStatus?: components["schemas"]["ServerStatusInfo"] | null;
|
||||
version?: string | null;
|
||||
};
|
||||
AgentInstallRequest: {
|
||||
|
|
@ -235,6 +238,20 @@ export interface components {
|
|||
QuestionStatus: "requested" | "answered" | "rejected";
|
||||
/** @enum {string} */
|
||||
ReasoningVisibility: "public" | "private";
|
||||
/**
|
||||
* @description Status of a shared server process for an agent
|
||||
* @enum {string}
|
||||
*/
|
||||
ServerStatus: "running" | "stopped" | "error";
|
||||
ServerStatusInfo: {
|
||||
baseUrl?: string | null;
|
||||
lastError?: string | null;
|
||||
/** Format: int64 */
|
||||
restartCount: number;
|
||||
status: components["schemas"]["ServerStatus"];
|
||||
/** Format: int64 */
|
||||
uptimeMs?: number | null;
|
||||
};
|
||||
/** @enum {string} */
|
||||
SessionEndReason: "completed" | "error" | "terminated";
|
||||
SessionEndedData: {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue