@nestia/core
Version:
Super-fast validation decorators of NestJS
25 lines • 912 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HumanRoute = HumanRoute;
const SwaggerCustomizer_1 = require("./SwaggerCustomizer");
/**
* Human only API marking.
*
* This decorator marks the API for human only, so that LLM function calling
* schema composer (of [`@samchon/openapi`](https://github.com/samchon/openapi))
* excludes the API.
*
* In other words, if you adjust the `@HumanRoute()` decorator to the API, the
* API never participates in the LLM function calling. When calling the
* {@link HttpLlm.application} function, matched {@link IHttpLlmFunction} data
* never be composed.
*
* @author Jeongho Nam - https://github.com/samchon
* @returns Method decorator
*/
function HumanRoute() {
return (0, SwaggerCustomizer_1.SwaggerCustomizer)((props) => {
props.route["x-samchon-human"] = true;
});
}
//# sourceMappingURL=HumanRoute.js.map