fix(singleagent): append the user message when generating suggestions (#1821)

main
junwen-lee 2 months ago committed by GitHub
parent 5ecdddbacb
commit 901d0252e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      backend/domain/agent/singleagent/internal/agentflow/node_suggest_graph.go

@ -56,6 +56,7 @@ func newSuggestGraph(_ context.Context, conf *Config, chatModel chatmodel.ToolCa
}
suggestPrompt := prompt.FromMessages(schema.Jinja2,
schema.SystemMessage(SUGGESTION_PROMPT_JINJA2),
schema.UserMessage("Based on the contextual information, provide three recommended questions"),
)
suggestGraph := compose.NewGraph[[]*schema.Message, *schema.Message]()

Loading…
Cancel
Save