ILlmFunction.ISeparated.llm
to be not null.
#125
Merged
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.
Even though no property exists in the LLM side (properties exist only in the Human side), the
ILlmFunction.ISeparated.llm
property value should be not null for covenience.This PR enforces the
ILlmFunction.ISeparated.llm
not to benull
.This pull request includes several changes aimed at ensuring the
llm
property always has a defined structure, even when it would otherwise be null. The changes span multiple files and affect both the schema composers and the test files.Schema Composer Changes:
src/composers/llm/ChatGptSchemaComposer.ts
: Updated thellm
property to default to an empty object structure if it is null.src/composers/llm/ClaudeSchemaComposer.ts
: Modified theseparateParameters
function to ensure thellm
property has a defined structure.src/composers/llm/GeminiSchemaComposer.ts
: Adjusted theseparateParameters
function to return a structuredllm
property.src/composers/llm/LlmSchemaV3Composer.ts
: Ensured thellm
property defaults to an empty object structure if it is null.src/composers/llm/LlmSchemaV3_1Composer.ts
: Updated thellm
property to have a default structure when null.Structure Changes:
src/structures/IHttpLlmFunction.ts
: Modified theISeparated
interface to ensure thellm
property is never null.src/structures/ILlmFunction.ts
: Updated theISeparated
interface to ensure thellm
property always has a defined structure.Test File Changes:
test/features/llm/validate_llm_parameters_separate_array.ts
: Updated tests to reflect the new default structure of thellm
property.test/features/llm/validate_llm_parameters_separate_nested.ts
: Adjusted tests to ensure thellm
property has a defined structure.test/features/llm/validate_llm_parameters_separate_object.ts
: Modified tests to account for the new default structure of thellm
property.test/features/llm/validate_llm_parameters_separate_ref.ts
: Updated tests to reflect the changes in thellm
property structure.test/features/llm/validate_llm_schema_separate_string.ts
: Adjusted tests to ensure thellm
property always has a defined structure.