Add district to LLM context, be more aggressive about trimming agent:

This commit is contained in:
Eli Ribble 2026-01-27 23:25:51 +00:00
parent 9914274d42
commit a42c5824af
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

View file

@ -187,7 +187,7 @@ func ensureInDB(ctx context.Context, destination string) (err error) {
func generateNextMessage(ctx context.Context, history []llm.Message, customer_phone string) (llm.Message, error) {
_handle_report_status := func() (string, error) {
return "Report: ABCD-1234-5678, Status: scheduled, Appointment: Wednesday 3:30pm", nil
return "Report: ABCD-1234-5678, District: Delta MVCD, Status: scheduled, Appointment: Wednesday 3:30pm", nil
}
_handle_contact_district := func(reason string) {
log.Warn().Str("reason", reason).Msg("Contacting district")