mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 08:03:46 +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",
|
"commandExecution",
|
||||||
"fileChanges",
|
"fileChanges",
|
||||||
"mcpTools",
|
"mcpTools",
|
||||||
"streamingDeltas"
|
"streamingDeltas",
|
||||||
|
"sharedProcess"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"commandExecution": {
|
"commandExecution": {
|
||||||
|
|
@ -701,6 +702,10 @@
|
||||||
"sessionLifecycle": {
|
"sessionLifecycle": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"sharedProcess": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether this agent uses a shared long-running server process (vs per-turn subprocess)"
|
||||||
|
},
|
||||||
"streamingDeltas": {
|
"streamingDeltas": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
|
@ -762,6 +767,14 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
},
|
},
|
||||||
|
"serverStatus": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/ServerStatusInfo"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
"version": {
|
"version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
|
@ -1388,6 +1401,46 @@
|
||||||
"private"
|
"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": {
|
"SessionEndReason": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ export interface components {
|
||||||
questions: boolean;
|
questions: boolean;
|
||||||
reasoning: boolean;
|
reasoning: boolean;
|
||||||
sessionLifecycle: boolean;
|
sessionLifecycle: boolean;
|
||||||
|
/** @description Whether this agent uses a shared long-running server process (vs per-turn subprocess) */
|
||||||
|
sharedProcess: boolean;
|
||||||
streamingDeltas: boolean;
|
streamingDeltas: boolean;
|
||||||
textMessages: boolean;
|
textMessages: boolean;
|
||||||
toolCalls: boolean;
|
toolCalls: boolean;
|
||||||
|
|
@ -82,6 +84,7 @@ export interface components {
|
||||||
id: string;
|
id: string;
|
||||||
installed: boolean;
|
installed: boolean;
|
||||||
path?: string | null;
|
path?: string | null;
|
||||||
|
serverStatus?: components["schemas"]["ServerStatusInfo"] | null;
|
||||||
version?: string | null;
|
version?: string | null;
|
||||||
};
|
};
|
||||||
AgentInstallRequest: {
|
AgentInstallRequest: {
|
||||||
|
|
@ -235,6 +238,20 @@ export interface components {
|
||||||
QuestionStatus: "requested" | "answered" | "rejected";
|
QuestionStatus: "requested" | "answered" | "rejected";
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
ReasoningVisibility: "public" | "private";
|
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} */
|
/** @enum {string} */
|
||||||
SessionEndReason: "completed" | "error" | "terminated";
|
SessionEndReason: "completed" | "error" | "terminated";
|
||||||
SessionEndedData: {
|
SessionEndedData: {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue