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

This commit is contained in:
junwen-lee 2025-08-26 20:52:05 +08:00 committed by GitHub
parent 5ecdddbacb
commit 901d0252e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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]()