ai.syui.log.chat

syui.ai

Documentation

Record containing a chat message in a conversation.

main record

Record containing a chat message in a conversation.

Record Key tid Timestamp-based ID

Properties

author string did Required

DID of the message author.

content string Required

The content of the message.

maxLength: 100000 bytesmaxGraphemes: 10000 graphemes
createdAt string datetime Required

Client-declared timestamp when this message was created.

lang string Optional

Language code of the original content (e.g., 'ja', 'en').

maxLength: 10 bytes
parent string at-uri Optional

AT-URI of the parent message being replied to.

root string at-uri Optional

AT-URI of the root message in the thread.

translations ref #translationMap Optional

Translations of the message in other languages.

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "content",
      "author",
      "createdAt"
    ],
    "properties": {
      "lang": {
        "type": "string",
        "maxLength": 10,
        "description": "Language code of the original content (e.g., 'ja', 'en')."
      },
      "root": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the root message in the thread."
      },
      "author": {
        "type": "string",
        "format": "did",
        "description": "DID of the message author."
      },
      "parent": {
        "type": "string",
        "format": "at-uri",
        "description": "AT-URI of the parent message being replied to."
      },
      "content": {
        "type": "string",
        "maxLength": 100000,
        "description": "The content of the message.",
        "maxGraphemes": 10000
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "Client-declared timestamp when this message was created."
      },
      "translations": {
        "ref": "#translationMap",
        "type": "ref",
        "description": "Translations of the message in other languages."
      }
    }
  },
  "description": "Record containing a chat message in a conversation."
}
translation object

A translation of a chat message.

Properties

content string Optional

No description available.

maxLength: 100000 bytesmaxGraphemes: 10000 graphemes
View raw schema
{
  "type": "object",
  "properties": {
    "content": {
      "type": "string",
      "maxLength": 100000,
      "maxGraphemes": 10000
    }
  },
  "description": "A translation of a chat message."
}
translationMap object

Map of language codes to translations.

Properties

View raw schema
{
  "type": "object",
  "properties": {
    "en": {
      "ref": "#translation",
      "type": "ref"
    },
    "ja": {
      "ref": "#translation",
      "type": "ref"
    }
  },
  "description": "Map of language codes to translations."
}

Lexicon Garden

@