Spaces:
Sleeping

codeBOKER commited on
Commit
bb9b63f
ยท
1 Parent(s): 96f3b64

feat: LLM-driven driver message cleanup for phone numbers and names

Browse files

- Add driver_message parameter to add_trip_by_driver tool schema
- Update system_driver.md prompt to instruct LLM to clean messages
(remove phone numbers, surrounding text, and driver names)
- Update handler to use LLM-provided driver_message
- Add app/utils/phone.py with regex-based phone number detection
- Add tests/test_phone.py with 25 test cases
- Add test_add_trip_by_driver_uses_llm_cleaned_message test

6 files changed +184 -1
Files changed (6)
app/ai/tool_schemas.py+8
app/tools/handlers.py+2-1
app/utils/phone.pyAdded+29
prompts/system_driver.md+8
tests/test_phone.pyAdded+100
tests/test_tools.py+37