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