Skip to content

Conversation

samchon
Copy link
Owner

@samchon samchon commented Aug 5, 2025

This pull request introduces support for a new validate option in the LLM application/controller APIs, updates dependencies, and makes several improvements and corrections to the codebase and test schemas. The most important changes are grouped below:

Feature: Add validate option to LLM APIs

  • Added support for a validate option in ILlmApplication.IOptions, allowing per-function validation logic to be attached and invoked within LLM applications and controllers (src/internal/_llmApplicationFinalize.ts, src/llm.ts, src/transformers/features/llm/LlmApplicationTransformer.ts). [1] [2] [3] [4] [5] [6] [7] [8]

  • Updated test code to exercise and demonstrate the new validate logic for LLM controllers (test/src/debug/llm.ts). [1] [2]

Dependency updates

  • Upgraded @samchon/openapi from version 4.6.0 to 4.7.1 in both package.json and lockfile, ensuring compatibility with new features. [1] [2] [3] [4]

Other improvements and corrections

  • Bumped package version to 9.7.0-dev.20250805 in package.json.
  • Improved clarity and consistency of schema descriptions in several test JSON files. [1] [2] [3] [4]
  • Fixed the order and schema details for Type<"int32"> and Type<"uint32"> in TypeTagTypeUnion.json test schema. [1] [2]

@samchon samchon requested a review from Copilot August 5, 2025 17:18
@samchon samchon self-assigned this Aug 5, 2025
@samchon samchon added the enhancement New feature or request label Aug 5, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces custom validation hook support for LLM applications and controllers, allowing users to provide custom validation functions for each API method. Additionally, it updates dependencies and improves various schema documentation and test outputs.

  • Added validate option to ILlmApplication.IOptions enabling custom validation functions per method
  • Updated @samchon/openapi dependency from version 4.6.0 to 4.7.1
  • Improved schema documentation clarity and fixed type ordering in test schemas

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/llm.ts Extended options type to include validate parameter for application and controller functions
src/internal/_llmApplicationFinalize.ts Added validation hook assignment logic and type definitions
src/transformers/features/llm/LlmApplicationTransformer.ts Modified transformer to support validate option alongside separate
test/src/features/issues/test_issue_1631_llm_application_custom_validate.ts New test demonstrating custom validation functionality
test/src/debug/llm.ts Refactored debug code to use proper function structure
test/schemas/reflect/metadata/TypeTagTypeUnion.json Fixed ordering and schema details for int32/uint32 types
Various schema files Updated documentation descriptions for better clarity
package.json Version bump and dependency update
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Copy link

pkg-pr-new bot commented Aug 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/typia@1632

commit: 68da2f3

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​samchon/​openapi@​4.6.0 ⏵ 4.7.1100 +110010096 +2100

View full report

@samchon samchon merged commit fcba9a9 into master Aug 5, 2025
10 checks passed
@samchon samchon deleted the feat/hook branch August 5, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant