fix some types

This commit is contained in:
bracesproul
2025-03-05 12:09:57 -08:00
parent e64e87b428
commit 16470a75c0
4 changed files with 12 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ export async function callTools(
return {
messages: [response],
ui: ui.collect,
ui: ui.collect as TripPlannerUpdate["ui"],
timestamp: Date.now(),
};
}

View File

@@ -16,4 +16,4 @@ export const TripPlannerAnnotation = Annotation.Root({
});
export type TripPlannerState = typeof TripPlannerAnnotation.State;
export type TripPlannerUpdate = typeof TripPlannerAnnotation.Update;
export type TripPlannerUpdate = typeof TripPlannerAnnotation.Update;