Arize Phoenix TS
    Preparing search index...
    interface AnthropicPromptVersionInput {
        description?: string;
        invocationParameters: {
            max_tokens: number;
            stop_sequences?: string[];
            temperature?: number;
            thinking?:
                | { type: "disabled" }
                | { budget_tokens: number; type: "enabled" };
            top_p?: number;
        };
        modelName: string;
        modelProvider: "ANTHROPIC";
        template: {
            content: | string
            | (
                | { text: string; type: "text" }
                | {
                    tool_call: { arguments: string; name: string; type: "function" };
                    tool_call_id: string;
                    type: "tool_call";
                }
                | {
                    tool_call_id: string;
                    tool_result: | string
                    | number
                    | boolean
                    | { [key: string]: unknown }
                    | unknown[]
                    | null;
                    type: "tool_result";
                }
            )[];
            role: | "user"
            | "assistant"
            | "model"
            | "ai"
            | "tool"
            | "system"
            | "developer";
        }[];
        templateFormat?: "NONE"
        | "MUSTACHE"
        | "F_STRING";
    }

    Hierarchy

    • PromptVersionInputBase
      • AnthropicPromptVersionInput
    Index

    Properties

    description?: string

    The description of the prompt version.

    invocationParameters: {
        max_tokens: number;
        stop_sequences?: string[];
        temperature?: number;
        thinking?:
            | { type: "disabled" }
            | { budget_tokens: number; type: "enabled" };
        top_p?: number;
    }

    The invocation parameters for the prompt version. For Anthropic, the invocation parameters are required since max_tokens is required.

    Type Declaration

    • max_tokens: number

      Max Tokens

    • Optionalstop_sequences?: string[]

      Stop Sequences

    • Optionaltemperature?: number

      Temperature

    • Optionalthinking?: { type: "disabled" } | { budget_tokens: number; type: "enabled" }

      Thinking

    • Optionaltop_p?: number

      Top P

    modelName: string

    The name of the model to use for the prompt version.

    modelProvider: "ANTHROPIC"
    template: {
        content:
            | string
            | (
                | { text: string; type: "text" }
                | {
                    tool_call: { arguments: string; name: string; type: "function" };
                    tool_call_id: string;
                    type: "tool_call";
                }
                | {
                    tool_call_id: string;
                    tool_result: | string
                    | number
                    | boolean
                    | { [key: string]: unknown }
                    | unknown[]
                    | null;
                    type: "tool_result";
                }
            )[];
        role: | "user"
        | "assistant"
        | "model"
        | "ai"
        | "tool"
        | "system"
        | "developer";
    }[]

    The template for the prompt version. Currently only chat is supported.

    Type Declaration

    • content:
          | string
          | (
              | { text: string; type: "text" }
              | {
                  tool_call: { arguments: string; name: string; type: "function" };
                  tool_call_id: string;
                  type: "tool_call";
              }
              | {
                  tool_call_id: string;
                  tool_result: | string
                  | number
                  | boolean
                  | { [key: string]: unknown }
                  | unknown[]
                  | null;
                  type: "tool_result";
              }
          )[]

      Content

    • role: "user" | "assistant" | "model" | "ai" | "tool" | "system" | "developer"

      Role

    templateFormat?: "NONE" | "MUSTACHE" | "F_STRING"

    The format of the template.

    "MUSTACHE"