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.
import type * as lexr from "@distilled.cloud/aws/lex-runtime-v2";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { BotAlias } from "./BotAlias.ts";
/**
* The `DeleteSession` request with the binding-injected `botId` and
* `botAliasId` removed.
*/
export interface DeleteSessionRequest extends Omit<
lexr.DeleteSessionRequest,
"botId" | "botAliasId"
> {}
/**
* Runtime binding for `lex:DeleteSession` — end a conversation with an
* Amazon Lex V2 bot alias, discarding its session state so the next user
* input starts a fresh conversation.
*
* @binding
* @section Managing Sessions
* @example Reset a User's Conversation
* ```typescript
* // init
* const deleteSession = yield* AWS.LexV2.DeleteSession(alias);
*
* // runtime
* yield* deleteSession({
* localeId: "en_US",
* sessionId: "user-123",
* });
* ```
*/
export interface DeleteSession extends Binding.Service<
DeleteSession,
"AWS.LexV2.DeleteSession",
(
alias: BotAlias,
) => Effect.Effect<
(
request: DeleteSessionRequest,
) => Effect.Effect<lexr.DeleteSessionResponse, lexr.DeleteSessionError>
>
> {}
export const DeleteSession = Binding.Service<DeleteSession>(
"AWS.LexV2.DeleteSession",
);