ArchAstro. Types. ChatMember
(archastro v0.2.0)
Copy Markdown
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.
Summary
Types
@type t() :: %ArchAstro.Types.ChatMember{ agent: ArchAstro.Types.Agent.t() | ArchAstro.Unset.t(), membership_type: String.t() | ArchAstro.Unset.t(), type: String.t(), user: ArchAstro.Types.User.t() | ArchAstro.Unset.t() }
Functions
@spec from_map(ArchAstro.JSON.object()) :: t()
@spec matches?(ArchAstro.JSON.t()) :: boolean()
@spec to_map(t()) :: ArchAstro.JSON.object()