MCPcopy Create free account
hub / github.com/KerwinMai/Multi-Agent-Exp / set_thread_id

Method set_thread_id

agent.py:171–178  ·  view source on GitHub ↗

设置会话线程ID(保留兼容性) Args: thread_id: 线程ID

(self, thread_id: str)

Source from the content-addressed store, hash-verified

169 )
170
171 def set_thread_id(self, thread_id: str):
172 """设置会话线程ID(保留兼容性)
173
174 Args:
175 thread_id: 线程ID
176 """
177 # 已废弃,现在使用 user_id + session_id 自动生成
178 console.print("[yellow]提示:thread_id现在由user_id和session_id自动生成[/yellow]")
179
180 def new_session(self):
181 """开始新会话(保留当前用户)"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected