adhoc_thread_get
Access a persistent ad-hoc thread for a pair and retrieve its messages. Use after_message_id for incremental reads to minimize costs; omit for full history on first use.
Instructions
Get-or-create 这个 pair 的长存 AdHoc thread. 默认用当前 pair. 值更循环里带上你已读到的最后一条 id 只取增量 (after_message_id) —— 全量回读烧的是学习者的钱(值更契约·低损耗);全量仍合法:首次上任/断档补课时用 (不传 after_message_id 即全量, 缺省行为不变).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair_id | No | ||
| after_message_id | No | 可选。只返回这条消息 id 之后的新消息 (增量读, 与 live_wait/GET /bridge/wait 同一套 isNewerEventId 排序语义). 缺省=全量回读整个消息历史——仅在首次上任/断档补课时用, 值更循环里请传上一次读到的最后一条消息 id. |