output-sdk
    Preparing search index...

    Type Alias PromptMessage

    Represents a single message in a prompt conversation.

    const msg: PromptMessage = {
    role: 'user',
    content: 'Hello, Claude!'
    };
    type PromptMessage = {
        content: string;
        role: string;
    }
    Index

    Properties

    Properties

    content: string

    The content of the message

    role: string

    The role of the message. Examples include 'system', 'user', and 'assistant'.