network.sharedcomputer.chat.message
One turn in a conversation. A reply uses its parent's key plus '.r' and the generation attempt, e.g. '.r0', '.r1'.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | chat.sharedcomputer.network |
| Indexed |
Checks
Validunlimited-stringdefs.main.record.properties.roleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.record.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "One turn in a conversation. A reply uses its parent's key plus '.r' and the generation attempt, e.g. '.r0', '.r1'.",
"key": "any",
"record": {
"properties": {
"content": {
"refs": [
"network.sharedcomputer.chat.defs#plainContent",
"network.sharedcomputer.chat.defs#encryptedContent"
],
"type": "union"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"effort": {
"description": "The reasoning effort (assistant message).",
"ref": "network.sharedcomputer.chat.defs#effort",
"type": "ref"
},
"error": {
"maxLength": 3000,
"type": "string"
},
"generation": {
"description": "Asks the assistant to reply (user message).",
"ref": "network.sharedcomputer.chat.defs#generationRequest",
"type": "ref"
},
"model": {
"description": "The model that generated the response (assistant message).",
"ref": "network.sharedcomputer.chat.defs#modelRef",
"type": "ref"
},
"parent": {
"description": "The key of the previous message. Siblings are edits or regenerations.",
"format": "record-key",
"type": "string"
},
"role": {
"knownValues": [
"user",
"assistant"
],
"type": "string"
},
"status": {
"description": "Generation completion status (assistant message).",
"knownValues": [
"pending",
"complete",
"error",
"cancelled"
],
"type": "string"
},
"usage": {
"ref": "network.sharedcomputer.chat.defs#usage",
"type": "ref"
}
},
"required": [
"role",
"content",
"createdAt"
],
"type": "object"
},
"type": "record"
}
},
"id": "network.sharedcomputer.chat.message",
"lexicon": 1
}