agentscope-ai / agentscope-ai/agentscope-java

Support dynamic model switching during active ReActAgent conversation

未關閉
#2,021 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area/core/agent enhancement
主要語言
Java
星號
5.6k
分支
1.3k
平均合併
4 天 12 小時
30 天內合併 PR
77

描述

Currently, the ReActAgent is built using the Builder pattern, and the underlying ChatModel appears to be immutable after initialization. In my use case, I need to dynamically switch the underlying LLM model during an active multi-turn conversation.
I have searched through the framework's source code but couldn't find a direct API (like a switchModel() method) to achieve this safely without breaking the agent's internal state.
Any guidance or official recommendation on how to implement this correctly within the current architecture would be highly appreciated. Thank you for your great work on this framework!

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。