TRACELOOP_API_KEY
before you start. Check out the SDK’s getting started
guide for more information.Create a new prompt
Define it in the Prompt Registry
{{ variable_name }}
.
The values of these variables will be passed in when you retrieve the prompt in your code.For more information see the Registry Documentation.Deploy the prompt to your developement environement
Use the prompt in your code
TRACELOOP_API_KEY
.get_prompt
function.
For example, if you’ve created a prompt with the key joke_generator
and a single variable persona
:prompt_args
is compatible with the API used by the
foundation models SDKs (OpenAI, Anthropic, etc.) which means you can directly
plug in the response to the appropriate API call.