feat: let the model decide the campus map via maps_show_map #14
No reviewers
Labels
No labels
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cmugpt-agent!14
Loading…
Reference in a new issue
No description provided.
Delete branch "cmumaps-improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The model now decides when an answer should include a campus map by calling a local
maps_show_maptool. This replaces regex matching as the primary signal, while keeping the existing patterns as a fallback so maps still work when the tool is not called.maps_show_maptakes a requireddestinationand an optionalorigin. Both are limited to valid building codes through schema enums, so nonexistent locations are rejected before they reach the map logic.agent/cmu_maps.pystill validates the building codes and generates every map URL, so the model never creates links itself.maps_show_mapis excluded fromservices_usedand is never shown to the user as a source for the answer.Pull request closed