-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adds address parsing features to utils (#2571)
* done * done * by logger * logger
- Loading branch information
1 parent
956e4d8
commit b903f0d
Showing
10 changed files
with
582 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
50 changes: 50 additions & 0 deletions
50
packages/stentor-models/src/Request/AddressIntentRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*! Copyright (c) 2025, XAPP AI */ | ||
import { IntentRequest, RequestSlotMap, RequestSlot } from "./IntentRequest"; | ||
|
||
export interface AddressIntentRequestSlotMap extends RequestSlotMap { | ||
/** | ||
* Fully formed address with street number, street name, quadrant, city, state, and zip code. | ||
* | ||
* On chat, this can sometimes be derived from the NLU's entity extraction. | ||
*/ | ||
address?: RequestSlot<string>; | ||
/** | ||
* City name. | ||
*/ | ||
city?: RequestSlot<string>; | ||
/** | ||
* State or Province. Can be a two letter abbreviation or full name. | ||
*/ | ||
state?: RequestSlot<string>; | ||
/** | ||
* Zip code. | ||
*/ | ||
zip?: RequestSlot<string>; | ||
/** | ||
* Street name and number. | ||
*/ | ||
street?: RequestSlot<string>; | ||
/** | ||
* Street name. | ||
*/ | ||
street_name?: RequestSlot<string>; | ||
/** | ||
* Street number, only | ||
*/ | ||
street_number?: RequestSlot<string>; | ||
/** | ||
* Quadrant, if applicable. | ||
*/ | ||
quadrant?: RequestSlot<string>; | ||
} | ||
|
||
export interface AddressIntentRequest extends IntentRequest { | ||
/** | ||
* An intent that can parse an address query | ||
*/ | ||
intentId: string; | ||
/** | ||
* The slots | ||
*/ | ||
slots: AddressIntentRequestSlotMap; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.