MCPcopy
hub / github.com/ConnectAI-E/feishu-openai / sendHelpCard

Function sendHelpCard

code/handlers/msg.go:779–817  ·  view source on GitHub ↗
(ctx context.Context,
	sessionId *string, msgId *string)

Source from the content-addressed store, hash-verified

777}
778
779func sendHelpCard(ctx context.Context,
780 sessionId *string, msgId *string) {
781 newCard, _ := newSendCard(
782 withHeader("🎒需要帮助吗?", larkcard.TemplateBlue),
783 withMainMd("**🤠你好呀~ 我来自企联AI,一款基于OpenAI的智能助手!**"),
784 withSplitLine(),
785 withMdAndExtraBtn(
786 "** 🆑 清除话题上下文**\n文本回复 *清除* 或 */clear*",
787 newBtn("立刻清除", map[string]interface{}{
788 "value": "1",
789 "kind": ClearCardKind,
790 "chatType": UserChatType,
791 "sessionId": *sessionId,
792 }, larkcard.MessageCardButtonTypeDanger)),
793 withSplitLine(),
794 withMainMd("🤖 **发散模式选择** \n"+" 文本回复 *发散模式* 或 */ai_mode*"),
795 withSplitLine(),
796 withMainMd("🛖 **内置角色列表** \n"+" 文本回复 *角色列表* 或 */roles*"),
797 withSplitLine(),
798 withMainMd("🥷 **角色扮演模式**\n文本回复*角色扮演* 或 */system*+空格+角色信息"),
799 withSplitLine(),
800 withMainMd("🎤 **AI语音对话**\n私聊模式下直接发送语音"),
801 withSplitLine(),
802 withMainMd("🎨 **图片创作模式**\n回复*图片创作* 或 */picture*"),
803 withSplitLine(),
804 withMainMd("🕵️ **图片推理模式** \n"+" 文本回复 *图片推理* 或 */vision*"),
805 withSplitLine(),
806 withMainMd("🎰 **Token余额查询**\n回复*余额* 或 */balance*"),
807 withSplitLine(),
808 withMainMd("🔃️ **历史话题回档** 🚧\n"+" 进入话题的回复详情页,文本回复 *恢复* 或 */reload*"),
809 withSplitLine(),
810 withMainMd("📤 **话题内容导出** 🚧\n"+" 文本回复 *导出* 或 */export*"),
811 withSplitLine(),
812 withMainMd("🎰 **连续对话与多话题模式**\n"+" 点击对话框参与回复,可保持话题连贯。同时,单独提问即可开启全新新话题"),
813 withSplitLine(),
814 withMainMd("🎒 **需要更多帮助**\n文本回复 *帮助* 或 */help*"),
815 )
816 replyCard(ctx, msgId, newCard)
817}
818
819func sendImageCard(ctx context.Context, imageKey string,
820 msgId *string, sessionId *string, question string) error {

Callers 1

ExecuteMethod · 0.85

Calls 7

newSendCardFunction · 0.85
withHeaderFunction · 0.85
withMainMdFunction · 0.85
withSplitLineFunction · 0.85
withMdAndExtraBtnFunction · 0.85
newBtnFunction · 0.85
replyCardFunction · 0.85

Tested by

no test coverage detected