Edgewise API
    Preparing search index...

    Function route

    • Pick the lane a prompt belongs to.

      Type Parameters

      • K extends string

      Parameters

      • prompt: string
      • lanes: Record<K, string>
      • o: CommonOptions & { model?: ModelRef; otherwise?: NoInfer<K>; threshold?: number } = {}

      Returns Promise<
          {
              confidence: number;
              fellBack: boolean;
              probabilities: Record<K, number>;
              route: K;
          },
      >