Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
0
Share

Smart json transformer

TASK
Typing name :  TASK.gws_core.SmartJsonTransformer Brick :  gws_core

Json transformer that uses AI (OpenAI).

This task uses openAI API to generate python code that transforms a json. This code is then automatically executed to apply transformation on the input json.

The structure of the json is transfered to OpenAI, not the json itself.

This is useful when you want to transform a json in a way that is not trivial.

Input

JSON Dict
Resource that holds a JSON dict

Output

JSON Dict
Resource that holds a JSON dict
Generated code
Modified generated code that can be used in a python agent directly.

Configuration

prompt

Type : open_ai_chat_param
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.