@archastro/sdk
    Preparing search index...

    Interface ChatMember

    A participant in a chat thread, which may be either a human user or an AI agent. Exactly one of user or agent is populated depending on type.

    interface ChatMember {
        agent?: Agent;
        membership_type?: string;
        type: string;
        user?: User;
    }
    Index

    Properties

    agent?: Agent

    Full agent object for this member. Populated when type is "agent"; null for user members.

    membership_type?: string

    Role of this member within the thread. Common values are "owner" and "member". null when the membership type is not applicable.

    type: string

    Kind of participant. One of "user" (a human user) or "agent" (an AI agent).

    user?: User

    Full user object for this member. Populated when type is "user"; null for agent members.