feat: Hookup accommodations actions to graph

This commit is contained in:
bracesproul
2025-03-05 11:39:08 -08:00
parent 98c21f4e6e
commit 837fe86970
7 changed files with 112 additions and 61 deletions

15
agent/utils/capitalize.ts Normal file
View File

@@ -0,0 +1,15 @@
/**
* Capitalizes the first letter of each word in a string.
*/
export function capitalizeSentence(string: string): string {
return string.split(' ').map(word => {
return word.charAt(0).toUpperCase() + word.slice(1);
}).join(' ');
}
/**
* Capitalizes the first letter of a string.
*/
export function capitalize(string: string): string {
return string.charAt(0).toUpperCase() + string.slice(1);
}