mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
* Add common /ai endpoints for agents and services and common component for agent selection * Fix vet api * Add a bunch of redux stuff * Fixes * Missed an add * fix types * Add a hook to determine if bridge is enabled * Add debounce to hook to prevent double fetches from PLUGIN_* and CONFIG_CHANGED event both firing when a plugin state is changed * Fix i18n * Rename to remove 'AI' (#34393) --------- Co-authored-by: Christopher Speller <crspeller@gmail.com> Co-authored-by: Mattermost Build <build@mattermost.com>
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
/api/v4/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"
|
|
/api/v4/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"
|
|
|