ILlmApplication.IOptions.validate for validation hook.
#203
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.
This pull request introduces enhancements to the LLM application schema configuration, primarily focusing on improving extensibility and customizability for validation and parameter handling. The most significant changes are the addition of a custom validation hook system and making the parameter separation logic optional and more flexible.
Validation and extensibility improvements
validateproperty toILlmApplication.IOptionsthat allows users to specify custom validation functions for specific class methods. This enables business logic validation and more detailed error reporting, replacing the default type validation when provided.IValidationHooktype to define the structure for these custom validation functions, ensuring type safety and method-level granularity.optionsproperty ofILlmApplicationto accept the new generic type signature, supporting the inclusion of class-specific validation hooks. [1] [2]IValidationtype inILlmApplication.tsto support the new validation feature.Parameter separation logic
separatefunction in bothILlmApplication.IOptionsandIHttpLlmApplication.IOptionsoptional (previously required), allowing for more flexible parameter composition between human and LLM. Also improved documentation for its intended use. [1] [2]Other changes
package.jsonto4.7.0-dev.20250805-3.ILlmApplication) fromIHttpLlmApplication.ts.