Langfuse JS/TS SDKs
    Preparing search index...

    Type Alias CreateChatPromptBodyWithPlaceholders

    CreateChatPromptBodyWithPlaceholders: { type: "chat" } & Omit<
        CreatePromptRequest.Chat,
        "type"
        | "prompt",
    > & { prompt: (ChatMessage | ChatMessageWithPlaceholders)[] }

    Type for creating chat prompts that support both regular messages and placeholders.

    Extends the standard chat prompt creation request to allow mixed content types.

    Type declaration

    • type: "chat"

      Specifies this is a chat prompt

    • prompt: (ChatMessage | ChatMessageWithPlaceholders)[]

      Array of chat messages and/or placeholders