Class for interacting with the Google Routes API It extends the StructuredTool class to perform retrieval.

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

description: string
name: string
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";
    };
}>
apiKey: string