Jido.Chat.Participant (Jido Chat v1.0.0)

Copy Markdown View Source

Represents a participant in conversations (human, agent, or system).

Participants are mapped to external identities via external_ids which stores platform-specific user IDs.

Summary

Functions

Creates a new participant with generated ID

Returns the Zoi schema for Participant

Types

t()

@type t() :: %Jido.Chat.Participant{
  capabilities: [atom()],
  external_ids: map(),
  id: binary(),
  identity: map(),
  metadata: map(),
  presence: :online | :away | :busy | :offline,
  type: :human | :agent | :system
}

Functions

new(attrs)

Creates a new participant with generated ID

schema()

Returns the Zoi schema for Participant