Skip to content

typia.llm.application function to support custom validate hook functions #1631

@samchon

Description

@samchon

Support new feature from @samchon/openapi like below.

import typia, { IValidation } from "typia";

import { BbsArticleService } from "./BbsArticleService";
import { IBbsArticle } from "./IBbsArticle";

typia.llm.application<BbsArticleService, "chatgpt">({
  create: (input: unknown): IValidation<IBbsArticle.ICreate> => {
    return typia.validate<IBbsArticle.ICreate>(input);
  },
});

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions