feat(generative-ai): parse faker mappings from LLM CLOUDP-341206#7259
Closed
feat(generative-ai): parse faker mappings from LLM CLOUDP-341206#7259
Conversation
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Update: This PR is being used as a loose reference to align on how to handle/unify the intermediary data structure(s) between the completion screen data, schema editor, faker script, and so on. Parts of it will be borrowed as needed
Adds a function that parses the LLM's structured output containing the fakerjs mappings that are turned into an executable factoryjs function.
The result of the Schema Editor component (tbd CLOUDP-333854) can be passed to
parseFakerMappings, which may satisfy the type{ fields: Array<FakerFieldMapping> }or be directly converted to it.Current gap that can be addressed in another PR is that the
probabilityfield is not used.Checklist
Motivation and Context
Open Questions
Dependents
Types of changes