UNPKG

@cnbcool/mcp-server

Version:

CNB MCP Server. A comprehensive MCP server that provides seamless integration to the CNB's API(https://cnb.cool), offering a wide range of tools for repository management, pipelines operations and collaboration features

45 lines (43 loc) 1.75 kB
"use strict"; // @ts-nocheck /* tslint:disable */ /* eslint-disable */ /* * ------------------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ## * ## ## * ## AUTHOR: bapelin ## * ## SOURCE: https://cnb.woa.com/cnb/frontend-science/cnb-api-generate ## * ------------------------------------------------------------------------- * @Version 1.5.2 * @Source /{repo}/-/knowledge/base/query */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.queryKnowledgeBase = queryKnowledgeBase; const request_1 = __importDefault(require("../../helpers/request")); /** * @description 访问令牌调用此接口需包含以下权限。Required permissions for access token. * repo-code:r * @tags KnowledgeBase * @name queryKnowledgeBase * @summary 查询知识库,使用文档:https://docs.cnb.cool/zh/ai/knowledge-base.html * @request post:/{repo}/-/knowledge/base/query ---------------------------------- * @param {string} arg0 * @param {DtoQueryKnowledgeBaseReq} arg1 * @param {RequestConfig} arg2 - Other reuqest params */ async function queryKnowledgeBase(repo, query, { req, options, ...axiosConfig } = {}) { return await request_1.default.request({ ...axiosConfig, _next_req: req, options: options, url: `/${repo}/-/knowledge/base/query`, _apiTag: '/{repo}/-/knowledge/base/query', method: 'post', data: query }); }