Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

622 B
Raw Blame
import * as Layer from "effect/Layer";
import {
  makeVectorsHttpBinding,
  makeWriteVectorsClient,
  writeVectorsActions,
} from "./BindingHttp.ts";
import { VectorsWrite } from "./VectorsWrite.ts";

/**
 * HTTP implementation of {@link VectorsWrite} — calls the S3 Vectors data
 * plane with the host Function's own credentials, granting only the write
 * actions (`PutVectors`, `DeleteVectors`) on the bound index.
 */
export const VectorsWriteHttp = Layer.effect(
  VectorsWrite,
  makeVectorsHttpBinding({
    name: "VectorsWrite",
    actions: writeVectorsActions,
    makeClient: makeWriteVectorsClient,
  }),
);