mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
The OpenAPI document keys every operation by its full path, so the spec described endpoints that no longer exist the moment the server moved. The openApiSync analyzer cross-checks each registered subrouter against that document and reconstructs the prefix from a literal of its own, so spec and analyzer have to move together or every route reports as missing. Its special case for the v5 root goes away with the root itself. The api/v4 directory keeps its name: it is where the spec sources live, not a URL anyone requests. Co-authored-by: Hanzo Dev <[email protected]>
81 lines
2.3 KiB
YAML
81 lines
2.3 KiB
YAML
/v1/team/agents:
|
|
get:
|
|
tags:
|
|
- agents
|
|
summary: Get available agents
|
|
description: >
|
|
Retrieve all available agents from the plugin's bridge API.
|
|
If a user ID is provided, only agents accessible to that user are returned.
|
|
|
|
##### Permissions
|
|
|
|
Must be authenticated.
|
|
|
|
__Minimum server version__: 11.2
|
|
operationId: GetAgents
|
|
responses:
|
|
"200":
|
|
description: Agents retrieved successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/AgentsResponse"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"500":
|
|
$ref: "#/components/responses/InternalServerError"
|
|
/v1/team/agents/status:
|
|
get:
|
|
tags:
|
|
- agents
|
|
summary: Get agents bridge status
|
|
description: >
|
|
Retrieve the status of the AI plugin bridge.
|
|
Returns availability boolean and a reason code if unavailable.
|
|
|
|
##### Permissions
|
|
|
|
Must be authenticated.
|
|
|
|
__Minimum server version__: 11.2
|
|
operationId: GetAgentsStatus
|
|
responses:
|
|
"200":
|
|
description: Status retrieved successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/AgentsIntegrityResponse"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"500":
|
|
$ref: "#/components/responses/InternalServerError"
|
|
/v1/team/llmservices:
|
|
get:
|
|
tags:
|
|
- agents
|
|
summary: Get available LLM services
|
|
description: >
|
|
Retrieve all available LLM services from the plugin's bridge API.
|
|
If a user ID is provided, only services accessible to that user
|
|
(via their permitted bots) are returned.
|
|
|
|
##### Permissions
|
|
|
|
Must be authenticated.
|
|
|
|
__Minimum server version__: 11.2
|
|
operationId: GetLLMServices
|
|
responses:
|
|
"200":
|
|
description: LLM services retrieved successfully
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: "#/components/schemas/ServicesResponse"
|
|
"401":
|
|
$ref: "#/components/responses/Unauthorized"
|
|
"500":
|
|
$ref: "#/components/responses/InternalServerError"
|
|
|