feat: Basic trip planner agent
This commit is contained in:
18
agent/trip-planner/types.ts
Normal file
18
agent/trip-planner/types.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Annotation } from "@langchain/langgraph";
|
||||
import { GenerativeUIAnnotation } from "../types";
|
||||
|
||||
export type TripDetails = {
|
||||
location: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
numberOfGuests: number;
|
||||
};
|
||||
|
||||
export const TripPlannerAnnotation = Annotation.Root({
|
||||
messages: GenerativeUIAnnotation.spec.messages,
|
||||
ui: GenerativeUIAnnotation.spec.ui,
|
||||
timestamp: GenerativeUIAnnotation.spec.timestamp,
|
||||
tripDetails: Annotation<TripDetails | undefined>(),
|
||||
});
|
||||
|
||||
export type TripPlannerState = typeof TripPlannerAnnotation.State;
|
||||
Reference in New Issue
Block a user