All pages
Powered by GitBook
1 of 1

Loading...

Prompts in Code

Pull and push prompt changes via Phoenix's Python and TypeScript Clients

Pull and push prompt changes via Phoenix's Python and TypeScript Clients

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 and . 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

tool calling
response formats