how to get conversation_id in tools? #23

Open
opened 2026-02-15 21:15:20 -05:00 by yindo · 0 comments
Owner

Originally created by @zhangshf on GitHub (Mar 21, 2025).

i hope the tools in a agent could share data by conversation_id as uuid。but i cant get conversation_id in tools by dify-plugin-sdk

print(self.session.conversation_id ) # None

print(self.session.session_id) # this id is diffrent in each tool
Originally created by @zhangshf on GitHub (Mar 21, 2025). i hope the tools in a agent could share data by conversation_id as uuid。but i cant get conversation_id in tools by dify-plugin-sdk ``` print(self.session.conversation_id ) # None print(self.session.session_id) # this id is diffrent in each tool ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#23