microclaw_engine/
channels.rs1const FEISHU_REACTION_PROTOCOL_PROMPT: &str = r#"
2# Feishu Reaction Protocol
3
4- To react to the user's current Feishu message, put `reaction-only: EMOJI_TYPE` on the final line.
5- Use a Feishu emoji type such as `THUMBSUP`, `OK`, `DONE`, `SMILE`, `APPLAUSE`, or `MUSCLE`.
6- The channel removes this control line before delivery and applies the reaction to the source message.
7- For normal Feishu replies/reactions, do not call `send_message`; return final assistant text directly.
8- Call `send_message` only when an attachment must be delivered.
9"#;
10
11pub fn system_prompt_extension(caller_channel: &str) -> Option<&'static str> {
12 if caller_channel.starts_with("feishu") || caller_channel.starts_with("lark") {
13 Some(FEISHU_REACTION_PROTOCOL_PROMPT)
14 } else {
15 None
16 }
17}