@adcp/client API Reference - v3.3.3
    Preparing search index...

    Interface Message

    Represents a single message in a conversation with an agent

    interface Message {
        id: string;
        role: "agent" | "user" | "system";
        content: any;
        timestamp: string;
        metadata?: { toolName?: string; type?: string; [key: string]: any };
    }
    Index

    Properties

    id: string

    Unique identifier for this message

    role: "agent" | "user" | "system"

    Role of the message sender

    content: any

    Message content - can be structured or text

    timestamp: string

    Timestamp when message was created

    metadata?: { toolName?: string; type?: string; [key: string]: any }

    Optional metadata about the message

    Type Declaration

    • [key: string]: any

      Additional context data

    • OptionaltoolName?: string

      Tool/task name if this message is tool-related

    • Optionaltype?: string

      Message type (request, response, clarification, etc.)