Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new decorator excluding an API operation from LLM function calling application composing.
This pull request introduces a new decorator for marking APIs as human-only, updates the module exports to include this new decorator, and adds extensive test configurations and mock implementations for various API functionalities. The most important changes include the addition of the
HumanRoute
decorator, updates to the module exports, and the creation of new test configurations and mock implementations.New Decorator Addition:
packages/core/src/decorators/HumanRoute.ts
: Added a newHumanRoute
decorator that marks APIs as human-only, preventing them from being included in LLM function calls.Module Export Updates:
packages/core/src/module.ts
: Updated exports to include the newHumanRoute
decorator.Test Configurations and Mock Implementations:
test/features/route-human/nestia.config.ts
: Added a new Nestia configuration file for setting up input, output, and swagger configurations.test/features/route-human/src/Backend.ts
: Implemented aBackend
class to manage the lifecycle of a NestJS application for testing purposes.test/features/route-human/src/api/functional/health/index.ts
: Added a mock implementation for the health check API endpoint.test/features/route-human/src/controllers/HealthController.ts
: Created aHealthController
with a human-only route using the newHumanRoute
decorator.These changes enhance the API's functionality by clearly distinguishing human-only routes, updating module exports, and providing comprehensive test setups and mock implementations for better testing and development workflows.