mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 00:03:04 +00:00
feat: model list (#96)
This commit is contained in:
parent
6a3345b954
commit
b74539172b
24 changed files with 1174 additions and 52 deletions
|
|
@ -102,6 +102,47 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/v1/agents/{agent}/models": {
|
||||
"get": {
|
||||
"tags": [
|
||||
"agents"
|
||||
],
|
||||
"operationId": "get_agent_models",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "agent",
|
||||
"in": "path",
|
||||
"description": "Agent id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/AgentModelsResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/agents/{agent}/modes": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
|
@ -669,6 +710,7 @@
|
|||
"mcpTools",
|
||||
"streamingDeltas",
|
||||
"itemStarted",
|
||||
"variants",
|
||||
"sharedProcess"
|
||||
],
|
||||
"properties": {
|
||||
|
|
@ -726,6 +768,9 @@
|
|||
},
|
||||
"toolResults": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"variants": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -832,6 +877,50 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"AgentModelInfo": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"defaultVariant": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"variants": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"nullable": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"AgentModelsResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"models"
|
||||
],
|
||||
"properties": {
|
||||
"defaultModel": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"models": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AgentModelInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"AgentModesResponse": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue