feat: update types

This commit is contained in:
Tat Dat Duong
2025-03-05 15:09:10 +01:00
parent 3ee8afce9b
commit 571a170a92
6 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
import { ChatOpenAI } from "@langchain/openai";
import { TripDetails, TripPlannerState } from "../types";
import { TripDetails, TripPlannerState, TripPlannerUpdate } from "../types";
import { z } from "zod";
import { formatMessages } from "agent/utils/format-messages";
@@ -43,7 +43,7 @@ function calculateDates(
export async function extraction(
state: TripPlannerState,
): Promise<Partial<TripPlannerState>> {
): Promise<TripPlannerUpdate> {
const schema = z.object({
location: z
.string()