com.suibari.nagi.generatePostAssist
投稿を書いている本人へ、書きかけの具体的な良さを肯定するか、未入力・削除時に発想を促すひとことを生成する。書きかけの本文は生成にだけ使い、保存しない。
Details · procedure
| Kind | procedure |
|---|---|
| Authority | nagi.suibari.com |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.langNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.modeNo maxLength, maxGraphemes or format limits this string.large-stringdefs.main.input.schema.properties.textmaxLength is over 20 KB. Use a blob for content that large.unlimited-stringdefs.main.input.schema.properties.todayNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "投稿を書いている本人へ、書きかけの具体的な良さを肯定するか、未入力・削除時に発想を促すひとことを生成する。書きかけの本文は生成にだけ使い、保存しない。",
"errors": [
{
"name": "AuthRequired"
},
{
"name": "InvalidRequest"
},
{
"name": "RateLimited"
},
{
"name": "UpstreamUnavailable"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"lang": {
"knownValues": [
"ja",
"en"
],
"type": "string"
},
"mode": {
"description": "affirm は書きかけの具体的な良さを肯定、question は発想を促す問いかけ。クライアントは IME 変換を除く実際の削除時に question、その後の追記で affirm へ戻す。未指定なら本文ありは affirm。空白のみ・空文字は常に question。",
"knownValues": [
"affirm",
"question"
],
"type": "string"
},
"previous": {
"description": "同じ書きかけの間にすでに出したひとこと。繰り返さないために渡す。",
"items": {
"maxGraphemes": 200,
"maxLength": 2000,
"type": "string"
},
"maxLength": 5,
"type": "array"
},
"text": {
"description": "書きかけの本文。空文字なら書き始める前の声かけになる。",
"maxGraphemes": 3000,
"maxLength": 30000,
"type": "string"
},
"today": {
"description": "本人の端末のローカル日付 YYYY-MM-DD。日記の「同じ日付」を探すのに使う。",
"type": "string"
}
},
"required": [
"text",
"lang",
"today"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"message": {
"maxGraphemes": 200,
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "com.suibari.nagi.generatePostAssist",
"lexicon": 1
}