Make reference option of AI schema to be default true.
#192
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 refactors the
DEFAULT_CONFIGSstructure insrc/composers/LlmSchemaComposer.tsto use centralized default configurations from individual schema composers and updates the default values for thereferenceproperty across multiple schema structures. Additionally, it modifies test cases to explicitly override thereferenceproperty when validating schemas.Refactoring and Centralization of Default Configurations:
src/composers/LlmSchemaComposer.ts: Replaced hardcodedDEFAULT_CONFIGSvalues with references toDEFAULT_CONFIGconstants defined in individual schema composers. This improves maintainability by centralizing configuration definitions.ChatGptSchemaComposer,ClaudeSchemaComposer,DeepSeekSchemaComposer,GeminiSchemaComposer,LlamaSchemaComposer,LlmSchemaV3Composer,LlmSchemaV3_1Composer): AddedDEFAULT_CONFIGconstants for each schema composer to define default configurations. [1] [2] [3] [4] [5] [6] [7]Updates to Default Values for
referenceProperty:IChatGptSchema,IClaudeSchema,IDeepSeekSchema,ILlamaSchema,ILlmSchemaV3_1): Changed the default value of thereferenceproperty fromfalsetotruein the documentation comments, aligning with the new default configurations. [1] [2] [3] [4] [5]Test Case Adjustments:
validate_llm_schema_enum.ts,validate_llm_schema_enum_reference.ts): Updated test configurations to explicitly setreference: falsewhen validating schemas, ensuring tests reflect scenarios where thereferenceproperty is overridden. [1] [2]