Panic for now if agent config is failing
Signed-off-by: mudler <mudler@localai.io>
This commit is contained in:
@@ -156,6 +156,8 @@ func (a *Agent) ResetConversation() {
|
|||||||
defer a.Unlock()
|
defer a.Unlock()
|
||||||
|
|
||||||
// store into memory the conversation before pruning it
|
// store into memory the conversation before pruning it
|
||||||
|
// TODO: Shall we summarize the conversation into a bullet list of highlights
|
||||||
|
// using the LLM instead?
|
||||||
if a.options.enableKB {
|
if a.options.enableKB {
|
||||||
for _, message := range a.currentConversation {
|
for _, message := range a.currentConversation {
|
||||||
if message.Role == "user" {
|
if message.Role == "user" {
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ func (a *AgentPool) startAgentWithConfig(name string, config *AgentConfig) error
|
|||||||
go func() {
|
go func() {
|
||||||
if err := agent.Run(); err != nil {
|
if err := agent.Run(); err != nil {
|
||||||
xlog.Error("Agent stopped", "error", err.Error())
|
xlog.Error("Agent stopped", "error", err.Error())
|
||||||
|
panic(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user