Prompts in Code
Pull and push prompt changes via Phoenix's Python and TypeScript Clients
Last updated
Was this helpful?
Pull and push prompt changes via Phoenix's Python and TypeScript Clients
Last updated
Was this helpful?
Using Phoenix as a backend, Prompts can be managed and manipulated via code by using our Python or TypeScript SDKs.
With the Phoenix Client SDK you can:
Create / Update prompts dynamically
Pull prompts templates by name, version, or tag
Format prompt templates with runtime variables and use them in your code. Native support for OpenAI, Anthropic, Gemini, Vercel AI SDK, and more. No propriatry client necessary.
Support for tool calling and response formats. Execute tools defined within the prompt. Phoenix prompts encompasses more than just the text and messages.
To learn more about managing Prompts in code, see Using a prompt