"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.azureCustomProviderRouter = void 0;
const express_1 = require("express");
const diagnostics_1 = require("../controller/azure-custom-provider/diagnostics");
const invoke_custom_provider_1 = require("../controller/azure-custom-provider/invoke-custom-provider");
const router = (0, express_1.Router)();
/**
 * Verify which Azure identity the server uses (compare oid to IAM role assignment).
 */
router.get('/diagnostics', diagnostics_1.getAzureCustomProviderDiagnostics);
/**
 * Sandbox endpoint: run bundled example custom provider in Azure code interpreter.
 * POST body: { prompt, language: "py"|"js", providerFilePath?: "provider.py", env?, bundleDirectory?, context? }
 * Function name is fixed: call_api (Python) / callApi (JavaScript).
 */
router.post('/invoke', invoke_custom_provider_1.invokeCustomProvider);
exports.azureCustomProviderRouter = router;
//# sourceMappingURL=azureCustomProvider.js.map