The Define OpenAI Function
block is designed to assist users in defining an OpenAI function by formatting the function request according to the exact specifications required by the OpenAI API.
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | name | string | The name you wish to assign to the OpenAI function. |
input | description | string | A concise explanation of what the function does. |
input | parameters | list | A list of objects that detail each parameter for the function, including its name , type , and a brief description. |
output | function_json | object | The JSON object representation that defines your OpenAI function, ready for integration with other blocks like Ask AI. |
Consider how this block can enhance productivity in different scenarios:
In summary, whenever there is a need for creating or defining APIs that interact with OpenAI functionalities, the Define OpenAI Function
block serves as an essential tool!