Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

New function typia.llm.applicationOfValidate(). #1418

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Conversation

samchon
Copy link
Owner

@samchon samchon commented Dec 8, 2024

This pull request includes several updates and new features, particularly focusing on the introduction of LLM (Large Language Model) function calling with validators. The changes span across multiple files, introducing new interfaces, functions, and updates to existing logic.

Version Updates:

  • Updated the version in package.json and packages/typescript-json/package.json to 7.1.0-dev.20241209. [1] [2] [3]

New Features:

  • Introduced ILlmApplicationOfValidate and ILlmFunctionOfValidate interfaces in src/schemas/llm/ for LLM function calling with validators. [1] [2]
  • Added applicationOfValidate function in src/llm.ts to create LLM function calling applications with validators.
  • Implemented LlmApplicationOfValidateProgrammer in src/programmers/llm/ to handle the validation logic for LLM applications.

Code Enhancements:

  • Enhanced LiteralFactory.write method to handle arrow functions and call expressions.
  • Added tsType property to MetadataParameter class in src/schemas/metadata/MetadataParameter.ts for better type handling. [1] [2]
  • Updated iterate_metadata_function to include tsType in src/factories/internal/metadata/iterate_metadata_function.ts.

Transformer Updates:

  • Added LlmApplicationOfValidateTransformer to src/transformers/CallExpressionTransformer.ts and updated the FUNCTORS record to include the new transformer. [1] [2]

These changes collectively enhance the functionality and extend the capabilities of the project, particularly in the context of LLM function calling and validation.

@samchon samchon added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 8, 2024
@samchon samchon self-assigned this Dec 8, 2024
Copy link

pkg-pr-new bot commented Dec 8, 2024

Open in Stackblitz

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

commit: 9bde368

Copy link

socket-security bot commented Dec 8, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 3.98 MB samchon

🚮 Removed packages: npm/[email protected]

View full report↗︎

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.

Everything is prepared.

@samchon samchon merged commit 97589c7 into master Dec 9, 2024
5 checks passed
@samchon samchon deleted the feat/llm-of-validate branch December 9, 2024 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant