agentscope-ai / agentscope-ai/agentscope-java

Support dynamic model switching during active ReActAgent conversation

Abierto
#2,021 1 comentario 0 reacciones 0 asignados Ver en GitHub
area/core/agent enhancement
Lenguaje dominante
Java
Estrellas
5.6k
Forks
1.3k
Merge medio
4 d 12 h
PR fusionados (30 d)
77

Descripción

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!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.