agentscope-ai / agentscope-ai/agentscope-java

Support dynamic model switching during active ReActAgent conversation

Aperta
#2,021 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area/core/agent enhancement
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

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!

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.