{ "openapi": "3.1.0", "info": { "title": "ADK Router Agent (A2A)", "version": "1.0.0" }, "paths": { "/metrics": { "get": { "summary": "Metrics", "description": "Endpoint that serves Prometheus metrics.", "operationId": "metrics_metrics_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/": { "get": { "summary": "Root", "operationId": "root__get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/health": { "get": { "summary": "Health", "operationId": "health_health_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/version": { "get": { "summary": "Get Version", "operationId": "get_version_version_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/spec": { "get": { "summary": "Get Spec", "description": "Retourne la sp\u00e9cification fonctionnelle (spec.md). Public \u2014 pas de JWT requis.", "operationId": "get_spec_spec_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/health/agents": { "get": { "summary": "Health Agents", "description": "ADR12-5 \u2014 Agr\u00e8ge la sant\u00e9 des 3 sous-agents (HR, Ops, Missions).", "operationId": "health_agents_health_agents_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/login": { "post": { "summary": "Login", "operationId": "login_login_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/logout": { "post": { "summary": "Logout", "operationId": "logout_logout_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/me": { "get": { "summary": "Get Me", "operationId": "get_me_me_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } } } }, "/warmup/degraded": { "post": { "summary": "Log Warmup Degraded", "description": "SRE \u2014 Logs warming degradation from frontend to stdout (JWT required).", "operationId": "log_warmup_degraded_warmup_degraded_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/query": { "post": { "summary": "Query", "operationId": "query_query_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueryRequest" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/history": { "get": { "summary": "Get History", "operationId": "get_history_history_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] }, "delete": { "summary": "Delete History", "operationId": "delete_history_history_delete", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/sessions": { "get": { "summary": "List Sessions", "description": "Liste les sessions de travail de l'utilisateur.", "operationId": "list_sessions_sessions_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] }, "post": { "summary": "Create Session", "description": "Cr\u00e9e une nouvelle session de travail (max 10 par utilisateur).", "operationId": "create_session_sessions_post", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/sessions/{session_id}": { "patch": { "summary": "Rename Session", "description": "Renomme une session de travail existante.", "operationId": "rename_session_sessions__session_id__patch", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "summary": "Delete Session", "description": "Supprime une session et son historique ADK associ\u00e9.", "operationId": "delete_session_sessions__session_id__delete", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "title": "Session Id" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } }, "/mcp/registry": { "get": { "summary": "Mcp Registry", "operationId": "mcp_registry_mcp_registry_get", "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } } }, "security": [ { "HTTPBearer": [] } ] } }, "/mcp/proxy/{server_name}/{path}": { "get": { "summary": "Proxy Mcp", "operationId": "proxy_mcp_mcp_proxy__server_name___path__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "server_name", "in": "path", "required": true, "schema": { "type": "string", "title": "Server Name" } }, { "name": "path", "in": "path", "required": true, "schema": { "type": "string", "title": "Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "delete": { "summary": "Proxy Mcp", "operationId": "proxy_mcp_mcp_proxy__server_name___path__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "server_name", "in": "path", "required": true, "schema": { "type": "string", "title": "Server Name" } }, { "name": "path", "in": "path", "required": true, "schema": { "type": "string", "title": "Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "patch": { "summary": "Proxy Mcp", "operationId": "proxy_mcp_mcp_proxy__server_name___path__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "server_name", "in": "path", "required": true, "schema": { "type": "string", "title": "Server Name" } }, { "name": "path", "in": "path", "required": true, "schema": { "type": "string", "title": "Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "put": { "summary": "Proxy Mcp", "operationId": "proxy_mcp_mcp_proxy__server_name___path__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "server_name", "in": "path", "required": true, "schema": { "type": "string", "title": "Server Name" } }, { "name": "path", "in": "path", "required": true, "schema": { "type": "string", "title": "Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } }, "post": { "summary": "Proxy Mcp", "operationId": "proxy_mcp_mcp_proxy__server_name___path__get", "security": [ { "HTTPBearer": [] } ], "parameters": [ { "name": "server_name", "in": "path", "required": true, "schema": { "type": "string", "title": "Server Name" } }, { "name": "path", "in": "path", "required": true, "schema": { "type": "string", "title": "Path" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } } } } } } }, "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array", "title": "Detail" } }, "type": "object", "title": "HTTPValidationError" }, "QueryRequest": { "properties": { "query": { "type": "string", "minLength": 1, "title": "Query", "description": "La requ\u00eate en langage naturel." }, "session_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Session Id", "description": "Identifiant de session ADK. Si absent, le sub JWT est utilis\u00e9 comme session_id (comportement par d\u00e9faut)." }, "user_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "User Id", "description": "Identifiant utilisateur propag\u00e9 depuis le JWT sub. Utilis\u00e9 pour l'isolation des sessions et le tracking FinOps." } }, "type": "object", "required": [ "query" ], "title": "QueryRequest", "description": "Payload envoy\u00e9 par le frontend ou le Router au endpoint POST /query d'un agent.\n\nDiff\u00e9rent de A2ARequest (communication inter-agents) : QueryRequest est destin\u00e9\naux appels initi\u00e9s par un utilisateur humain via le frontend.", "example": { "query": "Quels consultants sont disponibles ?" } }, "ValidationError": { "properties": { "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "type": "array", "title": "Location" }, "msg": { "type": "string", "title": "Message" }, "type": { "type": "string", "title": "Error Type" }, "input": { "title": "Input" }, "ctx": { "type": "object", "title": "Context" } }, "type": "object", "required": [ "loc", "msg", "type" ], "title": "ValidationError" } }, "securitySchemes": { "HTTPBearer": { "type": "http", "scheme": "bearer" } } } }