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

t()

@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

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()