Prompt Registry
Function Calling
The Prompt Registry supports the OpenAI functions format. You can create a prompt using functions both visually and programmatically.
Be sure to read this OpenAI guide for more context.
Creating Visually
Functions can be defined, called, and set up visually through the Prompt Registry.
Publishing Programmatically
To publish a prompt template with functions programatically is very similar to how you would publish a regular prompt template. To add functions you can add the arguments functions
and function_call
to your prompt_template
object.
If you’re already calling OpenAI API, you can bundle the functions and publish it into the Prompt Registry, like this: