ReadableRegex/readableRegex

Implement AI based transform function

Offen

#90 geöffnet am 13.02.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (22 Forks)auto 404
aienhancementhelp wanted

Repository-Metriken

Stars
 (12 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Similar to the isValid AI feature #22, we want to have a transform function that can take an input and let AI transform it how it feels best.

For example, the inputString could be a JSON object, and the desired output could be a CSV file.

Input object could be something like this:

{
"inputString": "[{'mph': 20, 'hp': 50, ...}, {'mph': 90, 'hp': 70, ...}]",
"transformationInstruction": "Can you turn this json array into a csv string? The input string is a stringified JSON object."
}

Here could be the output:

{
"result": "mph,hp\n 20,50\n,90,70\n",
"explanation": "I converted the JSON string to csv by doing the following....<more details here>"
}

Let's complete #22 prior to this so we can leverage the same LLM or API implementation

Contributor Guide