1import * as agentcore from "@distilled.cloud/aws/bedrock-agentcore";
2import * as Layer from "effect/Layer";
3import { makeAgentCoreHttpBinding } from "./BindingHttp.ts";
4import { CreateEvent } from "./CreateEvent.ts";
5import type { Memory } from "./Memory.ts";
6
7export const CreateEventHttp = Layer.effect(
8 CreateEvent,
9 makeAgentCoreHttpBinding({
10 tag: "AWS.BedrockAgentCore.CreateEvent",
11 operation: agentcore.createEvent,
12 actions: ["bedrock-agentcore:CreateEvent"],
13 requestKey: "memoryId",
14 identifier: (memory: Memory) => memory.memoryId,
15 arns: (memory: Memory) => [memory.memoryArn],
16 }),
17);