schema
schema: ZodObject<{
arrivalTime: ZodOptional<ZodString>;
computeAlternativeRoutes: ZodBoolean;
departureTime: ZodOptional<ZodString>;
destination: ZodString;
extraComputations: ZodOptional<ZodArray<ZodEnum<["TOLLS"]>, "many">>;
origin: ZodString;
transitPreferences: ZodOptional<ZodObject<{
routingPreference: ZodEnum<["LESS_WALKING", "FEWER_TRANSFERS"]>;
}, UnknownKeysParam, ZodTypeAny, {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}, {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}>>;
travel_mode: ZodEnum<["DRIVE", "WALK", "BICYCLE", "TRANSIT", "TWO_WHEELER"]>;
}, UnknownKeysParam, ZodTypeAny, {
computeAlternativeRoutes: boolean;
destination: string;
origin: string;
travel_mode: "DRIVE" | "WALK" | "BICYCLE" | "TRANSIT" | "TWO_WHEELER";
arrivalTime?: string;
departureTime?: string;
extraComputations?: "TOLLS"[];
transitPreferences?: {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
};
}, {
computeAlternativeRoutes: boolean;
destination: string;
origin: string;
travel_mode: "DRIVE" | "WALK" | "BICYCLE" | "TRANSIT" | "TWO_WHEELER";
arrivalTime?: string;
departureTime?: string;
extraComputations?: "TOLLS"[];
transitPreferences?: {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
};
}>
Type declaration
arrivalTime: ZodOptional<ZodString>
computeAlternativeRoutes: ZodBoolean
departureTime: ZodOptional<ZodString>
destination: ZodString
extraComputations: ZodOptional<ZodArray<ZodEnum<["TOLLS"]>, "many">>
origin: ZodString
transitPreferences: ZodOptional<ZodObject<{
routingPreference: ZodEnum<["LESS_WALKING", "FEWER_TRANSFERS"]>;
}, UnknownKeysParam, ZodTypeAny, {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}, {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}>>
travel_mode: ZodEnum<["DRIVE", "WALK", "BICYCLE", "TRANSIT", "TWO_WHEELER"]>
Type declaration
computeAlternativeRoutes: boolean
destination: string
origin: string
travel_mode: "DRIVE" | "WALK" | "BICYCLE" | "TRANSIT" | "TWO_WHEELER"
Optional
arrivalTime?: string
Optional
departureTime?: string
Optional
extraComputations?: "TOLLS"[]
Optional
transitPreferences?: {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS"
Type declaration
computeAlternativeRoutes: boolean
destination: string
origin: string
travel_mode: "DRIVE" | "WALK" | "BICYCLE" | "TRANSIT" | "TWO_WHEELER"
Optional
arrivalTime?: string
Optional
departureTime?: string
Optional
extraComputations?: "TOLLS"[]
Optional
transitPreferences?: {
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS";
}
routingPreference: "LESS_WALKING" | "FEWER_TRANSFERS"
Class for interacting with the Google Routes API It extends the StructuredTool class to perform retrieval.