Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New embedded function IHttpLlmFunction.validate()for validation feedback #147

Merged
merged 5 commits into from
Mar 1, 2025

Conversation

samchon
Copy link
Owner

@samchon samchon commented Mar 1, 2025

This pull request includes multiple changes primarily focusing on updates to dependencies, refactoring of import paths, and the addition of new utility functions. The most significant changes include updating the version in package.json, refactoring import paths for consistency, and adding new utility functions for various format validations.

Dependency Updates:

  • package.json: Updated the version from 3.0.0-dev.20250226 to 3.0.0-dev.20250301 and added the randexp dependency. [1] [2]

Refactoring:

  • Refactored import paths to move IResult from ../../typings/IResult to ../../structures/IResult in multiple files for consistency:
    • src/composers/llm/ChatGptSchemaComposer.ts
    • src/composers/llm/ClaudeSchemaComposer.ts
    • src/composers/llm/GeminiSchemaComposer.ts
    • src/composers/llm/LlamaSchemaComposer.ts
    • src/composers/llm/LlmParametersComposer.ts
    • src/composers/llm/LlmSchemaV3Composer.ts
    • src/composers/llm/LlmSchemaV3_1Composer.ts

Code Refactoring:

New Utility Functions:

  • Added new utility functions for format validations:
    • _isBigintString
    • _isFormatByte
    • _isFormatDate
    • _isFormatDateTime
    • _isFormatDuration
    • _isFormatEmail
    • _isFormatHostname
    • _isFormatIdnEmail
    • _isFormatIdnHostname
    • _isFormatIpv4

@samchon samchon added the enhancement New feature or request label Mar 1, 2025
@samchon samchon self-assigned this Mar 1, 2025
Copy link
Owner Author

@samchon samchon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test OK

@samchon samchon merged commit f8d1453 into v3.0 Mar 1, 2025
4 checks passed
@samchon samchon deleted the feat/validate branch March 1, 2025 17:09
samchon added a commit that referenced this pull request Mar 1, 2025
* Add `IJsonSchemaAttribute`. (#135)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance IJsonSchemaAttribute type with nested items. (#136)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHttpMigrateRoute.emendedPath` (#137)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHTtpMigrateRoute.emendedPath`

* Test whether `IHttpLlmApplication` covers ILlmApplication (#138)

* Add `IJsonSchemaAttribute`.

* Publish as v2.5

* Enhance `IJsonSchemaAttribute` type with nested items.

* Change rule of the `IHTtpMigrateRoute.emendedPath`

* Test whether `IHttpLlmApplication` covers `ILlmApplication`

* missing esm module build (#134)

* feat: build all module in esm

* feat: add rollup-plugin-auto-external

Adds rollup-plugin-auto-external to automatically exclude dependencies and
peerDependencies from the bundle to reduce bundle size and improve build
performance.

* New embedded function `IHttpLlmFunction.validate()`for validation feedback (#147)

* Developing internal validator

* Prepared testing program

* Only object discriminator is left

* Fiix HTTP application accessors

* Validator implementation completed

* Publish v3

---------

Co-authored-by: ryoppippi <1560508+ryoppippi@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant