Skip to content

DeleteEvent

Source: src/AWS/BedrockAgentCore/DeleteEvent.ts

Deletes a short-term event from an actor’s session.

Bind a 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.

// 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 });
}),
};