import type * as agentcore from "@distilled.cloud/aws/bedrock-agentcore"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Memory } from "./Memory.ts"; export interface DeleteEventRequest extends Omit { } /** * Deletes a short-term event from an actor's session. * * Bind a {@link Memory} inside a function runtime to call the * AgentCore data-plane API against it. Provide `AgentCore.DeleteEventHttp` * on the Function effect to implement the binding. * * ### Deleting Events * **Example:** Delete an Event by Id * ```typescript * // init * const deleteEvent = yield* AgentCore.DeleteEvent(memory); * * return { * fetch: Effect.gen(function* () { * // runtime * yield* deleteEvent({ * actorId: "user-1", * sessionId: "session-1", * eventId, * }); * return HttpServerResponse.json({ deleted: true }); * }), * }; * ``` * * @binding */ export interface DeleteEvent extends Binding.Service(memory: R) => Effect.Effect<(request: DeleteEventRequest) => Effect.Effect>> { } export declare const DeleteEvent: DeleteEvent; //# sourceMappingURL=DeleteEvent.d.ts.map