fix some types
This commit is contained in:
@@ -111,7 +111,7 @@ export async function callTools(
|
||||
|
||||
return {
|
||||
messages: [response],
|
||||
ui: ui.collect,
|
||||
ui: ui.collect as TripPlannerUpdate["ui"],
|
||||
timestamp: Date.now(),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user