refactor: migrate workflow to v2 core and archive legacy modules
This commit is contained in:
11
legacy/websocket_image_entry_flow.py
Normal file
11
legacy/websocket_image_entry_flow.py
Normal file
@@ -0,0 +1,11 @@
|
||||
async def handle_image_message_flow(client, data: dict):
|
||||
"""
|
||||
处理图片消息。
|
||||
先回复"我找找",然后把图片URL作为消息内容交给 Agent(后台执行)。
|
||||
"""
|
||||
await client.send_reply(data, "我找找")
|
||||
|
||||
image_data = dict(data)
|
||||
image_data["msg"] = f"[客户发来图片] {data.get('msg', '')}"
|
||||
image_data["msg_type"] = 0
|
||||
client._fire_and_forget(client._agent_reply_serialized(image_data))
|
||||
Reference in New Issue
Block a user