Arize Phoenix TS
    Preparing search index...
    • List all prompts available to the client.

      Parameters

      Returns Promise<
          {
              description?: string
              | null;
              id: string;
              metadata?: { [key: string]: unknown } | null;
              name: string;
              source_prompt_id?: string | null;
          }[],
      >

      import { listPrompts } from "@arizeai/phoenix-client/prompts";

      const prompts = await listPrompts({});
      console.log(prompts);

      If the prompts cannot be listed or the response is invalid.