adhoc_message_send
Respond to users in an ad-hoc thread with free-form messages and optional rich content (interactive HTML, whiteboard SVG, TTS audio). Flag learning-related messages to record session events.
Instructions
Agent 在 AdHoc thread 里回应用户. 自由对话不限 move_type. 富内容用 payload (component_type: interactive_html | whiteboard_svg | tts_audio + body). 学习相关写 is_learning_related=true 会落 SessionEvent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| payload | No | { component_type: "interactive_html"|"whiteboard_svg"|"tts_audio", body: string, hints?: object } | |
| thread_id | Yes | ||
| context_snapshot | No | { page, entity_type?, entity_id?, entity_label? } - 跟最近 user message 一致. 不传时默认 { page: "agent" } | |
| client_message_id | No | 可选。重放去重键 (建议 uuid) — 同 key 重发返回已存在的消息, 不重复写. 缺省时 server 自动生成 (该次调用没有重试去重保护) — 此前标记 required 但 SDK 不强制, 漏传直接崩 UNDEFINED_VALUE, 现改为可选+自动生成. | |
| is_learning_related | No | default false |